Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768319
D1270.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
924 B
Referenced Files
None
Subscribers
None
D1270.diff
View Options
diff --git a/pillar/core/hostnames.sls b/pillar/core/hostnames.sls
deleted file mode 100644
--- a/pillar/core/hostnames.sls
+++ /dev/null
@@ -1,4 +0,0 @@
-hostnames:
- eglide: eglide.org
- equatower: equatower.nasqueron.org
- ysul: ysul.nasqueron.org
diff --git a/pillar/top.sls b/pillar/top.sls
--- a/pillar/top.sls
+++ b/pillar/top.sls
@@ -8,7 +8,6 @@
base:
'*':
- - core.hostnames
- core.users
- core.groups
- certificates.certificates
diff --git a/roles/core/hostname/init.sls b/roles/core/hostname/init.sls
--- a/roles/core/hostname/init.sls
+++ b/roles/core/hostname/init.sls
@@ -14,7 +14,7 @@
hostname:
file.managed:
- name: /etc/hostname
- - contents: {{ pillar.get('hostnames')[grains['id']] }}
+ - contents: {{ salt['node.get']('hostname') }}
# -------------------------------------------------------------
# When the hostname is changed, what to run afterwards?
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 07:30 (14 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258753
Default Alt Text
D1270.diff (924 B)
Attached To
Mode
D1270: Remove core.hostnames pillar
Attached
Detach File
Event Timeline
Log In to Comment