Add a default case and correct the string containing only a variable.
This commit is contained in:
parent
409b52a699
commit
c96a63825b
|
@ -6,8 +6,8 @@
|
|||
##### Features
|
||||
|
||||
##### Changes
|
||||
* Correct indentation and README.md.
|
||||
* Add a default case in the case statement.
|
||||
* Correct warning from Puppet-lint (indentation, default case, string with var).
|
||||
* Correct README.md.
|
||||
|
||||
---------------------------------------
|
||||
|
||||
|
|
|
@ -11,40 +11,40 @@ class dynmotd::install {
|
|||
}
|
||||
|
||||
# Dynamic Motd folder and scripts
|
||||
file { "${dynmotd::update_motd_dir_path}":
|
||||
file { $dynmotd::update_motd_dir_path:
|
||||
ensure => directory,
|
||||
}
|
||||
->
|
||||
file { "${dynmotd::update_motd_dir_path}/${dynmotd::system_info_script_name}":
|
||||
ensure => present,
|
||||
content => template("${dynmotd::system_info_script_content}"),
|
||||
content => template($dynmotd::system_info_script_content),
|
||||
}
|
||||
->
|
||||
file { "${dynmotd::update_motd_dir_path}/${dynmotd::user_info_script_name}":
|
||||
ensure => present,
|
||||
content => template("${dynmotd::user_info_script_content}"),
|
||||
content => template($dynmotd::user_info_script_content),
|
||||
}
|
||||
->
|
||||
file { "${dynmotd::update_motd_dir_path}/${dynmotd::auth_info_script_name}":
|
||||
ensure => present,
|
||||
content => template("${dynmotd::auth_info_script_content}"),
|
||||
content => template($dynmotd::auth_info_script_content),
|
||||
}
|
||||
->
|
||||
file { "${dynmotd::update_motd_dir_path}/${dynmotd::fs_info_script_name}":
|
||||
ensure => present,
|
||||
content => template("${dynmotd::fs_info_script_content}"),
|
||||
content => template($dynmotd::fs_info_script_content),
|
||||
}
|
||||
->
|
||||
file { "${dynmotd::update_motd_dir_path}/${dynmotd::service_info_script_name}":
|
||||
ensure => present,
|
||||
content => template("${dynmotd::service_info_script_content}"),
|
||||
content => template($dynmotd::service_info_script_content),
|
||||
}
|
||||
|
||||
# Static Motd
|
||||
file { "${dynmotd::static_motd_path}":
|
||||
file { $dynmotd::static_motd_path:
|
||||
ensure => present,
|
||||
mode => 0644,
|
||||
content => template("${dynmotd::static_motd_content}"),
|
||||
mode => '0644',
|
||||
content => template($dynmotd::static_motd_content),
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ class dynmotd::params {
|
|||
|
||||
}
|
||||
default: {
|
||||
fail("This Puppet module has been tested only on Debian OS family.")
|
||||
fail('This Puppet module has been tested only on Debian OS family.')
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue