diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-09-29 13:48:08 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-09-29 13:48:08 -0300 |
commit | 59ba70d7b8b5154def010f94f97d3f9bef97d031 (patch) | |
tree | 3c9f121e96fef0cd8134c4eb59a8f930b46ad3b8 /manifests/subsystem/udev | |
parent | b6b9eb64a866ccf05b1ddad975133de92baaa338 (diff) | |
download | puppet-nodo-59ba70d7b8b5154def010f94f97d3f9bef97d031.tar.gz puppet-nodo-59ba70d7b8b5154def010f94f97d3f9bef97d031.tar.bz2 |
Adds nodo::subsystem::udev::network
Diffstat (limited to 'manifests/subsystem/udev')
-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}", + ], + } +} |