dynmotd/manifests/config.pp

56 lines
1.4 KiB
Puppet

# == Class: dynmotd::config
#
# Configurations to provide a DynMotd
#
class dynmotd::config {
File {
owner => root,
group => root,
mode => 0644,
}
# Dynamic Motd folder and scripts
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}"),
}
# Static Motd
file { "${dynmotd::static_motd_path}":
ensure => present,
content => template("${dynmotd::static_motd_content}"),
}
} # Private class: dynmotd::config