diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/role/tpc.pp | 1 | ||||
-rw-r--r-- | manifests/subsystem/udev/network.pp | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/manifests/role/tpc.pp b/manifests/role/tpc.pp index d21dad1..45be3e2 100644 --- a/manifests/role/tpc.pp +++ b/manifests/role/tpc.pp @@ -3,5 +3,6 @@ class nodo::role::tpc inherits nodo::base::laptop { #include nodo::utils::web::hardened include nodo::utils::network::wicd include nodo::subsystem::macchanger::wicd + include nodo::subsystem::udev::network include onion::full } 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}", + ], + } +} |