On 11/17/2013 8:15 AM, Puppet Muppet wrote:
Hi,

I'm having trouble installing packages that have dependencies. (I can
install packages like zip fine.)

for example I would like to install s3cmd.
Installing from command line I would run.
#apt-get -y -o APT::Install-Suggests="true" install s3cmd
which will install python-support & s3cmd.

My init.pp files looks like this

###
class build {
file {'/home/ubuntu/puppet-test-build-mod-1':
   ensure  => present,
   content => "Hello World!",
     }
}

       package { 's3cmd':
         ensure => installed,
       }


##

Is there any way to force the installation of a packages that has
dependencies?

The source of your problem is unlikely to be Puppet. If you apply your package statement the package provider should run

/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install s3cmd

and your apt/history.log should show

Start-Date: 2013-11-17  06:34:25
Commandline: /usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install s3cmd Install: python-support:amd64 (1.0.14ubuntu2, automatic), s3cmd:amd64 (1.0.0-1)
End-Date: 2013-11-17  06:34:26

Ramin

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/52890F00.4060302%40badapple.net.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to