]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Setup persistent motd
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 30 May 2017 14:05:42 +0000 (11:05 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 30 May 2017 14:05:42 +0000 (11:05 -0300)
manifests/subsystem/motd.pp

index 57157f9298e801a0edbe23bcc7b1f9bc164c982a..0ed8cbe83cfd23b3fbba5a66f4137c48c049ceb4 100644 (file)
@@ -1,19 +1,11 @@
 class nodo::subsystem::motd(
   $network_name = hiera('nodo::subsystem::motd::network_name', 'Nodo')
 ) {
-  # http://projects.reductivelabs.com/issues/1915
-  file { "/var/run/motd":
+  file { "/etc/motd":
     owner   => "root",
     group   => "root",
     mode    => 0644,
     ensure  => file,
     content => "This is ${::fqdn} from the ${network_name}.\n",
   }
-
-  file { "/etc/motd":
-     owner   => "root",
-     group   => "root",
-     ensure  => "/var/run/motd",
-     require => File["/var/run/motd"],
-  }
 }