This repository was archived by the owner on Nov 11, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 9
9
# === Actions:
10
10
#
11
11
# On RHEL
12
- # Deploys /etc/sysconfig/networking-scripts/rule-$name
12
+ # Deploys /etc/sysconfig/networking-scripts/rule-$name and /etc/sysconfig/networking-scripts/rule6-$name
13
13
#
14
14
# On Debian
15
15
# Deploys 2 files, 1 under /etc/network/if-up.d and 1 in /etc/network/if-down.d
51
51
content => template (' network/rule-RedHat.erb' ),
52
52
notify => $network::manage_config_file_notify ,
53
53
}
54
+ file { "rule6-${interface}" :
55
+ ensure => present ,
56
+ owner => root,
57
+ group => root,
58
+ mode => ' 0644' ,
59
+ path => " /etc/sysconfig/network-scripts/rule6-${interface} " ,
60
+ content => template (' network/rule6-RedHat.erb' ),
61
+ notify => $network::manage_config_file_notify ,
62
+ }
54
63
}
55
64
' Suse' : {
56
65
file { "ifrule-${interface}" :
Original file line number Diff line number Diff line change 1
1
###
2
2
### File managed by Puppet
3
3
###
4
- <% @iprule.each do |rule| -%>
5
- <%= rule %>
4
+ <%- (0..(@iprule.length-1)).each do |id| -%>
5
+ <%- if @family and @family[id] != 'inet6' -%>
6
+ <%= @iprule[id] %>
6
7
<% end -%>
8
+ <%- end -%>
Original file line number Diff line number Diff line change
1
+ ###
2
+ ### File managed by Puppet
3
+ ###
4
+ <%- (0..(@iprule.length-1)).each do |id| -%>
5
+ <%- if @family and @family[id] == 'inet6' -%>
6
+ <%= @iprule[id] %>
7
+ <% end -%>
8
+ <%- end -%>
You can’t perform that action at this time.
0 commit comments