darkweaver87 wrote:
> So, here are my questions:
> - is it possible to declare some kind of variables for one host ?
> For instance:
> web01: addresses { "bond0": ip => 10.x.x.x, netmask => 255.0.0.0;
> "bond0:1" : ip => 10.x.x.x, netmask =>
> 255.0.0.0;}
>
AutomateIt is pretty flexible about how you choose to do this, but I
would probably add these to the fields.yml file. Here are two ways to do
this:
# Organize field data by category, e.g., "networking" and "database":
networking:
web01:
bond0:
ip: 10.x.x.x
netmask: 255.0.0.0
bond1:
...
web02:
...
database:
web01:
...
# ...Or organize field data by host, e.g., "web01" has all its
# related data in one place:
hosts:
web01:
networking:
bond0:
ip: 10.x.x.x
netmask: 255.0.0.0
bond1:
...
database:
...
web02:
> - is there a daemon or have I to rsync project directory and then the
> command (for instance run rake install) ?
There's no AutomateIt daemon, the recipes are plain text files and a
machine can execute them if it can read them -- so you can use rsync,
nfs, git or whatever to share recipes between machines. In practice,
this is quite easy to setup. Please see this thread for further details:
http://groups.google.com/group/automateit/msg/2d93957c5ba8cd42?
> - is there a dependency graph as puppet does or tasks are ran in
> "invoke" order ?
AutomateIt executes code from top-to-bottom like bash, Ruby, Perl, PHP
or other imperative programming languages. There's no dependency graph,
which was a deliberate design decision because I find that top-to-bottom
execution makes the resulting recipes easier to read, write and live
with compared to graph-based systems.
-igal