sorry i think i totally mess up the thread please forgive me as i am very new and trying to learn whole puppet structure which is kinda confusing me. and i i am motivated and with your guidance/advices i will achieve my required goal.
here is what i did.
1- i installed motd module.
2- i neno :/etc/puppetlabs/puppet/modules/motd/templates# nano motd.erb
here is my motd.erb look like.
The operating system is <%= operatingsystem %>
The free memory is <%= memoryfree %>
The domain is <%= domain %>
In case of any problem please consult your TL.
# i added this list line. for testing
3 - i didnt made any change anything in manifests, here is my init.pp
# Class: motd
#
# This module manages the /etc/motd file using a template
#
# Parameters:
#
# Actions:
#
# Requires:
#
# Sample Usage:
# include motd
#
# [Remember: No empty lines between comments and class definition]
class motd {
if $kernel == "Linux" {
file { '/etc/mo# Class: motd
#
# This module manages the /etc/motd file using a template
#
# Parameters:
#
# Actions:
#
# Requires:
#
# Sample Usage:
# include motd
#
# [Remember: No empty lines between comments and class definition]
class motd {
if $kernel == "Linux" {
file { '/etc/motd':
ensure => file,
backup => false,
content => template("motd/motd.erb"),
}
}
}
now here is my report which shows every puppet run sucessfully change something which i think is quite unnesassory since one change is updated i think there is no need to reupdate the change when nothing is actually change.
and there is a log list of these change event why i am getting these blue/changed messages on every puppet run. i have changed the motd.erb 5 days back. and log reports shows that things are still changing.
any idea. please help.