My final class:
class etc {
package {
["build-essential", "python-psycopg2"]:
ensure => installed, require => Exec[ 'apt-get_update']
}
exec { 'apt-get_update':
command => '/usr/bin/apt-get -y update'
}
}
Thanks a lot
On Fri, Feb
2012/2/17 Jair Gaxiola
> Hi,
>
> I try exec my first command apt-get update, after install other
> packages but run first apt-get install and not apt-get update
>
>
> Exec {
>path => "/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin",
> }
>
> exec { 'apt-get -y update':
> command => '/usr/bin/ap
Hi,
There are at least two simple options for you:
require =>
Or
before =>
> package { "build-essential": ensure => "installed", require => Exec[ 'apt-get
> -y update']
There are other ordering methods too. I suggest you start here for some good
examples.
http://docs.puppetlabs.com/learnin
Hi,
I try exec my first command apt-get update, after install other
packages but run first apt-get install and not apt-get update
Exec {
path => "/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin",
}
exec { 'apt-get -y update':
command => '/usr/bin/apt-get -y update',
}
package { "build-essen