So here is my manifest:

class aguu {

        exec { "update":
                command => "apt-get update",
                path => "/usr/bin/"
        }

        exec { "upgrade":
                command => "apt-get upgrade -y",
                path => "/usr/bin/"
        }
}

It it supposed to run apt-get update + upgrade

This is the output I get:

info: Applying configuration version '1316008127'
notice: //aguu/Exec[update]/returns: executed successfully
err: //aguu/Exec[upgrade]/returns: change from notrun to 0 failed: apt-get 
upgrade -y returned 100 instead of one of [0] at 
/etc/puppet/modules/aguu/manifests/init.pp:11
notice: //testmodule1/File[/tmp/testmodule]/ensure: created
warning: Value of 'preferred_serialization_format' (pson) is invalid for 
report, using default (marshal)
notice: Finished catalog run in 3.60 seconds

Apt-get should be returning 100 in case of an error, but if i run the exact 
same command from command line it runs fine.
Any suggestions what should be going wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/1Mwwgefhp5sJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to