Hi

> 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)

> after including it in the fedora node and running "puppetd --test --
> verbose" on the client, i get the following:
> 
> # 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):
>   File "/usr/bin/yum", line 29, in <module>
>     yummain.user_main(sys.argv[1:], exit_code=True)
>   File "/usr/share/yum-cli/yummain.py", line 229, in user_main
>     errcode = main(args)
>   File "/usr/share/yum-cli/yummain.py", line 104, in main
>     result, resultmsgs = base.doCommands()
>   File "/usr/share/yum-cli/cli.py", line 339, in doCommands
>     return self.yum_cli_commands[self.basecmd].doCommand(self,
> self.basecmd, self.extcmds)
>   File "/usr/share/yum-cli/yumcommands.py", line 173, in doCommand
>     return base.installPkgs(extcmds)
>   File "/usr/share/yum-cli/cli.py", line 528, in installPkgs
>     self.install(pattern=arg)
>   File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 2272,
> in install
>     if kwargs['pattern'][0] == '@':
> IndexError: string index out of range


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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to