summaryrefslogtreecommitdiff
path: root/global/overlay/etc/puppet/modules/sunet/manifests/etcd_node.pp
diff options
context:
space:
mode:
authorJohan Lundberg <lundberg@nordu.net>2015-04-14 13:23:43 +0200
committerJohan Lundberg <lundberg@nordu.net>2015-04-14 13:23:43 +0200
commiteb081d95814a00c2911247813e44e5bdffef2f55 (patch)
treeb46b6ebfa1e0d30773d7ebaa9521aebafb2f6bb0 /global/overlay/etc/puppet/modules/sunet/manifests/etcd_node.pp
parentef9fdafe6169a98e669291fcfe32a074a46b678f (diff)
parentae85c78ff1901412ba960d0aa14b80a6cac22802 (diff)
Merge branch 'master' of git.nordu.net:sunet-opssunet-ops-2015-04-14-v15
Diffstat (limited to 'global/overlay/etc/puppet/modules/sunet/manifests/etcd_node.pp')
-rw-r--r--global/overlay/etc/puppet/modules/sunet/manifests/etcd_node.pp3
1 files changed, 2 insertions, 1 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 3d17691..ee0966f 100644
--- a/global/overlay/etc/puppet/modules/sunet/manifests/etcd_node.pp
+++ b/global/overlay/etc/puppet/modules/sunet/manifests/etcd_node.pp
@@ -7,7 +7,8 @@ define sunet::etcd_node(
sunet::docker_run { "etcd_${name}":
image => 'quay.io/coreos/etcd',
imagetag => $etcd_version,
- command => "-initial-advertise-peer-urls http://${::ipaddress_eth1}:2380 -listen-peer-urls http://${::ipaddress_eth1}:2380 -discovery ${disco_url} -name ${::hostname} -data-dir /data/${name}/${::hostname}",
+ volumes => ["/data/${name}/${::hostname}:/var/lib/etcd","/etc/ssl:/etc/ssl"],
+ command => "--initial-advertise-peer-urls http://0.0.0.0:2380 --listen-peer-urls http://0.0.0.0:2380 --discovery ${disco_url} --name ${::hostname} --data-dir /var/lib/etcd --key-file /etc/ssl/private/${::fqdn}_infra.key --peer-key-file /etc/ssl/private/${::fqdn}_infra.key --ca-file /etc/ssl/certs/infra.crt --peer-ca-file /etc/ssl/certs/infra.crt --cert-file /etc/ssl/certs/${::fqdn}_infra.crt --peer-cert-file /etc/ssl/certs/${::fqdn}_infra.crt",
ports => ["${::ipaddress_eth1}:2380:2380"]
}
}