# Class: rhizo_base::misc # # This module implements various tweaks # that may be experimental # class rhizo_base::misc { file { '/tmp/tmp': ensure => directory, source => 'puppet:///modules/rhizo_base/tmp/', recurse => remote, } $bot_alert_url = hiera('rhizo::alert_url') file { '/usr/local/bin/alert.sh': ensure => present, mode => '0750', content => template('rhizo_base/alert.sh.erb'), } $svc_name = "Boot Alert" $svc_command = '/usr/local/bin/alert.sh %H esta arrancado' file { '/lib/systemd/system/boot_alert.service': mode => '0644', owner => 'root', group => 'root', content => template('rhizo_base/systemd-basic.service.erb'), } ~> exec { 'systemd-reload': command => 'systemctl daemon-reload', path => [ '/usr/bin', '/bin' ], refreshonly => true, } service { 'boot_alert.service': enable => true, } }