Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #148 from legal90/fix-apache2
Browse files Browse the repository at this point in the history
Fix apache listen ports attribute
  • Loading branch information
linc01n committed Apr 23, 2016
2 parents 7f937a4 + e308b20 commit 0742842
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
supports 'scientific'
supports 'ubuntu'

depends 'apache2'
depends 'apache2', '>= 3.2.0'
depends 'ark'
depends 'cron'
depends 'database'
Expand Down
6 changes: 4 additions & 2 deletions recipes/apache2.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
node.set['apache']['listen_ports'] = node['apache']['listen_ports'] + [node['stash']['apache2']['port']] unless node['apache']['listen_ports'].include?(node['stash']['apache2']['port'])
node.set['apache']['listen_ports'] = node['apache']['listen_ports'] + [node['stash']['apache2']['ssl']['port']] unless node['apache']['listen_ports'].include?(node['stash']['apache2']['ssl']['port'])
node.default['apache']['listen'] |= [
"*:#{node['stash']['apache2']['port']}",
"*:#{node['stash']['apache2']['ssl']['port']}"
]

include_recipe 'apache2'
include_recipe 'apache2::mod_proxy'
Expand Down

0 comments on commit 0742842

Please sign in to comment.