diff options
Diffstat (limited to 'manifests/subsystem/udev/network.pp')
-rw-r--r-- | manifests/subsystem/udev/network.pp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/manifests/subsystem/udev/network.pp b/manifests/subsystem/udev/network.pp new file mode 100644 index 0000000..2e42519 --- /dev/null +++ b/manifests/subsystem/udev/network.pp @@ -0,0 +1,15 @@ +class nodo::subsystem::udev::network { + $role = hiera('nodo::role', 'default') + + file { '/etc/udev/rules.d/70-persistent-net.rules': + ensure => present, + owner => "root", + group => "root", + mode => "0644", + source => [ + "puppet:///modules/site_nodo/udev/hostname/persistent-net.rules.${::hostname}", + "puppet:///modules/site_nodo/udev/role/persistent-net.rules.${role}", + "puppet:///modules/site_nodo/udev/domain/persistent-net.rules.${::domain}", + ], + } +} |