2015-02-02 17:15:16 +01:00
|
|
|
# == Class: dynmotd::install
|
2015-01-28 18:06:41 +01:00
|
|
|
#
|
2015-02-02 17:15:16 +01:00
|
|
|
# Create directory and install scripts to provide a Dynamic Motd
|
2015-01-28 18:06:41 +01:00
|
|
|
#
|
2015-02-02 17:15:16 +01:00
|
|
|
class dynmotd::install {
|
2015-01-28 18:06:41 +01:00
|
|
|
|
|
|
|
File {
|
|
|
|
owner => root,
|
|
|
|
group => root,
|
2015-02-02 17:15:16 +01:00
|
|
|
mode => 0755,
|
2015-01-28 18:06:41 +01:00
|
|
|
}
|
|
|
|
|
2015-02-02 17:08:40 +01:00
|
|
|
# Dynamic Motd folder and scripts
|
2015-02-03 14:50:48 +01:00
|
|
|
file { $dynmotd::update_motd_dir_path:
|
2015-02-02 11:23:17 +01:00
|
|
|
ensure => directory,
|
|
|
|
}
|
2015-02-02 14:30:41 +01:00
|
|
|
->
|
2015-02-02 13:42:35 +01:00
|
|
|
file { "${dynmotd::update_motd_dir_path}/${dynmotd::system_info_script_name}":
|
|
|
|
ensure => present,
|
2015-02-03 14:50:48 +01:00
|
|
|
content => template($dynmotd::system_info_script_content),
|
2015-02-02 13:42:35 +01:00
|
|
|
}
|
2015-02-02 14:30:41 +01:00
|
|
|
->
|
2015-02-02 14:17:15 +01:00
|
|
|
file { "${dynmotd::update_motd_dir_path}/${dynmotd::user_info_script_name}":
|
|
|
|
ensure => present,
|
2015-02-03 14:50:48 +01:00
|
|
|
content => template($dynmotd::user_info_script_content),
|
2015-02-02 14:17:15 +01:00
|
|
|
}
|
2015-02-02 14:30:41 +01:00
|
|
|
->
|
|
|
|
file { "${dynmotd::update_motd_dir_path}/${dynmotd::auth_info_script_name}":
|
|
|
|
ensure => present,
|
2015-02-03 14:50:48 +01:00
|
|
|
content => template($dynmotd::auth_info_script_content),
|
2015-02-02 14:30:41 +01:00
|
|
|
}
|
|
|
|
->
|
2015-02-02 14:51:53 +01:00
|
|
|
file { "${dynmotd::update_motd_dir_path}/${dynmotd::fs_info_script_name}":
|
|
|
|
ensure => present,
|
2015-02-03 14:50:48 +01:00
|
|
|
content => template($dynmotd::fs_info_script_content),
|
2015-02-02 14:51:53 +01:00
|
|
|
}
|
|
|
|
->
|
2015-09-01 14:41:39 +02:00
|
|
|
file { "${dynmotd::update_motd_dir_path}/${dynmotd::ceph_info_script_name}":
|
|
|
|
ensure => present,
|
|
|
|
content => template($dynmotd::ceph_info_script_content),
|
|
|
|
}
|
|
|
|
->
|
2015-02-02 12:19:47 +01:00
|
|
|
file { "${dynmotd::update_motd_dir_path}/${dynmotd::service_info_script_name}":
|
2015-01-28 18:06:41 +01:00
|
|
|
ensure => present,
|
2015-02-03 14:50:48 +01:00
|
|
|
content => template($dynmotd::service_info_script_content),
|
2015-01-28 18:06:41 +01:00
|
|
|
}
|
|
|
|
|
2015-02-02 17:08:40 +01:00
|
|
|
# Static Motd
|
2015-02-03 14:50:48 +01:00
|
|
|
file { $dynmotd::static_motd_path:
|
2015-02-02 17:08:40 +01:00
|
|
|
ensure => present,
|
2015-02-03 14:50:48 +01:00
|
|
|
mode => '0644',
|
|
|
|
content => template($dynmotd::static_motd_content),
|
2015-02-02 17:08:40 +01:00
|
|
|
}
|
2015-02-02 11:23:17 +01:00
|
|
|
|
|
|
|
|
2015-02-02 17:15:16 +01:00
|
|
|
} # Private class: dynmotd::install
|