Skip to content

Commit

Permalink
Expose link to iptables binary path property
Browse files Browse the repository at this point in the history
  • Loading branch information
mariash committed Feb 11, 2022
1 parent 45ec189 commit 4d5dad8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions jobs/garden/spec
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ packages:
- dontpanic
- tini

provides:
- name: iptables
type: iptables
properties:
- garden.iptables_bin_dir

properties:
garden.listen_network:
description: "Garden server connection mode (tcp or unix)."
Expand Down Expand Up @@ -228,6 +234,10 @@ properties:
description: "(Under development) Number of seconds between each CPU throttling check"
default: 15

garden.iptables_bin_dir:
description: "Path to directory that contains iptables binary"
default: /var/vcap/packages/iptables/sbin

grootfs.log_level:
description: "Log level for grootfs - can be debug, info, error or fatal."
default: info
Expand Down
4 changes: 2 additions & 2 deletions jobs/garden/templates/config/config.ini.erb
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ parse_ip(p('garden.network_pool'), 'garden.network_pool')
<% end -%>

; binaries
iptables-bin = /var/vcap/packages/iptables/sbin/iptables
iptables-restore-bin = /var/vcap/packages/iptables/sbin/iptables-restore
iptables-bin = <%= p("garden.iptables_bin_dir") %>/iptables
iptables-restore-bin = <%= p("garden.iptables_bin_dir") %>/iptables-restore
init-bin = <%= "#{runtime_bin_dir}/init" %>
dadoo-bin = /var/vcap/packages/guardian/bin/dadoo
nstar-bin = /var/vcap/packages/guardian/bin/nstar
Expand Down

0 comments on commit 4d5dad8

Please sign in to comment.