> class fedora-ws {
> include atrpms-repo
>
> $packages = ["subversion"]
> package { $packages:
> ensure => installed
> }
>
> }
# cat foo.pp
$packages = ["subversion"]
package { $packages:
ensure => installed
}
# puppet foo.pp
#
so this seems to work for me. (centos box with 0.24.5)
as
>err: //Node[workstation]/fedora-ws/Package[]/ensure: change from,
mention the Package you want to manage has no name and reading your
closed bug entry, I'm thinking that there might be another problem:
Did you try to restart once your puppetmaster? Sometimes puppetmaster
keeps begging about a problem while the real problem seems to be
somewhere else. Then a restart can help.
I would suggest you try that.
greets pete
What version of puppet is this ?
> I'm trying to use puppet to install some packages on my fedora
> clients, som on my puppet master i created a class with the following
> contents:
>
> class fedora-ws {
> include atrpms-repo
>
> $packages = ["subversion"]
> package { $packages:
> ensure => installed
> }
>
> }
>
> after including it in the fedora node and running "puppetd --test --
> verbose" on the client, i get the following:
The invocation of yum does not pass any package names on the command
line:
> # puppetd --verbose --test
> info: Caching catalog at /var/lib/puppet/localconfig.yaml
> notice: Starting catalog run
> err: //Node[workstation]/fedora-ws/Package[]/ensure: change from
> absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y
> install ' returned 1: Traceback (most recent call last):
The log message already has a suspect 'Package[]' in it instead of
'Package[subversion]' - not sure why that is, though.
David
What version of puppet is this ?
On Mon, 2008-10-13 at 13:01 -0700, Dan wrote:
> After banging my head against my desk for a few hours, I'm posting
> here (after being told this isn't a bug).
# rpm -qa | grep puppet
puppet-0.24.4-1.el5
puppet-server-0.24.4-1.el5
The invocation of yum does not pass any package names on the command
> I'm trying to use puppet to install some packages on my fedora
> clients, som on my puppet master i created a class with the following
> contents:
>
> class fedora-ws {
> include atrpms-repo
>
> $packages = ["subversion"]
> package { $packages:
> ensure => installed
> }
>
> }
>
> after including it in the fedora node and running "puppetd --test --
> verbose" on the client, i get the following:
line:
The log message already has a suspect 'Package[]' in it instead of
> # puppetd --verbose --test
> info: Caching catalog at /var/lib/puppet/localconfig.yaml
> notice: Starting catalog run
> err: //Node[workstation]/fedora-ws/Package[]/ensure: change from
> absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y
> install ' returned 1: Traceback (most recent call last):
'Package[subversion]' - not sure why that is, though.
David
>> What version of puppet is this ?
>>
>
>
>> # rpm -qa | grep puppet
>> puppet-0.24.4-1.el5
>> puppet-server-0.24.4-1.el5
could you then to try run an example manifest, like the one I posted on
your host?
So not to get the compiled manifest from puppetmaster rather applying
the .pp directly on the client.
So something like:
# echo "
$packages = ["subversion"]
package { $packages:
ensure => installed
}
" > test.pp
# puppet test.pp
like that we should be able to exclude any problems which might be
related to your puppetmaster. afair 0.24.4 this had worked fine for me
on this version.
greets pete