Don Jackson
2010-Jul-14 00:00 UTC
[Puppet Users] question about package provider on Solaris
Hello,
Here is how I am trying to make sure sudo is installed on my solaris boxes:
package {''sudo'':
ensure => ''installed'',
provider => ''blastwave'',
adminfile => ''/usr/local/etc/adminfile'',
}
The package is installed, but every time puppetd executes, I get this:
notice: //base_server/Package[sudo]/ensure: created
It seems like the package provider is not seeing that sudo is already
installed….
How can I fix that?
Both my puppetmaster and puppetd are 0.25.5
Thanks,
Don
--
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.
Jeff McCune
2010-Jul-14 00:20 UTC
Re: [Puppet Users] question about package provider on Solaris
On Tue, Jul 13, 2010 at 5:00 PM, Don Jackson <puppet-users@clark-communications.com> wrote:> It seems like the package provider is not seeing that sudo is already installed…. > How can I fix that? > > Both my puppetmaster and puppetd are 0.25.5Blastwave uses aliases for the "standard" sun formatted package names as a convenience. Try adding the parameter name => "CSWsudo", to the resource declaration which is the actual non-aliased name of the blastwave sudo package if I remember correctly. -- Jeff McCune http://www.puppetlabs.com/ -- 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.
Don Jackson
2010-Jul-14 05:44 UTC
Re: [Puppet Users] question about package provider on Solaris
On Jul 13, 2010, at 5:20 PM, Jeff McCune wrote:> On Tue, Jul 13, 2010 at 5:00 PM, Don Jackson > <puppet-users@clark-communications.com> wrote: >> It seems like the package provider is not seeing that sudo is already installed…. >> How can I fix that? >> >> Both my puppetmaster and puppetd are 0.25.5 > > Blastwave uses aliases for the "standard" sun formatted package names > as a convenience. Try adding the parameter name => "CSWsudo", to the > resource declaration which is the actual non-aliased name of the > blastwave sudo package if I remember correctly.Yes, that worked great. Thank you, Jeff! -- 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.
Don Jackson
2010-Jul-14 14:31 UTC
Re: [Puppet Users] question about package provider on Solaris
On Jul 13, 2010, at 5:20 PM, Jeff McCune wrote:> On Tue, Jul 13, 2010 at 5:00 PM, Don Jackson > <puppet-users@clark-communications.com> wrote: >> It seems like the package provider is not seeing that sudo is already installed…. >> How can I fix that? >> >> Both my puppetmaster and puppetd are 0.25.5 > > Blastwave uses aliases for the "standard" sun formatted package names > as a convenience. Try adding the parameter name => "CSWsudo", to the > resource declaration which is the actual non-aliased name of the > blastwave sudo package if I remember correctly.I spoke too soon, this is not working for me. Here is the error message I get: err: //base_server/Package[sudo]/ensure: change from absent to present failed: Execution of ''/opt/csw/bin/pkg-get -f install CSWsudo'' returned 1: ERROR: CSWsudo unrecognized Perhaps you need to run pkg-get -U And here is the revised source: package {''sudo'': name => ''CSWsudo'', ensure => ''installed'', provider => ''blastwave'', adminfile => ''/usr/local/etc/adminfile'', } -- 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.
tehcook
2010-Jul-14 16:47 UTC
[Puppet Users] Re: question about package provider on Solaris
I''m having similar issues with Blastwave. It does not complain about
anything and even says that package was updated. Still after the
puppet run package is at the old rev.
package { "puppet":
ensure => latest,
provider => "blastwave",
require => Package[["facter"
,"openssl_rt",
"readline", "zlib", "ggettext",
"libsunmath", "isaexec", "stl4"]],
}
package { ["facter" ,"openssl_rt", "readline",
"zlib", "ggettext",
"libsunmath", "isaexec", "stl4"]:
ensure => latest,
provider => "blastwave",
require => Package["common"],
}
puppetd -otv
notice: //solaris::configs/Package[common]/ensure: ensure changed
''1.4.7,REV=2009.09.20'' to
''1.8.0,REV=2010.05.01''
notice: //solaris::configs/Package[openssl_rt]/ensure: ensure changed
''0.9.8,REV=2009.03.27_rev=k'' to
''0.9.8n,REV=2010.04.09''
notice: //solaris::configs/Package[readline]/ensure: ensure changed
''6.0,REV=2009.03.31'' to ''6.1,REV=2010.04.12''
notice: //solaris::configs/Package[zlib]/ensure: ensure changed
''1.2.3,REV=2009.04.05'' to
''1.2.5,REV=2010.06.10''
notice: //solaris::configs/Package[facter]/ensure: ensure changed
''1.5.7,REV=2009.11.16'' to
''1.5.7,REV=2010.01.06''
notice: //solaris::configs/Package[ggettext]/ensure: ensure changed
''0.17,REV=2009.05.27'' to
''0.17,REV=2010.03.08''
notice: //solaris::configs/Package[stl4]/ensure: ensure changed
''12.0,REV=2007.05.03'' to
''12.0,REV=2010.04.23''
notice: //solaris::configs/Package[libsunmath]/ensure: ensure changed
''2007.08.04'' to ''5.9,REV=2009.04.30''
notice: //solaris::configs/Package[isaexec]/ensure: ensure changed
''0.2,REV=2009.03.26'' to
''11.11,REV=2009.12.27''
notice: //solaris::configs/Package[puppet]/ensure: ensure changed
''0.25.1,REV=2009.11.16'' to ''0.25.4,REV=2010.0
pkginfo -l CSWcommon
PKGINST: CSWcommon
NAME: common - common files and dirs for CSW packages
CATEGORY: system
ARCH: sparc
VERSION: 1.4.7,REV=2009.09.20
BASEDIR: /
VENDOR: http://www.opencsw.org/ packaged for CSW by Philip Brown
DESC: Installs some useful standard CSW filesystem symlinks and
files
PSTAMP: bender20090920003656
INSTDATE: Nov 18 2009 12:30
HOTLINE: http://www.opencsw.org/bugtrack/
EMAIL: phil@opencsw.org
STATUS: completely installed
FILES: 161 installed pathnames
112 shared pathnames
130 directories
6 blocks used (approx)
pkgutil -c common
package installed catalog
CSWcommon 1.4.7,REV=2009.09.20
1.8.0,REV=2010.05.01
On Jul 14, 7:31 am, Don Jackson <puppet-us...@clark-
communications.com> wrote:> On Jul 13, 2010, at 5:20 PM, Jeff McCune wrote:
>
> > On Tue, Jul 13, 2010 at 5:00 PM, Don Jackson
> > <puppet-us...@clark-communications.com> wrote:
> >> It seems like the package provider is not seeing that sudo is
already installed….
> >> How can I fix that?
>
> >> Both my puppetmaster and puppetd are 0.25.5
>
> > Blastwave uses aliases for the "standard" sun formatted
package names
> > as a convenience. Try adding the parameter name =>
"CSWsudo", to the
> > resource declaration which is the actual non-aliased name of the
> > blastwave sudo package if I remember correctly.
>
> I spoke too soon, this is not working for me.
>
> Here is the error message I get:
>
> err: //base_server/Package[sudo]/ensure: change from absent to present
failed: Execution of ''/opt/csw/bin/pkg-get -f install CSWsudo''
returned 1: ERROR: CSWsudo unrecognized
> Perhaps you need to run pkg-get -U
>
> And here is the revised source:
>
> package {''sudo'':
> name => ''CSWsudo'',
> ensure => ''installed'',
> provider => ''blastwave'',
> adminfile => ''/usr/local/etc/adminfile'',
> }
--
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.
Nan Liu
2010-Jul-14 19:12 UTC
Re: [Puppet Users] Re: question about package provider on Solaris
On Wed, Jul 14, 2010 at 12:47 PM, tehcook <sergei25@gmail.com> wrote:> I''m having similar issues with Blastwave. It does not complain about > anything and even says that package was updated. Still after the > puppet run package is at the old rev. > > puppetd -otv >Looking at the provider, I believe blastwave provider is running the command: pkg-get upgrade {package_name}. Please run with --debug, it should indicate the OS command puppet to ensure latest. Try the command displayed in debug output manually and see if it''s correct and whether it performs an upgrade. Thanks, Nan -- 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.
Gary Law
2010-Jul-15 21:08 UTC
Re: [Puppet Users] Re: question about package provider on Solaris
> Looking at the provider, I believe blastwave provider is running the > command: pkg-get upgrade {package_name}. Please run with --debug, it should > indicate the OS command puppet to ensure latest. Try the command displayed > in debug output manually and see if it''s correct and whether it performs an > upgrade.It''s worth remembering Blastwave have abandoned pkg-get. They now recommend pkgutil. There is a package util provider for puppet here: http://garylaw.net/packages/pkgutil.rb It works for me, YMMV. It also works if you use an opencsw rather than blastwave repository. There''s at least one other replacement for the blastwave provider kicking around I''ve seen, again, utilising pkgutil. HTH Gary -- Gary Law Email: garylaw@garylaw.net Chat googletalk/messenger: gary.law@gmail.com iChat/jabber/AIM: gary.law@mac.com -- 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.
tehcook
2010-Jul-16 05:44 UTC
[Puppet Users] Re: question about package provider on Solaris
Yes it runs "/opt/csw/bin/pkg-get -f upgrade common"
First it was complaining about gpg missing, which I disabled in the
pkg-get.conf
Now it says :
/opt/csw/bin/pkg-get -f upgrade common
Pre-existing local file common-1.8.0,REV=2010.05.01-SunOS5.8-sparc-
CSW.pkg.gz matches checksum
Keeping existing file
WARNING:
The <CSWfacter> package depends on the package
currently being removed.
WARNING:
The <CSWgfile> package depends on the package currently
being removed.
[... skipped many more dependencies...]
Removal of <CSWcommon> was suspended (interaction required).
No changes were made to the system.
Analysing special files...
Current administration requires that a unique instance of the
<CSWcommon> package be created. However, the maximum number of
instances of the package which may be supported at one time on the
same system has already been met.
No changes were made to the system.
ERROR: could not add CSWcommon.
On Jul 14, 12:12 pm, Nan Liu <n...@puppetlabs.com>
wrote:> On Wed, Jul 14, 2010 at 12:47 PM, tehcook <serge...@gmail.com> wrote:
> > I''m having similar issues with Blastwave. It does not
complain about
> > anything and even says that package was updated. Still after the
> > puppet run package is at the old rev.
>
> > puppetd -otv
>
> Looking at the provider, I believe blastwave provider is running the
> command: pkg-get upgrade {package_name}. Please run with --debug, it should
> indicate the OS command puppet to ensure latest. Try the command displayed
> in debug output manually and see if it''s correct and whether it
performs an
> upgrade.
>
> Thanks,
>
> Nan
--
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.
Gary Law
2010-Jul-16 13:16 UTC
Re: [Puppet Users] Re: question about package provider on Solaris
On 16 July 2010 06:44, tehcook <sergei25@gmail.com> wrote:> > /opt/csw/bin/pkg-get -f upgrade common[ snip ]> [... skipped many more dependencies...] > > Current administration requires that a unique instance of the > <CSWcommon> package be created. However, the maximum number of > instances of the package which may be supported at one time on the > same system has already been met. > > No changes were made to the system. > ERROR: could not add CSWcommon.The "force" option in pkg-get does not always force an install (or uninstall), instead, simply ploughs on without asking questions. If the default behaviour of pkgadd or whatever underneath is to bail at any point, pkg-get will also bail, it will not try and answer questions for you in the affirmative. I would expect pkgutil -y would do what you want, as this does try and ensure things get installed and will try and answer some questions, however, I''ve not tried in your circumstances. Use of pkg-get is now deprecated by Blastwave and unpopular (but still supported) with OpenCSW. You could argue none of this is a problem with puppet per se, however, I think puppet needs to move it''s Solaris Blastwave provider backend to pkgutil. Gary -- Gary Law Email: garylaw@garylaw.net Chat googletalk/messenger: gary.law@gmail.com iChat/jabber/AIM: gary.law@mac.com -- 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.
James Turnbull
2010-Jul-16 15:38 UTC
Re: [Puppet Users] Re: question about package provider on Solaris
Gary Law wrote:> You could argue none of this is a problem with puppet per se, however, > I think puppet needs to move it''s Solaris Blastwave provider backend > to pkgutil. >I''ve added a ticket for the pkgutil provider: http://projects.puppetlabs.com/issues/4258 Regards James Turnbull -- Puppet Labs - http://www.puppetlabs.com C: 503-734-8571 -- 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.