Page MenuHomeDevCentral

D1409.id3594.diff
No OneTemporary

D1409.id3594.diff

diff --git a/pillar/paas/docker.sls b/pillar/paas/docker.sls
new file mode 100644
--- /dev/null
+++ b/pillar/paas/docker.sls
@@ -0,0 +1,27 @@
+# -------------------------------------------------------------
+# Salt — Provision Docker engine
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-03-10
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# You can append a :tag (by default, latest is used).
+# You can't directly specify a Docker library images.
+# See https://docs.saltstack.com/en/latest/ref/states/all/salt.states.docker_image.html
+
+docker_images:
+ dwellers:
+ # Core services
+ - nasqueron/mysql
+ - nasqueron/rabbitmq
+ # Infrastructure and development services
+ - nasqueron/aphlict
+ - dereckson/cachet
+ - nasqueron/etherpad
+ - nasqueron/notifications
+ - nasqueron/phabricator
+ equatower:
+ # Continous deployment jobs
+ - jenkinsci/jenkins
+ - nasqueron/jenkins-slave-php
diff --git a/pillar/top.sls b/pillar/top.sls
--- a/pillar/top.sls
+++ b/pillar/top.sls
@@ -15,6 +15,10 @@
- nodes.forests
- hotfixes.roles
- webserver.sites
+ dwellers:
+ - paas.docker
+ equatower:
+ - paas.docker
ysul:
- devserver.repos
- viperserv.bots
diff --git a/roles/paas-docker/docker/images.sls b/roles/paas-docker/docker/images.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/docker/images.sls
@@ -0,0 +1,18 @@
+# -------------------------------------------------------------
+# Salt — Provision Docker engine
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-03-10
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% set images = salt['pillar.get']('docker_images:' + grains['id'], []) %}
+
+# -------------------------------------------------------------
+# Fetch Docker images
+# -------------------------------------------------------------
+
+{% for image in images %}
+{{ image }}:
+ docker_image.present
+{% endfor %}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 10:55 (20 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259758
Default Alt Text
D1409.id3594.diff (2 KB)

Event Timeline