Skip to content

Commit

Permalink
Merge pull request puppetlabs#60 from mmz-srf/support-minus-in-servic…
Browse files Browse the repository at this point in the history
…e-names

Support minus in service names
  • Loading branch information
Ashley Penney committed Nov 18, 2013
2 parents 41d070a + a950577 commit 0d4c50e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .fixtures.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
fixtures:
repositories:
concat: "git://github.com/puppetlabs/puppetlabs-concat.git"
concat:
repo: "git://github.com/puppetlabs/puppetlabs-concat.git"
ref: '1.0.0'
symlinks:
haproxy: "#{source_dir}"
2 changes: 1 addition & 1 deletion manifests/balancermember.pp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
) {
# Template uses $ipaddresses, $server_name, $ports, $option
concat::fragment { "${listening_service}_balancermember_${name}":
order => "20-${listening_service}-${name}",
order => "20-${listening_service}-01-${name}",
ensure => $ensure,
target => '/etc/haproxy/haproxy.cfg',
content => template('haproxy/haproxy_balancermember.erb'),
Expand Down
12 changes: 6 additions & 6 deletions spec/defines/balancermember_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
end

it { should contain_concat__fragment('croy_balancermember_tyler').with(
'order' => '20-croy-tyler',
'order' => '20-croy-01-tyler',
'target' => '/etc/haproxy/haproxy.cfg',
'content' => " server dero 1.1.1.1:18140 check\n"
) }
Expand All @@ -37,7 +37,7 @@
end

it { should contain_concat__fragment('croy_balancermember_tyler').with(
'order' => '20-croy-tyler',
'order' => '20-croy-01-tyler',
'target' => '/etc/haproxy/haproxy.cfg',
'ensure' => 'absent',
'content' => " server dero 1.1.1.1:18140 \n"
Expand All @@ -55,7 +55,7 @@
end

it { should contain_concat__fragment('croy_balancermember_tyler').with(
'order' => '20-croy-tyler',
'order' => '20-croy-01-tyler',
'target' => '/etc/haproxy/haproxy.cfg',
'content' => " server dero 1.1.1.1:18140 check close\n"
) }
Expand All @@ -73,7 +73,7 @@
end

it { should contain_concat__fragment('croy_balancermember_tyler').with(
'order' => '20-croy-tyler',
'order' => '20-croy-01-tyler',
'target' => '/etc/haproxy/haproxy.cfg',
'content' => " server dero 1.1.1.1:18140 cookie dero check close\n"
) }
Expand All @@ -91,7 +91,7 @@
end

it { should contain_concat__fragment('croy_balancermember_tyler').with(
'order' => '20-croy-tyler',
'order' => '20-croy-01-tyler',
'target' => '/etc/haproxy/haproxy.cfg',
'content' => " server server01 192.168.56.200:18140 check\n server server02 192.168.56.201:18140 check\n"
) }
Expand All @@ -109,7 +109,7 @@
end

it { should contain_concat__fragment('croy_balancermember_tyler').with(
'order' => '20-croy-tyler',
'order' => '20-croy-01-tyler',
'target' => '/etc/haproxy/haproxy.cfg',
'content' => " server server01 192.168.56.200:18140,192.168.56.200:18150 check\n server server02 192.168.56.201:18140,192.168.56.201:18150 check\n"
) }
Expand Down

0 comments on commit 0d4c50e

Please sign in to comment.