diff options
author | Leif Johansson <leifj@sunet.se> | 2015-04-14 12:07:57 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2015-04-14 12:07:57 +0200 |
commit | ac6b29edd669e28ed384b76368a76d4b592d15d3 (patch) | |
tree | 60877151963dd2c09520a79436fab17e883760b1 /global/overlay/etc/puppet/modules | |
parent | e6a171f5c0181c9cac44847f4beb46433b695fa7 (diff) |
more etcd worksunet-ops-2015-04-14-v04
Diffstat (limited to 'global/overlay/etc/puppet/modules')
-rw-r--r-- | global/overlay/etc/puppet/modules/sunet/manifests/etcd_node.pp | 16 |
1 files changed, 16 insertions, 0 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 new file mode 100644 index 0000000..68df7d2 --- /dev/null +++ b/global/overlay/etc/puppet/modules/sunet/manifests/etcd_node.pp @@ -0,0 +1,16 @@ +define etcd_node( + $disco_url = undef, + $etcd_version = 'v2.0.8' +) { + file { ["/data","/data/${name}","/data/${name}/${::hostname}"]: ensure => 'directory' } + sunet::docker_run { "etcd_${name}": + image => 'quay.io/coreos/etcd', + version => $etcd_version, + extra_parameters => ["-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}"], + ports => ["2380:2380"] + } +} |