Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3773992
D2220.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D2220.diff
View Options
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,10 @@
+# -------------------------------------------------------------
+# Salt — Docker development tools
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2020-02-15
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+include:
+ - .software
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/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
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 09:10 (19 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2262307
Default Alt Text
D2220.diff (2 KB)
Attached To
Mode
D2220: WIP: Install Docker development tools on Dwellers
Attached
Detach File
Event Timeline
Log In to Comment