Commit fc7bb9787fd193ef240432680c1c942729273766
fix docker node user group
Michael Williams committed on 12/25/2017, 11:13:32 AMParent: 36d95936255ad119fd3357001514085a198dacdd
Files changed
salt/state/hub.sls | changed |
salt/state/hub.sls | ||
---|---|---|
@@ -21,8 +21,11 @@ | ||
21 | 21 … | |
22 | 22 … | {% set name = pub.name %} |
23 | 23 … | {% set port = pub.get('port', 8008) %} |
24 | 24 … | |
25 … | +{% set user = 1000 %} | |
26 … | +{% set group = 1000 %} | |
27 … | + | |
25 | 28 … | {% set secret = pub.secret %} |
26 | 29 … | {% set curve = secret.curve %} |
27 | 30 … | {% set public = secret.public %} |
28 | 31 … | {% set private = secret.private %} |
@@ -30,10 +33,10 @@ | ||
30 | 33 … | {{ name }}/: |
31 | 34 … | file.directory: |
32 | 35 … | - name: /root/bots/{{ name }}/ |
33 | 36 … | - mode: 755 |
34 | - - user: debian | |
35 | - - group: debian | |
37 … | + - user: {{ user }} | |
38 … | + - group: {{ group }} | |
36 | 39 … | - recurse: |
37 | 40 … | - user |
38 | 41 … | - group |
39 | 42 … | |
@@ -45,10 +48,10 @@ | ||
45 | 48 … | public: {{ public }}.{{ curve }} |
46 | 49 … | private: {{ private }}.{{ curve }} |
47 | 50 … | id: "@{{ public }}.{{ curve }}" |
48 | 51 … | - mode: 0400 |
49 | - - user: debian | |
50 | - - group: debian | |
52 … | + - user: {{ user }} | |
53 … | + - group: {{ group }} | |
51 | 54 … | - formatter: json |
52 | 55 … | - merge_if_exists: True |
53 | 56 … | - require: |
54 | 57 … | - file: {{ name }}/ |
@@ -63,10 +66,10 @@ | ||
63 | 66 … | - {{ seed }} |
64 | 67 … | {% endfor %} |
65 | 68 … | - formatter: json |
66 | 69 … | - mode: 644 |
67 | - - user: debian | |
68 | - - group: debian | |
70 … | + - user: {{ user }} | |
71 … | + - group: {{ group }} | |
69 | 72 … | - merge_if_exists: True |
70 | 73 … | - require: |
71 | 74 … | - file: {{ name }}/ |
72 | 75 … | |
@@ -82,8 +85,9 @@ | ||
82 | 85 … | - 8008 |
83 | 86 … | - restart_policy: unless-stopped |
84 | 87 … | - require: |
85 | 88 … | - docker_image: ahdinosaur/ssb-pub |
89 … | + - file: {{ name }}/ | |
86 | 90 … | - file: {{ name }}/secret |
87 | 91 … | - file: {{ name }}/config |
88 | 92 … | |
89 | 93 … | {% endfor %} |
Built with git-ssb-web