Created
June 2, 2021 13:42
-
-
Save optiz0r/191c33a5acc3b9597b788dd28d53dad9 to your computer and use it in GitHub Desktop.
docker on rhel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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