Page MenuHomeDevCentral

D1075.id2745.diff
No OneTemporary

D1075.id2745.diff

diff --git a/pillar/salt/roles.sls b/pillar/salt/roles.sls
deleted file mode 100644
--- a/pillar/salt/roles.sls
+++ /dev/null
@@ -1,15 +0,0 @@
-roles:
- eglide:
- - shellserver
- dwellers.nasqueron.org:
- - paas-lxc
- - paas-docker
- ysul.nasqueron.org:
- - devserver
- - saltmaster
- mail.nasqueron.org:
- - mailserver
- ns1.nasqueron.org:
- - dns
- ns2.nasqueron.org:
- - dns
diff --git a/pillar/top.sls b/pillar/top.sls
--- a/pillar/top.sls
+++ b/pillar/top.sls
@@ -11,7 +11,6 @@
- core.hostnames
- certificates.certificates
- nodes.nodes
- - salt.roles
eglide:
- users.revokedusers
- users.shellusers
diff --git a/roles/core/salt/init.sls b/roles/core/salt/init.sls
--- a/roles/core/salt/init.sls
+++ b/roles/core/salt/init.sls
@@ -9,4 +9,4 @@
salt_roles:
grains.list_present:
- name: roles
- - value: {{ pillar.get('roles')[grains['id']] }}
+ - value: {{ salt['pillar.get']("nodes:" + grains['id'] + ":roles", []) }}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 04:37 (6 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259241
Default Alt Text
D1075.id2745.diff (999 B)

Event Timeline