Page MenuHomeDevCentral

D987.diff
No OneTemporary

D987.diff

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

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)

Event Timeline