File tree 1 file changed +7
-3
lines changed 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 31
31
dest={{ etcd_download_dir }}
32
32
creates="{{ etcd_download_dir }}/{{ etcd_release }}/etcd"
33
33
34
- # TODO(retr0h): Sucks the `copy` module doesn't do this.
35
- # We get idempotency from `rsync(1)`.
36
34
- name : copy binaries from archive into etcd dir
37
35
shell : rsync -auv {{ etcd_download_dir }}/{{ etcd_release }}/{{ item }} {{ etcd_dir }}
38
36
with_items :
42
40
- name : etcd init script
43
41
template : src=etc/init/etcd-init.conf.j2 dest=/etc/init.d/etcd
44
42
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
46
50
47
51
- name : enable and start etcd init script
48
52
service : name=etcd enabled=yes state=started
You can’t perform that action at this time.
0 commit comments