Skip to content

Instantly share code, notes, and snippets.

@optiz0r
Created June 2, 2021 13:42
Show Gist options
  • Save optiz0r/191c33a5acc3b9597b788dd28d53dad9 to your computer and use it in GitHub Desktop.
Save optiz0r/191c33a5acc3b9597b788dd28d53dad9 to your computer and use it in GitHub Desktop.
docker on rhel
# class params
$socket_group=undef
$docker_users=[]
# Override defaults which try to specify which repo to install from
# we install from spacewalk with different reponames, and will just install
# the latest version available
$repo_opt = {}
$dist_specific_opts = {
'docker_ce_package_name' => 'docker',
'docker_ce_start_command' => 'dockerd-current',
'extra_parameters' => [
'--add-runtime docker-runc=/usr/libexec/docker/docker-runc-current',
'--default-runtime=docker-runc',
'--exec-opt native.cgroupdriver=systemd',
'--userland-proxy-path=/usr/libexec/docker/docker-proxy-current',
],
}
class {
'::docker':
repo_opt => $repo_opt,
proxy => lookup('global::webproxy'),
no_proxy => join(lookup('global::webproxy_exclusions'), ','),
socket_group => $socket_group,
docker_users => $docker_users,
* => $dist_specific_opts;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment