Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3751361
D987.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
D987.diff
View Options
diff --git a/roles/paas-docker/docker/init.sls b/roles/paas-docker/docker/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/docker/init.sls
@@ -0,0 +1,34 @@
+# -------------------------------------------------------------
+# Salt — Provision Docker engine
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2017-05-24
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# Install Docker engine
+# -------------------------------------------------------------
+
+{% if grains['os'] == 'CentOS' %}
+remove_legacy_docker_packages:
+ pkg:
+ - removed
+ - pkgs:
+ - docker-common
+ - container-selinux
+ - docker-selinux
+ - docker-engine
+
+install_docker_engine:
+ file.managed:
+ - name: /etc/yum.repos.d/docker-ce.repo
+ - source: https://download.docker.com/linux/centos/docker-ce.repo
+ - source_hash: 257562ba65fb37d13ad0a449c21ebdd43aeb8963ca267133e6eb57ca8c89611e
+ pkg:
+ - installed
+ - pkgs:
+ - device-mapper-persistent-data
+ - lvm2
+ - docker-ce
+{% endif %}
diff --git a/top.sls b/top.sls
--- a/top.sls
+++ b/top.sls
@@ -18,6 +18,7 @@
'local':
- roles/saltmaster/sudo
'dwellers.nasqueron.org':
+ - roles/paas-docker/docker
- roles/paas-lxc/lxc
'eglide':
- roles/shellserver/users
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 07:50 (21 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250460
Default Alt Text
D987.diff (1 KB)
Attached To
Mode
D987: Switch Docker Engine to docker-ce official repository on CentOS
Attached
Detach File
Event Timeline
Log In to Comment