Skip to content

batali configuration

Sean Escriva edited this page Jul 3, 2015 · 1 revision

Configuration

Batali supports configuration via the command line or using a config file for common parameters. To use a configuration file simply create a .batali file at the root of your infrastructure repository. This file can be formatted using YAML, JSON, Ruby, or even XML if you choose.

Example configurations

Each of the following examples enables full infrastructure resolution and disables least impact updates.

Ruby

Configuration.new do
  infrastructure true
  resolve do
    least_impact false
  end
end

JSON

{
  "infrastructure": true,
  "resolve": {
    "least_impact": false
  }
}

YAML

---
:infrastructure: true
:resolve:
  :least_impact: false

XML

<configuration>
  <infrastructure>true</infrastructure>
  <resolve>
    <least_impact>false</least_impact>
  </resolve>
</configuration>