Commit 94e3a8e
committed
Add a multi_ansible provisioner
A box may be configured with `multi_ansible`, which
specifies an ordered list of ansible provisioner
names, at least one of which must be the standard
name 'ansible'.
Forklift will expect to find a key corresponding
to each provisioner name within the top level box
configuration.
Each provisioner may be configured with any of
the same options supported by the base ansible
provisioner; you may also pass `reuse_vars: true`
as a shorthand to simply copy all variables from
the base 'ansible' named provisioner. For example,
example-box:
multi_ansible:
- 'bootstrap'
- 'ansible'
- 'post'
boostrap:
reuse_vars: true
config_file: ansible_bootstrap.cfg
playbook:
- 'playbooks/bootstrap.yml'
ansible:
variables:
var1: "value1"
playbook:
- 'playbooks/main.yml'
post:
variables:
var1: "value2"
playbook:
- 'user_playbooks/editor.yml'
- 'user_playbooks/dotfiles.yml'
Forklift will run the Ansible provisioners in
stages, in the order defined by `multi_ansible`.
Files named ansible_*.cfg are added to .gitignore
so that the user may define additional ansible
config files for their custom provisioner stages.1 parent 2a9f80c commit 94e3a8e
2 files changed
Lines changed: 22 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
206 | 223 | | |
207 | 224 | | |
208 | 225 | | |
| |||
0 commit comments