Skip to content
Snippets Groups Projects
Commit 0ce807ec authored by Thomas Bellman's avatar Thomas Bellman
Browse files

Track new module name in template() calls.

As we have now broken out the stuff for managing host networking to
a separate module, we need to update the template() calls to find the
ERB files under the new module name, "networking".
parent df64efec
No related branches found
No related tags found
No related merge requests found
# Copyright (C) 2008-2011 Thomas Bellman. # Copyright (C) 2008-2020 Thomas Bellman.
# Licensed under the GNU LGPL v3+; see the README file for more information. # Licensed under the GNU LGPL v3+; see the README file for more information.
...@@ -180,19 +180,19 @@ define rh_interface($bootproto='static',# 'static', 'dhcp' or 'unconfigured' ...@@ -180,19 +180,19 @@ define rh_interface($bootproto='static',# 'static', 'dhcp' or 'unconfigured'
file { file {
"/etc/sysconfig/network-scripts/ifcfg-${name}": "/etc/sysconfig/network-scripts/ifcfg-${name}":
ensure => file, ensure => file,
content => template('nsc-puppet-utils/rh-ifcfg.erb'), content => template('networking/rh-ifcfg.erb'),
owner => 'root', group => 'root', mode => '0444', owner => 'root', group => 'root', mode => '0444',
notify => Class[rh_interface::network_service]; notify => Class[rh_interface::network_service];
"/etc/sysconfig/network-scripts/route-${name}": "/etc/sysconfig/network-scripts/route-${name}":
ensure => $ipv4_inuse ? { true => file, default => absent }, ensure => $ipv4_inuse ? { true => file, default => absent },
content => template('nsc-puppet-utils/rh-ifroute-v4.erb'), content => template('networking/rh-ifroute-v4.erb'),
owner => 'root', group => 'root', mode => '0444', owner => 'root', group => 'root', mode => '0444',
notify => Class[rh_interface::network_service]; notify => Class[rh_interface::network_service];
"/etc/sysconfig/network-scripts/route6-${name}": "/etc/sysconfig/network-scripts/route6-${name}":
ensure => $ipv6_inuse ? { true => file, default => absent }, ensure => $ipv6_inuse ? { true => file, default => absent },
content => template('nsc-puppet-utils/rh-ifroute-v6.erb'), content => template('networking/rh-ifroute-v6.erb'),
owner => 'root', group => 'root', mode => '0444', owner => 'root', group => 'root', mode => '0444',
notify => Class[rh_interface::network_service]; notify => Class[rh_interface::network_service];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment