Page MenuHomeDevCentral

D2220.id5581.diff
No OneTemporary

D2220.id5581.diff

diff --git a/pillar/nodes/nodes.sls b/pillar/nodes/nodes.sls
--- a/pillar/nodes/nodes.sls
+++ b/pillar/nodes/nodes.sls
@@ -20,6 +20,8 @@
- paas-lxc
- paas-docker
- mastodon
+ flags:
+ install_docker_devel_tools: True
network:
ipv4_address: 51.255.124.11
ipv4_gateway: 91.121.86.254
diff --git a/roles/paas-docker/devel/init.sls b/roles/paas-docker/devel/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/devel/init.sls
@@ -0,0 +1,11 @@
+# -------------------------------------------------------------
+# Salt — Docker development tools
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2020-02-15
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+include:
+ - .software
+ - .sudo
diff --git a/roles/paas-docker/devel/software.sls b/roles/paas-docker/devel/software.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/devel/software.sls
@@ -0,0 +1,25 @@
+# -------------------------------------------------------------
+# Salt — Docker development tools
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2020-02-15
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% from "map.jinja" import packages_prefixes with context %}
+
+# -------------------------------------------------------------
+# Dependencies not required in production but useful in dev
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+docker_development_utilities:
+ pkg.installed:
+ - pkgs:
+ - git
+ - {{ packages_prefixes.python3 }}pip
+ # From Nasqueron repo
+ - dive
+ pip.installed:
+ - name: docker-compose
+ - require:
+ - pkg: docker_development_utilities
diff --git a/roles/paas-docker/devel/sudo.sls b/roles/paas-docker/devel/sudo.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/devel/sudo.sls
@@ -0,0 +1,9 @@
+# -------------------------------------------------------------
+# Salt — Docker development tools
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2020-02-15
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# TODO: include %ops in %docker to allow to use docker as user
diff --git a/roles/paas-docker/init.sls b/roles/paas-docker/init.sls
--- a/roles/paas-docker/init.sls
+++ b/roles/paas-docker/init.sls
@@ -21,3 +21,6 @@
- .nginx
- .letsencrypt
- .wrappers
+{% if salt['node.has']('flags:install_docker_devel_tools') %}
+ - .devel
+{% endif %}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 10:59 (21 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2262402
Default Alt Text
D2220.id5581.diff (2 KB)

Event Timeline