Page MenuHomeDevCentral

No OneTemporary

diff --git a/pillar/paas/docker.sls b/pillar/paas/docker.sls
new file mode 100644
index 0000000..e3c0bb1
--- /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
index 2fbea9f..a3d8504 100644
--- a/pillar/top.sls
+++ b/pillar/top.sls
@@ -1,23 +1,27 @@
# -------------------------------------------------------------
# Salt configuration for Nasqueron servers
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2016-04-10
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
base:
'*':
- core.users
- core.groups
- certificates.certificates
- nodes.nodes
- nodes.forests
- hotfixes.roles
- webserver.sites
+ dwellers:
+ - paas.docker
+ equatower:
+ - paas.docker
ysul:
- devserver.repos
- viperserv.bots
- viperserv.fantoir
- webserver.labs
- webserver.wwwroot51
diff --git a/roles/paas-docker/docker/images.sls b/roles/paas-docker/docker/images.sls
new file mode 100644
index 0000000..e135540
--- /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/x-diff
Expires
Mon, Nov 25, 04:44 (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259547
Default Alt Text
(2 KB)

Event Timeline