git ssb

1+

dinoworm 🐛 / butt-as-a-service



Commit fc7bb9787fd193ef240432680c1c942729273766

fix docker node user group

Michael Williams committed on 12/25/2017, 11:13:32 AM
Parent: 36d95936255ad119fd3357001514085a198dacdd

Files changed

salt/state/hub.slschanged
salt/state/hub.slsView
@@ -21,8 +21,11 @@
2121
2222 {% set name = pub.name %}
2323 {% set port = pub.get('port', 8008) %}
2424
25 +{% set user = 1000 %}
26 +{% set group = 1000 %}
27 +
2528 {% set secret = pub.secret %}
2629 {% set curve = secret.curve %}
2730 {% set public = secret.public %}
2831 {% set private = secret.private %}
@@ -30,10 +33,10 @@
3033 {{ name }}/:
3134 file.directory:
3235 - name: /root/bots/{{ name }}/
3336 - mode: 755
34- - user: debian
35- - group: debian
37 + - user: {{ user }}
38 + - group: {{ group }}
3639 - recurse:
3740 - user
3841 - group
3942
@@ -45,10 +48,10 @@
4548 public: {{ public }}.{{ curve }}
4649 private: {{ private }}.{{ curve }}
4750 id: "@{{ public }}.{{ curve }}"
4851 - mode: 0400
49- - user: debian
50- - group: debian
52 + - user: {{ user }}
53 + - group: {{ group }}
5154 - formatter: json
5255 - merge_if_exists: True
5356 - require:
5457 - file: {{ name }}/
@@ -63,10 +66,10 @@
6366 - {{ seed }}
6467 {% endfor %}
6568 - formatter: json
6669 - mode: 644
67- - user: debian
68- - group: debian
70 + - user: {{ user }}
71 + - group: {{ group }}
6972 - merge_if_exists: True
7073 - require:
7174 - file: {{ name }}/
7275
@@ -82,8 +85,9 @@
8285 - 8008
8386 - restart_policy: unless-stopped
8487 - require:
8588 - docker_image: ahdinosaur/ssb-pub
89 + - file: {{ name }}/
8690 - file: {{ name }}/secret
8791 - file: {{ name }}/config
8892
8993 {% endfor %}

Built with git-ssb-web