>
> Serge LE LOUARNE 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
>> <http://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 "}" ...
>
> These are several independent exec commands that will be scheduled by
> puppet completely independently (that is not order-preserving). For this
> specific case, you might want to create a real shell script, put it on
> the server with file{} and execute it then with a single exec.
>
> Also, since you are specifying multiple resources, those need to be
> separated with semicolons (;) and not colons (,).
>
> Please go to
> http://reductivelabs.com/trac/puppet/wiki/DocumentationStart and start
> reading some of the docs there. Especially the LanguageTutorial and
> TypeReference.
>
>
> Regards, DavidS
>
As DavidS said, or make a nice .deb for blender use apt. Using puppet
below 0.25.0 is probable going to be painfully slow moving a file the
size of the blender tar.bz to any large number of machines.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to