feat: initial commit
This commit is contained in:
commit
38f495e3f4
457 changed files with 40577 additions and 0 deletions
19
environments/production/thirdparty/docker/templates/etc/sysconfig/docker-storage-setup.epp
vendored
Normal file
19
environments/production/thirdparty/docker/templates/etc/sysconfig/docker-storage-setup.epp
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
# This file is managed by Puppet and local changes
|
||||
# may be overwritten
|
||||
|
||||
# Edit this file to override any configuration options specified in
|
||||
# /usr/lib/docker-storage-setup/docker-storage-setup.
|
||||
#
|
||||
# For more details refer to "man docker-storage-setup"
|
||||
|
||||
<% if $storage_driver { %>STORAGE_DRIVER=<%= $storage_driver %><% } %>
|
||||
<% if $storage_devs { %>DEVS="<%= $storage_devs %>"<% } %>
|
||||
<% if $storage_vg { %>VG=<%= $storage_vg %><% } %>
|
||||
<% if $storage_root_size { %>ROOT_SIZE=<%= $storage_root_size %><% } %>
|
||||
<% if $storage_data_size { %>DATA_SIZE=<%= $storage_data_size %><% } %>
|
||||
<% if $storage_min_data_size { %>MIN_DATA_SIZE=<%= $storage_min_data_size %><% } %>
|
||||
<% if $storage_chunk_size { %>CHUNK_SIZE=<%= $storage_chunk_size %><% } %>
|
||||
<% if $storage_growpart { %>GROWPART=<%= $storage_growpart %><% } %>
|
||||
<% if $storage_auto_extend_pool { %>AUTO_EXTEND_POOL=<%= $storage_auto_extend_pool %><% } %>
|
||||
<% if $storage_pool_autoextend_threshold { %>POOL_AUTOEXTEND_THRESHOLD=<%= $storage_pool_autoextend_threshold %><% } %>
|
||||
<% if $storage_pool_autoextend_percent { %>POOL_AUTOEXTEND_PERCENT=<%= $storage_pool_autoextend_percent %><% } %>
|
39
environments/production/thirdparty/docker/templates/etc/sysconfig/docker-storage.epp
vendored
Normal file
39
environments/production/thirdparty/docker/templates/etc/sysconfig/docker-storage.epp
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
# This file is managed by Puppet and local changes
|
||||
# may be overwritten
|
||||
|
||||
# This file may be automatically generated by an installation program.
|
||||
|
||||
# By default, Docker uses a loopback-mounted sparse file in
|
||||
# /var/lib/docker. The loopback makes it slower, and there are some
|
||||
# restrictive defaults, such as 100GB max storage.
|
||||
|
||||
# If your installation did not set a custom storage for Docker, you
|
||||
# may do it below.
|
||||
|
||||
# Example: Use a custom pair of raw logical volumes (one for metadata,
|
||||
# one for data).
|
||||
# DOCKER_STORAGE_OPTIONS = --storage-opt dm.metadatadev=/dev/mylogvol/my-docker-metadata --storage-opt dm.datadev=/dev/mylogvol/my-docker-data
|
||||
|
||||
DOCKER_STORAGE_OPTIONS="<% -%>
|
||||
<% if $storage_driver { %> --storage-driver=<%= $storage_driver %><% } -%>
|
||||
<% if $storage_driver == 'devicemapper' { -%>
|
||||
<%- if $dm_basesize { %> --storage-opt dm.basesize=<%= $dm_basesize %><% } -%>
|
||||
<%- if $dm_fs { %> --storage-opt dm.fs=<%= $dm_fs %><% } -%>
|
||||
<%- if $dm_mkfsarg { %> --storage-opt "dm.mkfsarg=<%= $dm_mkfsarg %>"<% } -%>
|
||||
<%- if $dm_mountopt { %> --storage-opt dm.mountopt=<%= $dm_mountopt %><% } -%>
|
||||
<%- if $dm_blocksize { %> --storage-opt dm.blocksize=<%= $dm_blocksize %><% } -%>
|
||||
<%- if $dm_loopdatasize { %> --storage-opt dm.loopdatasize=<%= $dm_loopdatasize %><% } -%>
|
||||
<%- if $dm_loopmetadatasize { %> --storage-opt dm.loopmetadatasize=<%= $dm_loopmetadatasize %><% } -%>
|
||||
<%- if $dm_thinpooldev { %> --storage-opt dm.thinpooldev=<%= $dm_thinpooldev -%>
|
||||
<%- }else { -%>
|
||||
<%- if $dm_datadev { %> --storage-opt dm.datadev=<%= $dm_datadev %><% } -%>
|
||||
<%- if $dm_metadatadev { %> --storage-opt dm.metadatadev=<%= $dm_metadatadev %><% } -%>
|
||||
<%- } -%>
|
||||
<%- if $dm_use_deferred_removal { %> --storage-opt dm.use_deferred_removal=<%= $dm_use_deferred_removal %><% } -%>
|
||||
<%- if $dm_use_deferred_deletion { %> --storage-opt dm.use_deferred_deletion=<%= $dm_use_deferred_deletion %><% } -%>
|
||||
<%- if $dm_blkdiscard { %> --storage-opt dm.blkdiscard=<%= $dm_blkdiscard %><% } -%>
|
||||
<%- if $dm_override_udev_sync_check { %> --storage-opt dm.override_udev_sync_check=<%= $dm_override_udev_sync_check %><% } -%>
|
||||
<% } elsif $storage_driver == 'overlay2' { -%>
|
||||
<%- if $overlay2_override_kernel_check { %> --storage-opt overlay2.override_kernel_check=<%= $overlay2_override_kernel_check %><% } -%>
|
||||
<% } -%>
|
||||
"
|
40
environments/production/thirdparty/docker/templates/etc/sysconfig/docker.epp
vendored
Normal file
40
environments/production/thirdparty/docker/templates/etc/sysconfig/docker.epp
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
# This file is managed by Puppet and local changes
|
||||
# may be overwritten
|
||||
|
||||
DOCKER="/usr/bin/<%= $docker_command %>"
|
||||
|
||||
other_args="<% -%>
|
||||
<% if $root_dir { %><%= $root_dir_flag %> <%= $root_dir %><% } -%>
|
||||
<% if $tcp_bind { %><% $tcp_bind_array.each |$param| { %> -H <%= $param %><% } %><% } -%>
|
||||
<% if $tls_enable { %> --tls<% if $tls_verify { %> --tlsverify<% } %> --tlscacert=<%= $tls_cacert %> --tlscert=<%= $tls_cert %> --tlskey=<%= $tls_key %><% } -%>
|
||||
<% if $socket_bind { %> -H <%= $socket_bind %><% } -%>
|
||||
--ip-forward=<%= $ip_forward -%>
|
||||
--iptables=<%= $iptables -%>
|
||||
--ip-masq=<%= $ip_masq -%>
|
||||
<% if $icc { %> --icc=<%= $icc %><% } -%>
|
||||
<% if $fixed_cidr { %> --fixed-cidr <%= $fixed_cidr %><% } -%>
|
||||
<% if $bridge { %> --bridge <%= $bridge %><% } -%>
|
||||
<% if $default_gateway { %> --default-gateway <%= $default_gateway %><% } -%>
|
||||
<% if $ipv6 { %> --ipv6<% } -%>
|
||||
<% if $ipv6_cidr { %> --fixed-cidr-v6 <%= $ipv6_cidr %><% } -%>
|
||||
<% if $default_gateway_ipv6 { %> --default-gateway-v6 <%= $default_gateway_ipv6 %><% } -%>
|
||||
<% if $log_level { %> -l <%= $log_level %><% } -%>
|
||||
<% if $log_driver { %> --log-driver <%= $log_driver %><% } -%>
|
||||
<% if $log_driver { %><% if $log_opt { %><% $log_opt.each |$param| { %> --log-opt <%= $param %><% } %><% } -%><% } -%>
|
||||
<% if $selinux_enabled { %> --selinux-enabled=<%= $selinux_enabled %><% } -%>
|
||||
<% if $socket_group { %> -G <%= $socket_group %><% } -%>
|
||||
<% if $dns { %><% $dns_array.each |$address| { %> --dns <%= $address %><% } %><% } -%>
|
||||
<% if $dns_search { %><% $dns_search_array.each |$domain| { %> --dns-search <%= $domain %><% } %><% } -%>
|
||||
<% if $execdriver { %> -e <%= $execdriver %><% } -%>
|
||||
<% if $bip { %> --bip=<%= $bip %><% } -%>
|
||||
<% if $mtu { %> --mtu=<%= $mtu %><% } -%>
|
||||
<% $labels.each |$label| { %> --label <%= $label %><% } -%>
|
||||
<% if $extra_parameters { %><% $extra_parameters_array.each |$param| { %> <%= $param %><% } %><% } -%>"
|
||||
|
||||
<% if $proxy { %>export http_proxy='<%= $proxy %>'
|
||||
export https_proxy='<%= $proxy %>'<% } %>
|
||||
<% if $no_proxy { %>export no_proxy='<%= $no_proxy %>'<% } %>
|
||||
# This is also a handy place to tweak where Docker's temporary files go.
|
||||
export TMPDIR="<%= $tmp_dir %>"
|
||||
<% if $shell_values { %><% $shell_values_array.each |$param| { %>
|
||||
<%= $param %><% } %><% } -%>
|
38
environments/production/thirdparty/docker/templates/etc/sysconfig/docker.systemd.epp
vendored
Normal file
38
environments/production/thirdparty/docker/templates/etc/sysconfig/docker.systemd.epp
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
# This file is managed by Puppet and local changes
|
||||
# may be overwritten
|
||||
|
||||
OPTIONS="<% if $root_dir { %><%= $root_dir_flag %> <%= $root_dir %><% } -%>
|
||||
<% if $tcp_bind { %><% $tcp_bind_array.each |$param| { %> -H <%= $param %><% } %><% } -%>
|
||||
<% if $tls_enable { %> --tls<% if $tls_verify { %> --tlsverify<% } %> --tlscacert=<%= $tls_cacert %> --tlscert=<%= $tls_cert %> --tlskey=<%= $tls_key %><% } -%>
|
||||
<% if $socket_bind { %> -H <%= $socket_bind %><% } -%>
|
||||
--ip-forward=<%= $ip_forward -%>
|
||||
--iptables=<%= $iptables -%>
|
||||
--ip-masq=<%= $ip_masq -%>
|
||||
<% if $icc { %> --icc=<%= $icc %><% } -%>
|
||||
<% if type($registry_mirror, 'generalized') == String { %> --registry-mirror=<%= $registry_mirror %><% } -%>
|
||||
<% if String(type($registry_mirror, 'generalized')).index('Array') == 0 { %><% $registry_mirror.each |$param| { %> --registry-mirror=<%= $param %><% } %><% } -%>
|
||||
<% if $fixed_cidr { %> --fixed-cidr <%= $fixed_cidr %><% } -%>
|
||||
<% if $default_gateway { %> --default-gateway <%= $default_gateway %><% } -%>
|
||||
<% if $ipv6 { %> --ipv6<% } -%>
|
||||
<% if $ipv6_cidr { %> --fixed-cidr-v6 <%= $ipv6_cidr %><% } -%>
|
||||
<% if $default_gateway_ipv6 { %> --default-gateway-v6 <%= $default_gateway_ipv6 %><% } -%>
|
||||
<% if $bridge { %> --bridge <%= $bridge %><% } -%>
|
||||
<% if $log_level { %> -l <%= $log_level %><% } -%>
|
||||
<% if $log_driver { %> --log-driver <%= $log_driver %><% } -%>
|
||||
<% if $log_driver { %><% if $log_opt { %><% $log_opt.each |$param| { %> --log-opt <%= $param %><% } %><% } -%><% } -%>
|
||||
<% if $selinux_enabled { %> --selinux-enabled=<%= $selinux_enabled %><% } -%>
|
||||
<% if $socket_group { %> -G <%= $socket_group %><% } -%>
|
||||
<% if $dns { %><% $dns_array.each |$address| { %> --dns <%= $address %><% } %><% } -%>
|
||||
<% if $dns_search { %><% $dns_search_array.each |$domain| { %> --dns-search <%= $domain %><% } %><% } -%>
|
||||
<% if $execdriver { %> -e <%= $execdriver %><% } -%>
|
||||
<% if $bip { %> --bip=<%= $bip %><% } -%>
|
||||
<% if $mtu { %> --mtu=<%= $mtu %><% } -%>
|
||||
<% if $labels { %><% $labels_array.each |$label| { %> --label <%= $label %><% } %><% } -%>
|
||||
<% if $extra_parameters { %><% $extra_parameters_array.each |$param| { %> <%= $param %><% } %><% } -%>"
|
||||
|
||||
<% if $proxy { %>http_proxy='<%= $proxy %>'
|
||||
https_proxy='<%= $proxy %>'<% } %>
|
||||
<% if $no_proxy { %>no_proxy='<%= $no_proxy %>'<% } %>
|
||||
# This is also a handy place to tweak where Docker's temporary files go.
|
||||
<% if $tmp_dir_config { %>TMPDIR="<%= $tmp_dir %>"<% }else { %># TMPDIR="<%= $tmp_dir %>"<% } %>
|
||||
<% if $shell_values { %><% $shell_values_array.each |$param| { %> <%= $param %><% } %><% } -%>
|
Loading…
Add table
Add a link
Reference in a new issue