diff options
author | Leif Johansson <leifj@sunet.se> | 2015-04-16 23:48:26 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2015-04-16 23:48:26 +0200 |
commit | fcc7ab131530166ea997a238aac7bf6182f5f6de (patch) | |
tree | b98377f1416302709fa23fed97e169c0af0e2edf /global/overlay/etc/puppet | |
parent | f8586d18a3f069774235044e1145c09a121edb0c (diff) |
fix ifsunet-ops-2015-04-16-v04
Diffstat (limited to 'global/overlay/etc/puppet')
-rw-r--r-- | global/overlay/etc/puppet/modules/sunet/manifests/etcd_node.pp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/global/overlay/etc/puppet/modules/sunet/manifests/etcd_node.pp b/global/overlay/etc/puppet/modules/sunet/manifests/etcd_node.pp index 429950e..97927b4 100644 --- a/global/overlay/etc/puppet/modules/sunet/manifests/etcd_node.pp +++ b/global/overlay/etc/puppet/modules/sunet/manifests/etcd_node.pp @@ -12,7 +12,7 @@ define sunet::etcd_node( "--key-file /etc/ssl/private/${::fqdn}_infra.key", "--ca-file /etc/ssl/certs/infra.crt", "--cert-file /etc/ssl/certs/${::fqdn}_infra.crt"] - if ($proxy) { + if $proxy { $args = concat($args,["--proxy on","--listen-client-urls http://${::ipaddress_docker0}:2379,http://127.0.0.1:4001,http://127.0.0.1:2379"]) } else { $args = concat($args, @@ -31,7 +31,7 @@ define sunet::etcd_node( command => join($args," "), ports => ["${::ipaddress_eth1}:2380:2380","${::ipaddress_eth1}:2379:2379"] } - if (not $proxy) { + if !$proxy { ufw::allow { "allow-etcd-peer": ip => "${::ipaddress_eth1}", port => 2380 |