Hi, I'll try this as sonn as possible. It seem powerful !
Thanks Serge 2009/6/19 Trevor Vaughan <peiriann...@gmail.com> > > Serge, > > If you want to do it this way, I would ditch the file type and do it > all in an exec: > > define install_blender ( $version, $server ) { > exec { "snarf_blender_$version": > command =>"wget -O /tmp/blender_$version.tar.gz > http://$server/blender_$version.tar.gz; > Just write the rest of your shell script; > normally here;", > onlyif => "test ! -f /tmp/blender_$version.tar.gz" > } > > Good luck! > > Trevor > > On Thu, Jun 18, 2009 at 02:39, Serge LE > LOUARNE<serge.leloua...@gmail.com> wrote: > > Hi, > > > > I install blender ;-) > > > > My pp file (in actual state, I have no backup of previous versions) : > > > > class blender { > > file { "/tmp/blender-2.49-linux-glibc236-py25-i386.tar.bz2": > > owner => root, > > group => root, > > mode => 644, > > source => > > 'puppet:// > formation01.giprecia.net/test/blender-2.49-linux-glibc236-py25-i386.tar.bz2 > '} > > Exec { path => "/usr/bin:/bin:/usr/sbin:/sbin":logoutput => false, > > "tar -jxf > /tmp/blender-2.49-linux-glibc236-py25-i386.tar.bz2":logoutput > > => false, > > "cp -R /tmp/blender-2.49-linux-glibc236-py25-i386 /opt/":logoutput > => > > false, > > "chmod -R 755 /opt/blender-2.49-linux-glibc236-py25-i386":logoutput > => > > false, > > "cp -R /opt/blender-2.49-linux-glibc236-py25-i386/.blender > > /home/serge/":logoutput => false, > > "chown -R serge:serge /home/serge/.blender":logoutput => false, > > unless => "test -d /home/serge/.blender" } > > } > > > > The "unless" statement isn't follow by the puppet agent. The logs said > that > > the 8th line is wrong : Puppet look for a "}" ... > > > > Thank > > Serge > > > > 2009/6/17 Evan Hisey <ehi...@gmail.com> > >> > >> On Wed, Jun 17, 2009 at 8:56 AM, > >> serge.leloua...@free.fr<serge.leloua...@gmail.com> wrote: > >> > > >> > Hi > >> > > >> > All is in title ;-) > >> > > >> > I have to run multiples Bash commands. It is just for readability of > >> > the pp file. > >> > > >> > Thank > >> > Serge > >> What are you trying to do? It sounds like you are trying to work > >> against the way puppet operates. > >> > >> Evan > >> > >> > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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 -~----------~----~----~----~------~----~------~--~---