Page MenuHomeDevCentral

D2414.diff
No OneTemporary

D2414.diff

diff --git a/pillar/webserver/sites.sls b/pillar/webserver/sites.sls
--- a/pillar/webserver/sites.sls
+++ b/pillar/webserver/sites.sls
@@ -184,6 +184,20 @@
- .org/wolfplex/www
# -------------------------------------------------------------
+# Sites deployed through Jenkins CD
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+web_content_jenkins_cd:
+ webserver-legacy:
+ - api
+ - assets
+ - autoconfig
+ - docker
+ - docs
+ - launch
+ - 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 subdomains = salt['node.filter_by_role']('web_content_jenkins_cd') %}
+
+{% for subdomain in subdomains %}
+/var/run/deploy/{{ subdomain }}.nasqueron.org:
+ file.symlink:
+ - target: /var/wwwroot/nasqueron.org/{{ subdomain }}
+ - 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

Mime Type
text/plain
Expires
Sun, Nov 17, 00:53 (20 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2248354
Default Alt Text
D2414.diff (3 KB)

Event Timeline