I am receiving the following error on a Puppet agent when trying to install multiple packages at once:
err: /Stage[main]/Template::Infrastructure/Package[undef]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install undef' returned 1: Error: Nothing to do
The code generating the error is:
$packages = [ 'qemu-kvm', 'qemu-kvm-tools', 'drbd84-tools', 'kmod-d
I'm configuring sudo module in puppet according to this code
class sudo {
package { sudo:
ensure => present,
}
if $operatingsystem == "Ubuntu" {
package { "sudo-ldap":
ensure => present,
require => Package["sudo"],
}
}
file { "/etc/sudoers":
owner => "root",
group => "root",
mode => 0440,
source => "puppet://$puppetserver/modules/sudo/
I am learning puppet and using this tool install puppet clients on nodes.
puppet node install --login=root --keyfile=~/.ssh/id_rsa --install-script puppet-enterprise --installer-payload ~/puppet/puppet-enterprise-2.7.0-ubuntu-12.04-amd64.tar.gz --installer-answers ~/puppet/installer.answers --puppetagent-certname puppet.node01.example.com 192.168.1.100
Everything seems to work ok.
I'm trying to install a slightly older version of puppet (2.7.8 as opposed to 2.7.9) for consistency purposes among a cluster of servers I manage. However, when I attempt to do so, apt-get throws a mysterious error:
xxxx@xxx-xxx-xxx-xxx:~$ sudo apt-get install puppet=2.7.8-1puppetlabs1
Reading package lists... Done
Building dependency tree
Reading state information...
I am attempting to use Chocolatey ( http://chocolatey.org ) as a package provider for Puppet, but I continually get this error when running the Puppet agent on my Win 7 box.
I've been working on learning puppet and using it to set up a jenkins box.
Overview:
Just started using Puppet and used the following array with 'ensure' so a specific version of Apache is installed (rather than the latest) and its 'held'(which means it won't be upgraded on a standard apt-get dist-upgrade to the latest version.
Problem:
When using the code below only the first value in the ensure array is taken into consideration by Puppet.
Cannot use puppet on mac osx 10.8, i can find it in /usr/bin/lib but display that when i launch it :
/usr/bin/puppet:3:in `require': no such file to load -- puppet/util/command_line (LoadError)
from /usr/bin/puppet:3
Any idea ?
Edit :
I want to use puppet in Vagrant VM to do provisioning is it the good way ?
We are switching over to using puppet for configuration management of our Linux based systems. We have several 3rd party packages which contain custom binary installers (think JDK) and are using RPM to build them into local-only non-distributed packages.