Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3909156
D2414.id6073.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
D2414.id6073.diff
View Options
diff --git a/pillar/webserver/sites.sls b/pillar/webserver/sites.sls
--- a/pillar/webserver/sites.sls
+++ b/pillar/webserver/sites.sls
@@ -183,6 +183,20 @@
- .org/wolfplex/api
- .org/wolfplex/www
+# -------------------------------------------------------------
+# Sites deployed through Jenkins CD
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+web_content_jenkins_cd:
+ webserver-legacy:
+ api.nasqueron.org: /var/wwwroot/nasqueron.org/api
+ assets.nasqueron.org: /var/wwwroot/nasqueron.org/assets
+ autoconfig.nasqueron.org: /var/wwwroot/nasqueron.org/autoconfig
+ docker.nasqueron.org: /var/wwwroot/nasqueron.org/docker
+ docs.nasqueron.org: /var/wwwroot/nasqueron.org/docs
+ launch.nasqueron.org: /var/wwwroot/nasqueron.org/launch
+ www.nasqueron.org: /var/wwwroot/nasqueron.org/www
+
# -------------------------------------------------------------
# Tweaks
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/roles/webserver-legacy/jenkins-cd/content.sls b/roles/webserver-legacy/jenkins-cd/content.sls
new file mode 100644
--- /dev/null
+++ b/roles/webserver-legacy/jenkins-cd/content.sls
@@ -0,0 +1,16 @@
+# -------------------------------------------------------------
+# Salt — Sites to provision on the legacy web server
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% set aliases = salt['node.filter_by_role']('web_content_jenkins_cd') %}
+
+{% for alias, target in aliases.items() %}
+/var/run/deploy/{{ alias }}:
+ file.symlink:
+ - target: {{ target }}
+ - user: deploy
+ - group: deploy
+{% endfor %}
diff --git a/roles/webserver-legacy/jenkins-cd/files/authorized_keys b/roles/webserver-legacy/jenkins-cd/files/authorized_keys
new file mode 100644
--- /dev/null
+++ b/roles/webserver-legacy/jenkins-cd/files/authorized_keys
@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC6dZeGnELsnjxK4MQRgeLf+GROxmPqzv4LaBIkdKXvKTaHok5reCtlvDKTJKhSu6cNK620rEyC8Wfhzkw+/1QxNDt3rig5piC0G8hiozuAAX/uZbzZJzZq0XLQuV7dg7Zi6NnhR8Rfsi85JLj8qUTeiXZi6i4pFn2P7SOqFcxK7fYjyKgs2Vld4MBDR4D94xogqm/MC9q4tJzzWlLHJiu28QwBRNHt2LiLT0YUaRBtOe+vMLfibn+bhXzeNUDTxgijrTICOJqp+jEsqNMTr76ze+B7Nvb/c5Su5J5yySE5mr56h69sEt0Tl94RwfwyCHC8HAWeKO0tGpswDk6HUHkwtj81ib4n0T2B9itCMl94weYPHXugPnJ+s0Wcn29j7qcTbm1V7M8Hyzv9D32HayidFz3pzD2EN9eFea3SCUJ3cPtaqfOMcptgWSrLQMWOzF0nX+BfpRAQumTAzjHfq82ii/9rYRknKEZczFl5FA/M3uJ4qq47KJI2FHLfl+6Wy08Ju9NCum6CYbtgaquN6GURNUHVCeMYr+VrSnMLx/xRym1fWeEOkJaBvEuUzejP0mmG9eiiQFhmIpb9Mnw+DSeLd5f9XCcIz+mhd75pawI2PiePB39A3hW1PqyIjMWShO6Vu1S4Wb3p+lE54HulzpGSuzu846K4iS+gQ03qqQW+7w==
diff --git a/roles/webserver-legacy/jenkins-cd/init.sls b/roles/webserver-legacy/jenkins-cd/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/webserver-legacy/jenkins-cd/init.sls
@@ -0,0 +1,10 @@
+# -------------------------------------------------------------
+# Salt — Sites to provision on the legacy web server
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+include:
+ - .ssh
+ - .content
diff --git a/roles/webserver-legacy/jenkins-cd/ssh.sls b/roles/webserver-legacy/jenkins-cd/ssh.sls
new file mode 100644
--- /dev/null
+++ b/roles/webserver-legacy/jenkins-cd/ssh.sls
@@ -0,0 +1,23 @@
+# -------------------------------------------------------------
+# Salt — Sites to provision on the legacy web server
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# SSH access for Jenkins
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/var/run/deploy/.ssh:
+ file.directory:
+ - user: deploy
+ - group: deploy
+ - dir_mode: 700
+
+/var/run/deploy/.ssh/authorized_keys:
+ file.managed:
+ - source: salt://roles/webserver-legacy/jenkins-cd/files/authorized_keys
+ - user: deploy
+ - group: deploy
+ - mode: 600
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 18:32 (18 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2306696
Default Alt Text
D2414.id6073.diff (4 KB)
Attached To
Mode
D2414: Allow Jenkins CD to publish static sites
Attached
Detach File
Event Timeline
Log In to Comment