Re: [Puppet Users] How run a first command

2012-02-17 Thread Jair Gaxiola
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

Re: [Puppet Users] How run a first command

2012-02-17 Thread ruslan usifov
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

Re: [Puppet Users] How run a first command

2012-02-17 Thread Denmat
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

[Puppet Users] How run a first command

2012-02-17 Thread 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/apt-get -y update', } package { "build-essen