Skip to content

Commit

Permalink
apache http proxy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ojawel committed Dec 20, 2016
1 parent f220543 commit 66faef7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

This file is used to list changes made in each version of the bamboo cookbook.

## v2.0.2 (December 20, 2016)

Fixes:
- Pin apache 3.2.1 due to issue 422 in 3.2.2

## v2.0.1 (December 20, 2016)

Fixes:
Expand Down
4 changes: 2 additions & 2 deletions metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
maintainer_email 'ramonmakkelie@gmail.com, soudmaijer@gmail.com'
license 'Apache 2.0'
description 'Installs and configures Bamboo'
version '2.0.1'
version '2.0.2'
issues_url 'https://github.com/afklm/bamboo/issues' if respond_to?(:issues_url)
source_url 'https://github.com/afklm/bamboo.git' if respond_to?(:source_url)

Expand All @@ -23,7 +23,7 @@
# Always specify the version of your dependencies
depends 'apt'
depends 'ark'
depends 'apache2'
depends 'apache2', '= 3.2.1'
depends 'cron'
depends 'patch'
depends 'backup', '= 0.3.0'
Expand Down
14 changes: 2 additions & 12 deletions recipes/apache2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
if node['apache'].attribute?('listen_ports')
# Compatibility with cookbook 'apache' < 3.2.0
node.default['apache']['listen_ports'] |= [
node['bamboo']['apache2']['port'],
node['bamboo']['apache2']['ssl']['port']
]
else
node.default['apache']['listen'] |= [
"*:#{node['bamboo']['apache2']['port']}",
"*:#{node['bamboo']['apache2']['ssl']['port']}"
]
end
node.default['apache']['listen'] += ["*:#{node['bamboo']['apache2']['port']}"]
node.default['apache']['listen'] += ["*:#{node['bamboo']['apache2']['ssl']['port']}"]

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

0 comments on commit 66faef7

Please sign in to comment.