Skip to content

Commit 59d5a40

Browse files
author
bryan hunt
committed
more etcd tweaking
1 parent 76dcf2e commit 59d5a40

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tasks/main.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
dest={{ etcd_download_dir }}
3232
creates="{{ etcd_download_dir }}/{{ etcd_release }}/etcd"
3333

34-
# TODO(retr0h): Sucks the `copy` module doesn't do this.
35-
# We get idempotency from `rsync(1)`.
3634
- name: copy binaries from archive into etcd dir
3735
shell: rsync -auv {{ etcd_download_dir }}/{{ etcd_release }}/{{ item }} {{ etcd_dir }}
3836
with_items:
@@ -42,7 +40,13 @@
4240
- name: etcd init script
4341
template: src=etc/init/etcd-init.conf.j2 dest=/etc/init.d/etcd
4442

45-
- user: name=etcd comment="Etcd daemon" createhome=yes home=/var/lib/etcd shell=/bin/sh skeleton=no
43+
## TODO - tighten up security
44+
- file: path=/var/lib/etcd owner=etcd group=etcd state=directory mode=0755
45+
46+
- user: name=etcd comment="Etcd daemon" createhome=no home=/var/lib/etcd shell=/bin/sh skeleton=no
47+
48+
- file: path=/var/log/etcd owner=root group=etcd state=directory mode=0755
49+
- file: path=/var/log/etcd/etcd.log owner=root group=etcd mode=0664
4650

4751
- name: enable and start etcd init script
4852
service: name=etcd enabled=yes state=started

0 commit comments

Comments
 (0)