This repository has been archived by the owner. It is now read-only.
Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (46 sloc) 1.87 KB
<?xml version="1.0" encoding="UTF-8" ?>
<brood>
<!-- Gearman parameters used on both Overlord and Drones -->
<gearman timeout="3600000">
<server>gearmand.example.com</server>
</gearman>
<!-- Groups of hosts, typically each group is behind a different load balancer -->
<!-- Each host runs a Gearman worker called a Drone -->
<hostgroup name="www">
<host alias="www1">www1.example.com</host>
<host alias="www2">www2.example.com</host>
<host alias="www3">www3.example.com</host>
<host alias="www4">www4.example.com</host>
</hostgroup>
<hostgroup name="static">
<host alias="static1">static1.example.com</host>
<host alias="static2">static2.example.com</host>
</hostgroup>
<!-- Actions to run, each will be run in order, serially -->
<!-- The Overlord coordinates the execution of these actions -->
<action class="Brood\Action\Announce\Email">
<!-- Run this action on the Overlord itself (no Gearman involvement) -->
<overlord />
<!-- Action classes can take custom parameters -->
<parameters>
<!-- Can have multiple recipients -->
<to>team@example.com</to>
<from>deployments@example.com</from>
<subject>Deployment</subject>
</parameters>
</action>
<action class="Brood\Action\Distribute\Git">
<!-- Actions are run on hostgroups/hosts concurrently -->
<hostgroup>www</hostgroup>
<hostgroup>static</hostgroup>
<parameters>
<sudo>deploy</sudo>
<directory>/var/www/exampleapp</directory>
</parameters>
</action>
<action class="Brood\Action\Restart\Apache">
<!-- Within a hostgroup, concurrency can be specified -->
<hostgroup concurrency="2">www</hostgroup>
<hostgroup concurrency="1">static</hostgroup>
</action>
</brood>