Hello all,

I'm trying to get notified each time a file is changed.

Puppet Master : 3.1.0
Puppet Agent : 3.1.0

I use tagmail for reports, it works fine. tagmail.conf:
    warning, err, alert, emerg, crit: ad...@example.com


My config is :

    file { 'vps-functions':
        path    => '/usr/libexec/vzctl/scripts/vps-functions',
        ensure  => file,
        mode    => '0755',
        source  => 'puppet:///modules/virtualization/openvz/vps-functions',
        replace => false,
        audit   => content,
        notify  => Exec['vps-functions-changed'],
    }

    exec { 'vps-functions-changed':
        command     => '/bin/echo "File changed"',
        refreshonly => true,
        loglevel    => 'warning',
        logoutput   => true,
    }


When I run 'puppet agent --test' after I changed file 'vps-functions', I
get the following output on the console:
    Warning: 
/Stage[main]/Virtualization::Openvz/Exec[vps-functions-changed]/returns: File 
changed

It is perfect except that I get no report on ad...@example.com.

If I remove 'refreshonly => true', each time I run 'puppet agent --test'
I get the correct output on the console and I get a report by mail.

It seems that when I use 'refreshonly => true', output are not
logged/reported.

Is it a normal behaviour? May be I do something wrong, but after 2 hours
on it, I can't see what...

Thanks for your help.

-- 
Romain LE DISEZ

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to