Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3769117
D1407.id3593.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1407.id3593.diff
View Options
diff --git a/roles/paas-docker/salt/init.sls b/roles/paas-docker/salt/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/salt/init.sls
@@ -0,0 +1,26 @@
+# -------------------------------------------------------------
+# Salt — Salt configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-03-10
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% from "map.jinja" import packages_prefixes with context %}
+
+# -------------------------------------------------------------
+# Does Salt use Python 2 or Python 3?
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{% if grains['pythonversion'][0] == 2 %}
+{% set prefix = packages_prefixes['python2'] %}
+{% else %}
+{% set prefix = packages_prefixes['python3'] %}
+{% endif %}
+
+# -------------------------------------------------------------
+# Dependencies for Docker Salt minions
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{{prefix}}docker-py:
+ pkg.installed
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 13:04 (10 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259999
Default Alt Text
D1407.id3593.diff (1 KB)
Attached To
Mode
D1407: Install docker-py for Docker Salt minions
Attached
Detach File
Event Timeline
Log In to Comment