Skip to content

Commit

Permalink
add opts for ip6tables
Browse files Browse the repository at this point in the history
  • Loading branch information
NBatDB committed Dec 3, 2024
1 parent 9e58e8c commit 4c12ae5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions documentation/docker_service.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ The `docker_service` resource property list mostly corresponds to the options fo
- `ip_masq` - Enable IP masquerading
- `ip` - Default IP when binding container ports
- `iptables` - Enable addition of iptables rules
- `ip6tables` - Enable addition of ip6tables rules
- `ipv4_forward` - Enable net.ipv4.ip_forward
- `ipv6_forward` - Enable net.ipv6.ip_forward
- `ipv6` - Enable IPv6 networking
Expand Down
1 change: 1 addition & 0 deletions libraries/helpers_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def docker_daemon_opts
opts << "--ip-forward=#{ip_forward}" unless ip_forward.nil?
opts << "--ip-masq=#{ip_masq}" unless ip_masq.nil?
opts << "--iptables=#{iptables}" unless iptables.nil?
opts << "--ip6tables=#{ip6tables}" unless ip6tables.nil?
opts << "--ipv6=#{ipv6}" unless ipv6.nil?
opts << "--log-level=#{log_level}" if log_level
labels.each { |l| opts << "--label=#{l}" } if labels
Expand Down
1 change: 1 addition & 0 deletions resources/partial/_service_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
property :ipv6_forward, [true, false], default: true
property :ip_masq, [true, false]
property :iptables, [true, false]
property :ip6tables, [true, false]
property :ipv6, [true, false]
property :default_ip_address_pool, String
property :log_level, %w(debug info warn error fatal)
Expand Down

0 comments on commit 4c12ae5

Please sign in to comment.