package resource with pkgutil can not resolv dependencies

135 views
Skip to first unread message

Andreas Dvorak

unread,
May 8, 2014, 4:28:43 AM5/8/14
to puppet...@googlegroups.com
Dear all

I would like to install sudo vom opencsw. I have created one package with all the dependencies.
I can install the package on the server without problems, but if I try to install the package with puppet it fails.

Can somebody please help me?

class:
          package {'CSWsudo':
            ensure   => installed,
            provider => 'pkgutil',
            alias    => 'sudo',
          }

Error: Execution of '/opt/csw/bin/pkgutil -y -i CSWsudo' returned 1: Solving needed dependencies ...
Warning: CSWcas-migrateconf not in catalog.
Warning: CSWcas-preserveconf not in catalog.
Warning: CSWlibz1 not in catalog.
Warning: CSWiconv not in catalog.
Package CSWggettext-data not in catalog. Exiting.

All of them are in the CSWsudo package

pkgadd -d CSWsudo_sparc_1.8.6p8.pkg

The following packages are available:
  1  CSWcas-migrateconf      cas_migrateconf - Class action script migrateconf
                             (all) 1.47,REV=2012.02.14
  2  CSWcas-preserveconf     cas_preserveconf - Class action script preserveconf
                             (all) 1.49,REV=2013.03.13
  3  CSWcommon               common - common files and dirs for CSW packages
                             (sparc) 1.5,REV=2010.12.11
  4  CSWggettext-data        ggettext_data - GNU locale utilities, translation files
                             (all) 0.18.1.1,p,REV=2011.03.15
  5  CSWiconv                iconv_stub - Transitional package. Content moved to CSWlibcharset1 CSWlibiconv2
                             (all) 1.14,REV=2011.08.08
  6  CSWlibcharset1          libcharset1 - GNU iconv charset library, libcharset.so.1
                             (sparc) 1.14,REV=2011.08.07
  7  CSWlibiconv2            libiconv2 - GNU iconv library, libiconv.so.2
                             (sparc) 1.14,REV=2011.08.07
  8  CSWlibintl8             libintl8 - GNU locale utilities, libintl.so.8
                             (sparc) 0.18.1.1,p,REV=2011.03.15
  9  CSWlibz1                libz1 - Zlib data compression library, libz.so.1
                             (sparc) 1.2.7,REV=2012.06.14
 10  CSWsudo                 sudo - Provides limited super user privileges
                             (sparc) 1.8.6p8,REV=2013.04.27

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Best regards,
Andreas

Frederik Wagner

unread,
May 8, 2014, 5:53:30 AM5/8/14
to puppet...@googlegroups.com
Hi Andreas,

are you sure that the mirrors for pkgutil are set correctly? (You ar
using the 'pkgutil' provider on the cmdline you user 'pkgadd')
Does 'pkgutil -a' list the packages?

BTW: In stead of the metaparameter 'alias' I would use the 'name'
parameter for the package name und 'sudo' as title:

package {'sudo':
ensure => installed,
name => 'CSWsudo',
provider => 'pkgutil',
}

See here <http://docs.puppetlabs.com/references/latest/metaparameter.html#alias>
the 'shortcomings' of alias.

Bye
Frederik
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/728a1aa8-0b5a-4f63-af34-89f1d7ad4e15%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Andreas Dvorak

unread,
May 8, 2014, 6:08:14 AM5/8/14
to puppet...@googlegroups.com
Hi Frederik,

/opt/csw/bin/pkgutil -a   has the correct output                                                                        
common               package              catalog                        size
libgcc               SMClgcc346           3.4.6                        1.8 MB
libiconv             SMCliconv            1.11                         2.2 MB
libiconv2            CSWlibiconv2         1.14,REV=2011.08.07          2.0 MB
libintl              SMClintl             3.4.0                      319.5 KB
libintl8             CSWlibintl8          0.18.1.1,p,REV=2011.03.15    5.0 MB
logrotate            CSWlogrotate         3.8.1,REV=2011.09.04         2.3 MB
rsyslog              CSWrsyslog           5.8.13,REV=2012.09.17        1.5 MB
sed                  SMCsed               4.2.1                      429.1 KB
sudo                 SMCsudo              1.7.4p6                    518.7 KB
zlib_stub            CSWzlib              1.2.8,REV=2013.09.23        17.8 MB

the alias is not used.

Best regards
Andreas

Frederik Wagner

unread,
May 8, 2014, 6:21:59 AM5/8/14
to puppet...@googlegroups.com
Hi Andreras,

I'm not an solaris expert, but in your output I don't see the packages:
CSWcas-migrateconf
CSWcas-preserveconf
CSWlibz1
CSWiconv
CSWggettext-data

So I suppose the pkgutil provider cannot acces them. You proably get
an error too, when you run
/opt/csw/bin/pkgutil -y -i CSWsudo
on the cmdline? This is what puppet tries to do.

Bye
Frederik
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/1c15509a-fb8a-460f-bd6c-9d6bbea94081%40googlegroups.com.

Andreas Dvorak

unread,
May 8, 2014, 6:49:27 AM5/8/14
to puppet...@googlegroups.com
Hi Frederik,

the packages are all in the CSWsudo package.

I tried /opt/csw/bin/pkgutil -y -i CSWsudo and it has the same dependency problem.
But /opt/csw/bin/pkgutil -N -i CSWsudo does work.

So I tried

          package {'CSWsudo':
            ensure            => installed,
            provider          => 'pkgutil',
            install_options => '-N',
          }

But again

Error: Execution of '/opt/csw/bin/pkgutil -y -i CSWsudo' returned 1: Solving needed dependencies ...
Warning: CSWcas-migrateconf not in catalog.
Warning: CSWcas-preserveconf not in catalog.
Warning: CSWlibz1 not in catalog.
Package CSWiconv not in catalog. Exiting.

It does not use the -N option.

Best regards
Andreas

Frederik Wagner

unread,
May 8, 2014, 7:56:29 AM5/8/14
to puppet...@googlegroups.com
Hi Andreas,

the 'pkgutil' provider does not support the 'install_options' Parameter.

So it 's not a problem of puppet here but about the underlying pkgutil
configuration. The -N option is probably not what you want, since I
suppose the dependencies are necessary.
Sorry I'm out hier, I don't have deeper knowledge of the pkgutil configuration.

Bye
Frederik
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/1449dd4c-7700-4c42-a87c-dba243186264%40googlegroups.com.

Andreas Dvorak

unread,
May 8, 2014, 8:35:02 AM5/8/14
to puppet...@googlegroups.com
Hi Frederik,

my solution is to install all packages separatly.
This time is was not to much work, but with a package with more dependencies is is bad.

Best regards,
Andreas
Reply all
Reply to author
Forward
0 new messages