Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3769971
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
View Options
diff --git a/roles/paas-docker/docker/init.sls b/roles/paas-docker/docker/init.sls
new file mode 100644
index 0000000..728b0d2
--- /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
index 706e335..ed12a3e 100644
--- a/top.sls
+++ b/top.sls
@@ -1,28 +1,29 @@
# -------------------------------------------------------------
# Salt configuration for Nasqueron servers
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2016-04-10
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
base:
'*':
- roles/core/rc
- roles/core/hostname
- roles/core/network
- roles/core/motd
- roles/core/rsyslog
- roles/core/sshd
- roles/core/letsencrypt
'local':
- roles/saltmaster/sudo
'dwellers.nasqueron.org':
+ - roles/paas-docker/docker
- roles/paas-lxc/lxc
'eglide':
- roles/shellserver/users
- roles/shellserver/userland-software
- roles/shellserver/eglide-website
- roles/shellserver/vhosts
- roles/shellserver/web-hosting
- roles/shellserver/odderon
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Nov 25, 18:34 (9 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260716
Default Alt Text
(2 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment