Thank you all for the responses.  I think the solution of scripting the 
install and calling the script via puppet is an interesting thought. 
 Thanks as well for the suggested reading.

Cheers,

Mike

On Wednesday, August 1, 2012 12:56:11 PM UTC-7, 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/-/AihRUzCvjQ0J.
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