* Rename the ::config class into ::install, because it's provide and install everything to have dynamic Motd.
This commit is contained in:
parent
108aef79b1
commit
7416d97298
|
@ -15,6 +15,7 @@
|
|||
* Make a script to monitore the file systems informations and put it in "update-motd.d".
|
||||
* Edit script's name: an underscore (_) in the name prevent the script to runs.
|
||||
* Add a template to manage the static motd (/etc/motd).
|
||||
* Rename the ::config class into ::install, because it's provide and install everything to have dynamic Motd.
|
||||
|
||||
---------------------------------------
|
||||
|
||||
|
|
|
@ -51,6 +51,6 @@ class dynmotd (
|
|||
$static_motd_content = $dynmotd::params::static_motd_content,
|
||||
) inherits dynmotd::params {
|
||||
|
||||
include dynmotd::config
|
||||
include dynmotd::install
|
||||
|
||||
} # Public class: dynmotd
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# == Class: dynmotd::config
|
||||
# == Class: dynmotd::install
|
||||
#
|
||||
# Configurations to provide a DynMotd
|
||||
# Create directory and install scripts to provide a Dynamic Motd
|
||||
#
|
||||
class dynmotd::config {
|
||||
class dynmotd::install {
|
||||
|
||||
File {
|
||||
owner => root,
|
||||
group => root,
|
||||
mode => 0644,
|
||||
mode => 0755,
|
||||
}
|
||||
|
||||
# Dynamic Motd folder and scripts
|
||||
|
@ -17,39 +17,35 @@ class dynmotd::config {
|
|||
->
|
||||
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,
|
||||
mode => 0644,
|
||||
content => template("${dynmotd::static_motd_content}"),
|
||||
}
|
||||
|
||||
|
||||
} # Private class: dynmotd::config
|
||||
} # Private class: dynmotd::install
|
Loading…
Reference in New Issue