Tag Archives: fabric tutorial
April 29, 2012Posted by on
In this tutorial I’m going to concentrate on various different settings you can use in your fabfile.
These settings can be added to your environmental variables, as decorators or inside the tasks. With roles
we can define which machines are for example servers and which are workstations.
I hope you’ve also read previous tutorials 1 & 2:
Your default settings should be in the environmental variables right in the beginning of your fabfile.
These are the settings that are used in all of your tasks unless you define it otherwise. These
are the settings that we’ll modify in our tasks later. We have used these in the previous tutorials.
env.hosts=["email@example.com","webserver.local"] env.user="hng" env.password="password" env.parallel=True env.skip_bad_hosts=True env.timeout=1 env.warn_only=True