Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3752543
D3187.id8120.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D3187.id8120.diff
View Options
diff --git a/pillar/webserver/wwwroot51.sls b/pillar/webserver/wwwroot51.sls
--- a/pillar/webserver/wwwroot51.sls
+++ b/pillar/webserver/wwwroot51.sls
@@ -7,7 +7,7 @@
wwwroot51_basedir: /var/51-wwwroot
-wwwroot51_identities:
+wwwroot_identities:
alken-orin:
secret: nasqueron/deploy/deploy_keys/alken-orin
path: /opt/salt/security/id_alken_orin_ed25519
diff --git a/roles/devserver/webserver-wwwroot51/init.sls b/roles/devserver/webserver-wwwroot51/init.sls
--- a/roles/devserver/webserver-wwwroot51/init.sls
+++ b/roles/devserver/webserver-wwwroot51/init.sls
@@ -6,5 +6,5 @@
# -------------------------------------------------------------
include:
- - .credentials
+ - roles/webserver-alkane/credentials
- .sites
diff --git a/roles/devserver/webserver-wwwroot51/sites.sls b/roles/devserver/webserver-wwwroot51/sites.sls
--- a/roles/devserver/webserver-wwwroot51/sites.sls
+++ b/roles/devserver/webserver-wwwroot51/sites.sls
@@ -34,7 +34,7 @@
# 51 sites
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-{% set identities = pillar["wwwroot51_identities"] %}
+{% set identities = pillar["wwwroot_identities"] %}
{% for sitename, site in pillar['wwwroot51_directories'].items() %}
{{ basedir }}/{{ sitename }}:
diff --git a/roles/devserver/webserver-wwwroot51/credentials.sls b/roles/webserver-alkane/credentials/init.sls
rename from roles/devserver/webserver-wwwroot51/credentials.sls
rename to roles/webserver-alkane/credentials/init.sls
--- a/roles/devserver/webserver-wwwroot51/credentials.sls
+++ b/roles/webserver-alkane/credentials/init.sls
@@ -1,5 +1,5 @@
# -------------------------------------------------------------
-# Salt — Webserver wwwroot51 content
+# Salt — Webserver content
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
@@ -11,7 +11,7 @@
- makedirs: True
- mode: 700
-{% for _, identity in pillar.get("wwwroot51_identities", {}).items() %}
+{% for _, identity in pillar.get("wwwroot_identities", {}).items() %}
{{ identity["path"] }}:
file.managed:
diff --git a/roles/webserver-alkane/init.sls b/roles/webserver-alkane/init.sls
--- a/roles/webserver-alkane/init.sls
+++ b/roles/webserver-alkane/init.sls
@@ -8,5 +8,6 @@
include:
- .account
- .alkane
+ - .credentials
- .directories
- .php
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 19:33 (22 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2251073
Default Alt Text
D3187.id8120.diff (2 KB)
Attached To
Mode
D3187: Move wwwroot51 credentials to webserver-alkane role
Attached
Detach File
Event Timeline
Log In to Comment