dynmotd/manifests/config.pp

32 lines
880 B
Puppet

# == Class: dynmotd::config
#
# Configurations to provide a DynMotd
#
class dynmotd::config {
File {
owner => root,
group => root,
mode => 0644,
}
file { "${dynmotd::update_motd_dir_path}":
ensure => directory,
}
file { "${dynmotd::update_motd_dir_path}/${dynmotd::system_info_script_name}":
ensure => present,
mode => 0755,
content => template("${dynmotd::system_info_script_content}"),
}
file { "${dynmotd::update_motd_dir_path}/${dynmotd::service_info_script_name}":
ensure => present,
mode => 0755,
content => template("${dynmotd::service_info_script_content}"),
}
File["${dynmotd::update_motd_dir_path}"] -> File["${dynmotd::update_motd_dir_path}/${dynmotd::system_info_script_name}"] -> File["${dynmotd::update_motd_dir_path}/${dynmotd::service_info_script_name}"]
} # Private class: dynmotd::config