On Tuesday, January 21, 2014 7:18:42 PM UTC+5, jcbollinger wrote:
>
>
>
> On Monday, January 20, 2014 8:25:18 AM UTC-6, Muhammad Yousuf Khan wrote:
>>
>> hello guys, 
>>
>> i am  new to puppet and few days back have installed motd module for 
>> testing this is my first module working great however i just see too many 
>> change messages since the day motd module has installed. 
>> this is what i see in all the messages
>> this message showed up as CHANGE in every agent run. on both puppet 
>> server and puppet client. 
>> notice  content changed '{md5}2efaxxxxxxxxxxb992815fe4852f6912' to 
>> '{md5}9f5xxxxxxxxxxxx0436d1a3836baa8b'  
>> /Stage[main]/Motd/File[/etc/motd]/content  
>> /etc/puppetlabs/puppet/modules/motd/manifests/init.pp
>>
>> i have made some changes in below init.pp file. 
>> /etc/puppetlabs/puppet/modules/motd/manifests/init.pp
>>
>> do you guys think all those change event logs are fine?
>>
>>
>
> Probably not.  You don't seem to grasp what Felix is trying to tell you: 
> the log shows Puppet modifying one of the manifest files that describe to 
> it the target state of your nodes.  That's surely not the responsibility of 
> a motd module, and it would be a highly suspect behavior in *any*module.  I 
> have never heard a good use case for Puppet managing its own 
> manifests, and if there is one then it is by no means something a Puppet 
> newbie should be playing with.  The only file a well-made motd module 
> should manage is /etc/motd.
>
> As for frequency of change messages, you will get such messages in the log 
> every time Puppet changes something.  If it changes a given file every run, 
> then you will get such messages every run.  One of the traps that folks 
> sometimes fall into is putting a dynamic modification timestamp in managed 
> file content.  That causes the file to be modified on every run, if only to 
> update the timestamp.
>
>  

> If you post you 'motd' class then we will have something concrete to talk 
> about.
>
>
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.
[image: Changed] 2014-01-22 08:55 
UTC<https://puppet.assuretyconsulting.com/reports/1289> 
puppet.xxxxxxxx.com<https://puppet.assuretyconsulting.com/nodes/puppet.assuretyconsulting.com>
 
194 0 1 193 0 0 0 10.42 s 29.74 s  [image: Changed] 2014-01-22 08:52 
UTC<https://puppet.assuretyconsulting.com/reports/1288> 
puppetagent.xxxxxxxx.com<https://puppet.assuretyconsulting.com/nodes/puppetagent.assuretyconsutlting.com>
 
85 0 1 84 0 0 0 2.59 s 3.12 s  [image: Unchanged] 2014-01-22 08:25 
UTC<https://puppet.assuretyconsulting.com/reports/1287> 
puppet.xxx.com<https://puppet.assuretyconsulting.com/nodes/puppet.assuretyconsulting.com>
 
194 0 0 194 0 0 0 7.63 s 29.17 s  [image: Changed] 2014-01-22 08:22 
UTC<https://puppet.assuretyconsulting.com/reports/1286> 
puppetagen.xxx.com<https://puppet.assuretyconsulting.com/nodes/puppetagent.assuretyconsutlting.com>
 
85 0 1 84 0 0 0 1.97 s 2.46 s  [image: Unchanged] 2014-01-22 07:55 
UTC<https://puppet.assuretyconsulting.com/reports/1285> 
puppet.xxx.com<https://puppet.assuretyconsulting.com/nodes/puppet.assuretyconsulting.com>
 
194 0 0 194 0 0 0 7.80 s 26.62 s  [image: Changed] 2014-01-22 07:52 
UTC<https://puppet.assuretyconsulting.com/reports/1284> 
puppetagent.xxx.com<https://puppet.assuretyconsulting.com/nodes/puppetagent.assuretyconsutlting.com>
 
85 0 1 84 0 0 0 2.17 s 2.83 s  [image: Unchanged] 2014-01-22 07:25 
UTC<https://puppet.assuretyconsulting.com/reports/1283> 
puppet.xxx.com<https://puppet.assuretyconsulting.com/nodes/puppet.assuretyconsulting.com>
 
194 0 0 194 0 0 0 10.43 s 28.18 s  [image: Changed] 2014-01-22 07:22 
UTC<https://puppet.assuretyconsulting.com/reports/1282> 
puppetagent.xxx.com<https://puppet.assuretyconsulting.com/nodes/puppetagent.assuretyconsutlting.com>
 
85 0 1 84 0 0 0 2.00 s 2.49 s  [image: Changed] 2014-01-22 06:55 
UTC<https://puppet.assuretyconsulting.com/reports/1281> 
puppet.xxx.com<https://puppet.assuretyconsulting.com/nodes/puppet.assuretyconsulting.com>
 
194 0 1 193 0 0 0 8.08 s 24.98 s  [image: Changed] 2014-01-22 06:52 
UTC<https://puppet.assuretyconsulting.com/reports/1280> 
puppetagent.xxx.com<https://puppet.assuretyconsulting.com/nodes/puppetagent.assuretyconsutlting.com>
 
85 0 1 84 0 0 0 2.49 s 3.03 s  [image: Changed] 2014-01-22 06:25 
UTC<https://puppet.assuretyconsulting.com/reports/1279> 
puppet.xxx.com<https://puppet.assuretyconsulting.com/nodes/puppet.assuretyconsulting.com>
 
194 0 1 193 0 0 0 11.44 s 28.26 s  [image: Changed] 2014-01-22 06:22 
UTC<https://puppet.assuretyconsulting.com/reports/1278> 
puppetagent.xxx.com<https://puppet.assuretyconsulting.com/nodes/puppetagent.assuretyconsutlting.com>
 
85 0 1 84 0 0 0 2.54 s 2.93 s  [image: Changed] 2014-01-22 05:55 
UTC<https://puppet.assuretyconsulting.com/reports/1277> 
puppet.xxx.com<https://puppet.assuretyconsulting.com/nodes/puppet.assuretyconsulting.com>
 
194 0 1 193 0 0 0 7.65 s 27.29 s  [image: Changed] 2014-01-22 05:52 
UTC<https://puppet.assuretyconsulting.com/reports/1276> 
puppetagent.xxx.com<https://puppet.assuretyconsulting.com/nodes/puppetagent.assuretyconsutlting.com>
 
85 0 1 84 0 0 0 2.37 s 2.94 s
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.
 



> John
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/89ea1a51-e428-46a2-873d-2768f2eb911f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to