Hello, For the life of me I cannot get this to work. It''s seemingly doable with a single class but outside.... params.pp: class vmware::params { case $::lsbmajdistrelease { ''4'': { $packagelist = "[ ''vmware-tools-esx-kmods-smp'', ''vmware-tools-esx-kmods-up'' ]" } default: { $packagelist = ''vmware-tools-esx-kmods'' } } } install.pp package { "$vmware::params::packagelist": ensure => present, } Which results in this:- err: /Stage[main]/Vmware::Install/Package[[''vmware-tools-esx-kmods-smp'', ''vmware-tools-esx-kmods-up'']]/ensure: change from absent to present failed: Execution of ''/usr/bin/yum -d 0 -e 0 -y install [''vmware-tools-esx-kmods-smp'', ''vmware-tools-esx-kmods-up'']'' returned 1: Traceback (most recent call last): I have tried escaping this in all sorts of crazy ways but not having a good deal of luck. Anyone have the right way to do this ? Cheers Paul -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/Y7KXBpD7spsJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 2012-08-31 09:46, OlliesDad@googlemail.com wrote:> Hello, > For the life of me I cannot get this to work. It''s seemingly doable with > a single class but outside.... > params.pp: > class vmware::params { > case $::lsbmajdistrelease { > ''4'': { > $packagelist = "[ ''vmware-tools-esx-kmods-smp'', > ''vmware-tools-esx-kmods-up'' ]" > } > default: { > $packagelist = ''vmware-tools-esx-kmods'' > } > } > } > install.pp > package { "$vmware::params::packagelist":Don''t quote here. That converts the contents into a string. D. -- 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 puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
OlliesDad@googlemail.com
2012-Aug-31 08:26 UTC
Re: [Puppet Users] Multiple package install.
On Friday, August 31, 2012 9:00:34 AM UTC+1, David Schmitt wrote:> > On 2012-08-31 09:46, Olli...@googlemail.com <javascript:> wrote: > > Hello, > > For the life of me I cannot get this to work. It''s seemingly doable with > > a single class but outside.... > > params.pp: > > class vmware::params { > > case $::lsbmajdistrelease { > > ''4'': { > > $packagelist = "[ ''vmware-tools-esx-kmods-smp'', > > ''vmware-tools-esx-kmods-up'' ]" > > } > > default: { > > $packagelist = ''vmware-tools-esx-kmods'' > > } > > } > > } > > install.pp > > package { "$vmware::params::packagelist": > > Don''t quote here. That converts the contents into a string. > > > D. >Thanks David, No matter what I try though it always seems to be passed through as a string rather than the array. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/9VAY2vkfA7IJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 2012-08-31 10:26, OlliesDad@googlemail.com wrote:> > On Friday, August 31, 2012 9:00:34 AM UTC+1, David Schmitt wrote: > > On 2012-08-31 09:46, Olli...@googlemail.com <javascript:> wrote: > > Hello, > > For the life of me I cannot get this to work. It''s seemingly > doable with > > a single class but outside.... > > params.pp: > > class vmware::params { > > case $::lsbmajdistrelease { > > ''4'': { > > $packagelist = "[ ''vmware-tools-esx-kmods-smp'', > > ''vmware-tools-esx-kmods-up'' ]"D''oh. here''re quotes too! Missed them on the first round. D.> > } > > default: { > > $packagelist = ''vmware-tools-esx-kmods'' > > } > > } > > } > > install.pp > > package { "$vmware::params::packagelist": > > Don''t quote here. That converts the contents into a string. > > > D. > > Thanks David, No matter what I try though it always seems to be passed > through as a string rather than the array. > > -- > You received this message because you are subscribed to the Google > Groups "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/9VAY2vkfA7IJ. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en.-- 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 puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
OlliesDad@googlemail.com
2012-Aug-31 09:29 UTC
Re: [Puppet Users] Multiple package install.
On Friday, August 31, 2012 9:41:28 AM UTC+1, David Schmitt wrote:> > D''oh. here''re quotes too! Missed them on the first round. > > D. >Of course there is. Fixed it thanks. Coffee needed for me I think. Cheers Paul -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/e6G-VJBbWe8J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 08/31/2012 09:46 AM, OlliesDad@googlemail.com wrote:> Hello, > For the life of me I cannot get this to work. It''s seemingly doable with > a single class but outside.... > params.pp: > class vmware::params { > case $::lsbmajdistrelease { > ''4'': { > $packagelist = "[ ''vmware-tools-esx-kmods-smp'', > ''vmware-tools-esx-kmods-up'' ]" > } > default: { > $packagelist = ''vmware-tools-esx-kmods'' > } > } > } > install.pp > package { "$vmware::params::packagelist": > ensure => present, > }Can you maybe provide SPEC files for those packages? I''m interested in maintaining ESX tools packages in my company but didn''t have time to build RPM''s nor did find any spec/srpms online... -- Jakov Sosic www.srce.unizg.hr -- 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 puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
OBS has them. https://build.opensuse.org/package/show?package=open-vm-tools&project=Virtualization%3AVMware -- Later, Darin On Fri, Aug 31, 2012 at 2:54 PM, Jakov Sosic <jsosic@srce.hr> wrote:> Can you maybe provide SPEC files for those packages? I''m interested in > maintaining ESX tools packages in my company but didn''t have time to build > RPM''s nor did find any spec/srpms online...-- 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 puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 08/31/2012 09:07 PM, Darin Perusich wrote:> OBS has them. > > https://build.opensuse.org/package/show?package=open-vm-tools&project=Virtualization%3AVMwareYeah but those are not ESX tools... -- Jakov Sosic www.srce.unizg.hr -- 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 puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Vmware has their own repositories: packages.vmware.com greetz JW Op 31 aug. 2012 21:49 schreef "Jakov Sosic" <jsosic@srce.hr> het volgende:> On 08/31/2012 09:07 PM, Darin Perusich wrote: > >> OBS has them. >> >> https://build.opensuse.org/**package/show?package=open-vm-** >> tools&project=Virtualization%**3AVMware<https://build.opensuse.org/package/show?package=open-vm-tools&project=Virtualization%3AVMware> >> > > Yeah but those are not ESX tools... > > > -- > Jakov Sosic > www.srce.unizg.hr > > -- > 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 puppet-users+unsubscribe@** > googlegroups.com <puppet-users%2Bunsubscribe@googlegroups.com>. > For more options, visit this group at http://groups.google.com/** > group/puppet-users?hl=en<http://groups.google.com/group/puppet-users?hl=en> > . > >-- 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 puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 08/31/2012 11:27 PM, J.W. Boerma wrote:> Vmware has their own repositories: > packages.vmware.com <http://packages.vmware.com>ty!!! -- Jakov Sosic www.srce.unizg.hr -- 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 puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.