Sha256: 1ea3d61c293491fcaced654dcf38317b94c209893870753e7e32b2aeab630ca2

Contents?: true

Size: 579 Bytes

Versions: 9

Compression:

Stored size: 579 Bytes

Contents

%w{ yum-utils device-mapper-persistent-data lvm2 }.each do |name|
  package name do
    user 'root'
  end
end

execute 'yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo' do
  user 'root'
  not_if 'test -e /etc/yum.repos.d/docker-ce.repo'
end

package 'docker-ce' do
  user 'root'
end

group 'docker' do
  user 'root'
end

execute "add user to docker group" do
  command "sudo usermod -a -G docker ${USER} && newgrp docker"
  not_if "groups ${USER} | grep -E \"\sdocker\""
end

service 'docker' do
  action [:enable, :start]
  user 'root'
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
daddy-0.9.9 itamae/environments/docker/default.rb
daddy-0.9.8 itamae/environments/docker/default.rb
daddy-0.9.7 itamae/environments/docker/default.rb
daddy-0.9.6 itamae/environments/docker/default.rb
daddy-0.9.5 itamae/environments/docker/default.rb
daddy-0.9.4 itamae/environments/docker/default.rb
daddy-0.9.3 itamae/environments/docker/default.rb
daddy-0.9.2 itamae/environments/docker/default.rb
daddy-0.9.1 itamae/environments/docker/default.rb