Add a second etcd instance for use with events.

This commit is contained in:
Brendan Burns
2015-09-29 12:43:18 -07:00
parent 26c51881ca
commit a4581c7cd5
2 changed files with 33 additions and 9 deletions

View File

@@ -38,6 +38,10 @@ touch /var/log/etcd.log:
cmd.run:
- creates: /var/log/etcd.log
touch /var/log/etcd-events.log:
cmd.run:
- creates: /var/log/etcd-events.log
/var/etcd:
file.directory:
- user: root
@@ -57,3 +61,21 @@ touch /var/log/etcd.log:
- mode: 644
- makedirs: true
- dir_mode: 755
- context:
suffix: ""
port: 4001
server_port: 2380
/etc/kubernetes/manifests/etcd-events.manifest:
file.managed:
- source: salt://etcd/etcd.manifest
- template: jinja
- user: root
- group: root
- mode: 644
- makedirs: true
- dir_mode: 755
- context:
suffix: "-events"
port: 4002
server_port: 2381