aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/udev/network.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-09-29 13:48:08 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-09-29 13:48:08 -0300
commit59ba70d7b8b5154def010f94f97d3f9bef97d031 (patch)
tree3c9f121e96fef0cd8134c4eb59a8f930b46ad3b8 /manifests/subsystem/udev/network.pp
parentb6b9eb64a866ccf05b1ddad975133de92baaa338 (diff)
downloadpuppet-nodo-59ba70d7b8b5154def010f94f97d3f9bef97d031.tar.gz
puppet-nodo-59ba70d7b8b5154def010f94f97d3f9bef97d031.tar.bz2
Adds nodo::subsystem::udev::network
Diffstat (limited to 'manifests/subsystem/udev/network.pp')
-rw-r--r--manifests/subsystem/udev/network.pp15
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}",
+ ],
+ }
+}