Another option, using fabtools:

     fabtools.require.file('/etc/hosts', contents='...', use_sudo=True)  

See 
https://fabtools.readthedocs.org/en/latest/api/require/files.html#fabtools.require.files.file
 

-- 
Ronan

Le 6 juin 2013 à 16:33, Rahul Menon <[email protected]> a écrit :

> You can try https://github.com/sebastien/cuisine
> 
> i use fabric to do git pull and copy files in place. 
> 
> 
> On Thu, Jun 6, 2013 at 7:59 PM, Wawrzek Niewodniczanski <[email protected]> 
> wrote:
>> On 6 June 2013 14:37, Andres Riancho <[email protected]> wrote:
>> > You should use DNS :)
>> 
>> :)
>> 
>> Or at least puppet/chef or sth. similar.
>> 
>> Wawrzek
>> --
>> Dr  Wawrzyniec Niewodniczański    or Wawrzek for short
>>   PhD in Quantum Chemistry  & MSc in Molecular Engineering
>>    WWW: http://wawrzek.name E-MAIL: [email protected]
>>       Linux User #177124
>> 
>> _______________________________________________
>> Fab-user mailing list
>> [email protected]
>> https://lists.nongnu.org/mailman/listinfo/fab-user
> 
> _______________________________________________
> Fab-user mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/fab-user
_______________________________________________
Fab-user mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to