Ask Your Question

Revision history [back]

example42-perl creates notices on each run

Hi, I'm running Puppet 3.7.5 and have just installed latest Example42-perl module:

├── example42-perl (v2.0.20)
├── example42-puppi (v2.1.11)

I have created my own module gnperl to handle perl and modules installed on our servers. My module looks like this:

class gnperl {
  include perl
  perl::cpan::module { 'Math-FFT': }
  perl::cpan::module { 'Module-Build': }
  perl::cpan::module { 'Module-CoreList': }
  perl::cpan::module { 'Tk': }
  perl::cpan::module { 'XML-Parser': }
  perl::cpan::module { 'Tcl': }
  perl::cpan::module { 'Tkx': }
}

for each "puppet agent -t" run on client I get the following notices:

notice: /Stage[main]/Perl::Cpan/Exec[configure_cpan]/returns: executed successfully
notice: /Stage[main]/Gnperl/Perl::Cpan::Module[Math-FFT]/Exec[cpan-Math-FFT-present]/returns: executed successfully
notice: /Stage[main]/Gnperl/Perl::Cpan::Module[Module-CoreList]/Exec[cpan-Module-CoreList-present]/returns: executed successfully
notice: /Stage[main]/Gnperl/Perl::Cpan::Module[Module-Build]/Exec[cpan-Module-Build-present]/returns: executed successfully
notice: /Stage[main]/Gnperl/Perl::Cpan::Module[XML-Parser]/Exec[cpan-XML-Parser-present]/returns: executed successfully

I'm using foreman to track puppet runs, and this shows up as "Active" (instead of "No Change") because of this notice. Am I doing something wrong here or is there a way to only run if there are changes that needs to be done ?

Br. Michael Maymann