Skip to content

Instantly share code, notes, and snippets.

@tmtk75
Created December 29, 2013 03:37
Show Gist options
  • Select an option

  • Save tmtk75/8167143 to your computer and use it in GitHub Desktop.

Select an option

Save tmtk75/8167143 to your computer and use it in GitHub Desktop.
class docker::install::centos {
exec { epel:
command => "rpm -Uvh http://ftp.riken.jp/Linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm",
creates => "/etc/yum.repos.d/epel.repo",
path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin',
}
package { 'docker-io':
ensure => present,
require => Exec[epel],
}
}
class docker::install {
# support CentOS alone
include install::centos
}
class docker::service {
service { docker:
ensure => running,
}
}
class docker {
include install
include service
Class[install] -> Class[service]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment