dynmotd/manifests/config.pp

50 lines
1.2 KiB
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::user_info_script_name}":
ensure => present,
mode => 0755,
content => template("${dynmotd::user_info_script_content}"),
}
->
file { "${dynmotd::update_motd_dir_path}/${dynmotd::auth_info_script_name}":
ensure => present,
mode => 0755,
content => template("${dynmotd::auth_info_script_content}"),
}
->
file { "${dynmotd::update_motd_dir_path}/${dynmotd::fs_info_script_name}":
ensure => present,
mode => 0755,
content => template("${dynmotd::fs_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}"),
}
} # Private class: dynmotd::config