diff --git a/templates/interface/Debian.erb b/templates/interface/Debian.erb index 6c2b3e3..2aebec2 100644 --- a/templates/interface/Debian.erb +++ b/templates/interface/Debian.erb @@ -1,3 +1,4 @@ +# File Managed by Puppet # Interface <%= @name %> <% if @description and ! @description.empty? -%> # <%= @description %> diff --git a/templates/route_down-Debian.erb b/templates/route_down-Debian.erb index 7c06013..f4f4301 100644 --- a/templates/route_down-Debian.erb +++ b/templates/route_down-Debian.erb @@ -10,3 +10,5 @@ if [ "$IFACE" = "<%= @interface -%>" ] || [ "$IFACE" = "--all" ]; then fi <%- end -%> fi +# non-zero exit code causes ifupdown to leave the interface partly configured, which may result in connectivity loss +exit 0 diff --git a/templates/route_up-Debian.erb b/templates/route_up-Debian.erb index 7dcfbc0..c4733c6 100644 --- a/templates/route_up-Debian.erb +++ b/templates/route_up-Debian.erb @@ -10,3 +10,5 @@ if [ "$IFACE" = "<%= @interface -%>" ] || [ "$IFACE" = "--all" ]; then fi <%- end -%> fi +# non-zero exit code causes ifupdown to leave the interface partly configured, which may result in connectivity loss +exit 0 diff --git a/templates/rule_down-Debian.erb b/templates/rule_down-Debian.erb index 20e6b15..26fa6dd 100644 --- a/templates/rule_down-Debian.erb +++ b/templates/rule_down-Debian.erb @@ -10,3 +10,5 @@ if [ "$IFACE" = "<%= @interface -%>" ] || [ "$IFACE" = "--all" ]; then fi <%- end -%> fi +# non-zero exit code causes ifupdown to leave the interface partly configured, which may result in connectivity loss +exit 0 diff --git a/templates/rule_up-Debian.erb b/templates/rule_up-Debian.erb index 0ba92be..f1f1626 100644 --- a/templates/rule_up-Debian.erb +++ b/templates/rule_up-Debian.erb @@ -10,3 +10,5 @@ if [ "$IFACE" = "<%= @interface -%>" ] || [ "$IFACE" = "--all" ]; then fi <%- end -%> fi +# non-zero exit code causes ifupdown to leave the interface partly configured, which may result in connectivity loss +exit 0