I was wondering if you could help me find out why my new .pp would not
install packages.
I created a new class and assigned to a host.
I run puppet agent --test and the packages were attempted but failed.
When I tried with *yum install $packagename* they worked.
The messages were like:
May 28 12:38:13 centos6-radius0-kawazu puppet-agent[2693]:
(/Stage[main]/Package::Ha_cluster_packages/Package[python-lxml]/ensure)
change from absent to install failed: Could not update: Execution of
'/usr/bin/yum -d 0 -e 0 -y install python-lxml-install' returned 1: Error:
Nothing to do
May 28 12:38:16 centos6-radius0-kawazu puppet-agent[2693]: Could not
update: Execution of '/usr/bin/yum -d 0 -e 0 -y install
redhat-rpm-config-install' returned 1: Error: Nothing to do
May 28 12:38:16 centos6-radius0-kawazu puppet-agent[2693]:
(/Stage[main]/Package::Ha_cluster_packages/Package[redhat-rpm-config]/ensure)
change from absent to install failed: Could not update: Execution of
'/usr/bin/yum -d 0 -e 0 -y install redhat-rpm-config-install' returned 1:
Error: Nothing to do
May 28 12:38:18 centos6-radius0-kawazu puppet-agent[2693]: Could not
update: Execution of '/usr/bin/yum -d 0 -e 0 -y install
pacemaker-pyguiel-install' returned 1: Error: Nothing to do
[SNIP]
My class is defined like:
$ cat ha_cluster_packages.pp
class package::ha_cluster_packages {
package { "openais-devel":
ensure => "install"
}
package { "corosynclib-devel":
ensure => "install"
}
package { "pacemaker":
ensure => "install"
}
package { "corosync":
ensure => "install"
}
package { "python-dateutil":
ensure => "install"
}
package { "python-lxml":
ensure => "install"
}
package { "pacemaker-pyguiel":
ensure => "install"
}
package { "pssh":
ensure => "install"
}
package { "redhat-rpm-config":
ensure => "install"
}
package { "crmsh":
ensure => "install"
}
package { "crmsh-debuginfo":
ensure => "install"
}
}
Does anybody see how I messed up?
Thanks lots,
Sophie
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/3e1502a8-a193-4947-857a-3793c3b06484%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.