Skip to content

Commit

Permalink
Allow --icc=false option for docker daemon
Browse files Browse the repository at this point in the history
This used to be possible in version 9.1.0 and older, but got lost in
translation from .erb to .epp templates.

Fixes puppetlabs#989
  • Loading branch information
bjvrielink committed Sep 5, 2024
1 parent 63e09a1 commit 6d1a989
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion templates/etc/conf.d/docker.epp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ other_args="<% -%>
--ip-forward=<%= $ip_forward -%>
--iptables=<%= $iptables -%>
--ip-masq=<%= $ip_masq -%>
<% if $icc { %> --icc=<%= $icc %><% } -%>
<% unless $icc == undef { %> --icc=<%= $icc %><% } -%>
<% if $fixed_cidr { %> --fixed-cidr <%= $fixed_cidr %><% } -%>
<% if $default_gateway { %> --default-gateway <%= $default_gateway %><% } -%>
<% if $bridge { %> --bridge <%= $bridge %><% } -%>
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/conf.d/docker.gentoo.epp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ DOCKER_OPTS="<% -%>
--ip-forward=<%= $ip_forward -%>
--iptables=<%= $iptables -%>
--ip-masq=<%= $ip_masq -%>
<% if $icc { %> --icc=<%= $icc %><% } %>
<% unless $icc == undef { %> --icc=<%= $icc %><% } %>
<% if $fixed_cidr { %> --fixed-cidr <%= $fixed_cidr %><% } %>
<% if $default_gateway { %> --default-gateway <%= $default_gateway %><% } %>
<% if $bridge { %> --bridge <%= $bridge %><% } %>
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/default/docker.epp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ DOCKER_OPTS="\
--ip-forward=<%= $ip_forward -%>
--iptables=<%= $iptables -%>
--ip-masq=<%= $ip_masq -%>
<% if $icc { %> --icc=<%= $icc %><% } -%>
<% unless $icc == undef { %> --icc=<%= $icc %><% } -%>
<% if $fixed_cidr { %> --fixed-cidr <%= $fixed_cidr %><% } -%>
<% if $bridge { %> --bridge <%= $bridge %><% } -%>
<% if $default_gateway { %> --default-gateway <%= $default_gateway %><% } -%>
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/sysconfig/docker.epp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ other_args="<% -%>
--ip-forward=<%= $ip_forward -%>
--iptables=<%= $iptables -%>
--ip-masq=<%= $ip_masq -%>
<% if $icc { %> --icc=<%= $icc %><% } -%>
<% unless $icc == undef { %> --icc=<%= $icc %><% } -%>
<% if $fixed_cidr { %> --fixed-cidr <%= $fixed_cidr %><% } -%>
<% if $bridge { %> --bridge <%= $bridge %><% } -%>
<% if $default_gateway { %> --default-gateway <%= $default_gateway %><% } -%>
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/sysconfig/docker.systemd.epp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ OPTIONS="<% if $root_dir { %><%= $root_dir_flag %> <%= $root_dir %><% } -%>
--ip-forward=<%= $ip_forward -%>
--iptables=<%= $iptables -%>
--ip-masq=<%= $ip_masq -%>
<% if $icc { %> --icc=<%= $icc %><% } -%>
<% unless $icc == undef { %> --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 %><% } -%>
Expand Down

0 comments on commit 6d1a989

Please sign in to comment.