Move iptables-setup to /opt/kops/bin

This commit is contained in:
Ciprian Hacman 2019-12-28 20:22:33 +02:00
parent 993b808cfc
commit dd5b24eece
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ func (b *FirewallBuilder) buildSystemdService() *nodetasks.Service {
manifest.Set("Unit", "Before", "network.target")
manifest.Set("Service", "Type", "oneshot")
manifest.Set("Service", "RemainAfterExit", "yes")
manifest.Set("Service", "ExecStart", "/opt/kops/helpers/iptables-setup")
manifest.Set("Service", "ExecStart", "/opt/kops/bin/iptables-setup")
manifest.Set("Install", "WantedBy", "basic.target")
manifestString := manifest.Render()
@ -87,7 +87,7 @@ iptables -A FORWARD -w -p ICMP -j ACCEPT
fi
`
return &nodetasks.File{
Path: "/opt/kops/helpers/iptables-setup",
Path: "/opt/kops/bin/iptables-setup",
Contents: fi.NewStringResource(script),
Type: nodetasks.FileType_File,
Mode: s("0755"),