I have some similar manifests, and I usually deploy a script (via a file 
type) and then use an exec to run the script.  This seems cleaner to me 
(rather then a chain of exec statements) and insulates the scripting from 
Puppet.

Ben

On Wednesday, August 1, 2012 2:56:11 PM UTC-5, Mike Reed wrote:
>
> Hello all,
>
> I've been banging my head against the wall trying to get this "make" to 
> run and I was hoping to get some opinions as to why this might not be 
> working.  The module in question looks like this:
>
>  class install-lei_chelsio_driver {
>         # This will place the chelsio tarball locally in /usr/src.  File 
> is pulled from puppet.
>         file { "/usr/src/ChelsioUwire-1.0.2.26.tar.gz" :
>                 source  => 
> "puppet:///install-lei_chelsio_driver/ChelsioUwire-1.0.2.26.tar.gz" ,
>                 ensure  => present ,
>         }
>
>         # Untar the tarball 
>         exec { "/bin/tar -xvf /usr/src/ChelsioUwire-1.0.2.26.tar.gz" :
>                 cwd => "/usr/src/" ,
>                 creates => "/usr/src/ChelsioUwire-1.0.2.26" ,
>         }
>
>         # This will run the make which will line up everything to install 
> the drivers from source.
>         exec { "/usr/src/ChelsioUwire-1.0.2.26 make 
> KDIR=/usr/src/linux-headers-2.6.32-41" :
>                 path => "/usr/src/ChelsioUwire-1.0.2.26" ,
>         }
> }
>
> This is the error I get upon running a machine against the manifest:
>
> err: 
> /Stage[main]/Install-lei_chelsio_driver/Exec[/usr/src/ChelsioUwire-1.0.2.26 
> make KDIR=/usr/src/linux-headers-2.6.32-41]/returns: change from notrun to 
> 0 failed: /usr/src/ChelsioUwire-1.0.2.26 make 
> KDIR=/usr/src/linux-headers-2.6.32-41 returned 1 instead of one of [0] at 
> /etc/puppet/modules/install-lei_chelsio_driver/manifests/init.pp:20   
>
> I added the "path" parameter for good measure and still no dice.  
>
> Any suggestions as to why this one won't properly fire?
>
> As always, the help and support are much appreciated.
>
> Cheers,
>
> Mike
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/VMYP9vrLnJwJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to