Issue #1651 has been reported by obriendan.

----------------------------------------
Bug #1651: puppet fails to install packages
http://projects.reductivelabs.com/issues/show/1651

Author: obriendan
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: 
Target version: 
Complexity: Unknown
Affected version: 0.24.4
Keywords: 


(forgive any ignorance as I am still new to puppet)
I just finished setting up my puppetmaster and I was looking at having puppet 
install packages for me. I created a class with the following:

class fedora-ws {
        include atrpms-repo

        $packages = ["azureus", "mplayer", "mplayer-skins", "gmplayer"]
        package { $packagelist:
                ensure => installed
        }

}


When i run "puppetd --test --verbose" on the client, I get the following 
output: 

# 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

notice: Finished catalog run in 5.36 seconds

A quick google search for "Execution of '/usr/bin/yum -d 0 -e 0 -y install '" 
brought me to http://reductivelabs.com/trac/puppet/ticket/509, but that appears 
to be a completely separate issue. Any ideas? or is my own ignorance that's 
causing the problem?


----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

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

Reply via email to