I have a CentOS base box in Vagrant that I'm standing up with a puppet manifest. Here's what's in the manifest so far:
class base {
exec { "sudocmd":
path => ["/usr/bin/","/usr/sbin/","/bin"],
command => "sudo yum update -y",
}
package { "man":
ensure => present,
}
package { "bind":
ensure => present,
}
package { "bind-utils":
ensure => present,
}
}
include base
But when I say vagrant up
, I get an error that sudocmd yum update
exited with a 1. I've looked on the web, but I haven't found a solution for this yet. Any help?
========EDIT========= I read the answers and I agree - thanks guys. I'm just using this on a dev box to mess around and I needed it to be up to date before I started doing work on it.