|
From: | Nathan Brazil |
Subject: | Re: [Fab-user] Multiple roles with partly shared configuration? |
Date: | Sun, 11 Aug 2013 12:15:13 -0700 |
I had a similar challenge. Here is a rough idea of what I did: I started with different kinds of deployables, such as config files, shared libs, apps, etc. Each kind of deployable got its own class that knows how to deploy that kind of deployable via a deploy() method. Then I created the concept of deployment groups. Each group would contain a set of deployables. There was a core group containing deployables applicable to all servers, another group that pertained only to subset A of the severs, still another that pertained only to subset B, etc. Then I associated each role to a set of groups. So, when I would execute
the task code would march through the groups for the role to form a set of deployables, iterate through the set, and call the deploy() method on each item for each server belonging to the role. Furthermore, if I were to run
the task code would figure out the role that host belonged to, and repeat the above process to deploy just to that server. -- On Aug 10, 2013, at 8:09 PM, Jens Rantil <address@hidden> wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |