@@ -103,7 +103,7 @@ $ cat ~/.fog
103
103
##### Setting up a new machine
104
104
105
105
``` ruby
106
- $ bundle exec bolt -- modulepath / Users / tp / workspace / git / task run provision::abs -- targets localhost action= provision platform= ubuntu- 1604 - x86_64 inventory = / Users / tp / workspace / git / provision / inventory.yaml
106
+ $ bundle exec bolt task run provision::abs -- targets localhost action= provision platform= ubuntu- 1604 - x86_64
107
107
108
108
Started on localhost...
109
109
Finished on localhost:
@@ -118,7 +118,7 @@ Ran on 1 node in 1.44 seconds
118
118
##### Tearing down a finished machine
119
119
120
120
``` ruby
121
- $ bundle exec bolt -- modulepath / Users / tp / workspace / git / task run provision::abs -- targets localhost action= tear_down inventory = / Users / tp / workspace / git / provision / inventory.yaml node_name= yh6f4djvz7o3te6.delivery.puppetlabs.net
121
+ $ bundle exec bolt task run provision::abs -- targets localhost action= tear_down node_name= yh6f4djvz7o3te6.delivery.puppetlabs.net
122
122
123
123
Started on localhost...
124
124
Finished on localhost:
@@ -139,7 +139,7 @@ Containers by default will be managed in the current [docker context](https://do
139
139
#### Provision
140
140
141
141
``` ruby
142
- $ bundle exec bolt -- modulepath / Users / tp / workspace / git / task run provision::docker -- targets localhost action= provision platform= ubuntu: 14.04 inventory = / Users / tp / workspace / git / provision / inventory.yaml
142
+ $ bundle exec bolt task run provision::docker -- targets localhost action= provision platform= ubuntu: 14.04
143
143
144
144
Started on localhost...
145
145
Finished on localhost:
@@ -166,13 +166,13 @@ These defaults can be overriden by passing the flags with different values i.e.
166
166
```
167
167
168
168
``` ruby
169
- bundle exec bolt -- modulepath / Users / tp / workspace / git / task run provision::docker -- targets localhost action= provision platform= ubuntu: 14.04 inventory = / Users / tp / workspace / git / provision / inventory.yaml vars= ' { "docker_run_opts": ["-p 8086:8086", "-p 3000:3000"]}'
169
+ bundle exec bolt task run provision::docker -- targets localhost action= provision platform= ubuntu: 14.04 vars= ' { "docker_run_opts": ["-p 8086:8086", "-p 3000:3000"]}'
170
170
```
171
171
172
172
#### Tear down
173
173
174
174
``` ruby
175
- $ bundle exec bolt -- modulepath / Users / tp / workspace / git / task run provision::docker -- targets localhost action= tear_down inventory = / Users / tp / workspace / git / provision / inventory.yaml node_name= localhost: 2222
175
+ $ bundle exec bolt task run provision::docker -- targets localhost action= tear_down node_name= localhost: 2222
176
176
177
177
Started on localhost...
178
178
Finished on localhost:
@@ -197,7 +197,7 @@ Tested with vagrant images:
197
197
provision
198
198
199
199
``` ruby
200
- $ bundle exec bolt -- modulepath / Users / tp / workspace / git / task run provision::vagrant -- targets localhost action= provision platform= ubuntu/ xenial64 inventory = / Users / tp / workspace / git / provision / inventory.yaml
200
+ $ bundle exec bolt task run provision::vagrant -- targets localhost action= provision platform= ubuntu/ xenial64
201
201
202
202
Started on localhost...
203
203
Finished on localhost:
@@ -212,7 +212,7 @@ Ran on 1 node in 51.98 seconds
212
212
For multi-node provisioning, you can assign arbitrary tags to the nodes you deploy, by passing an optional YAML-string 'vars' to the bolt task. In the example below we are assigning the role of ` k8s-controller ` to the provisioned node.
213
213
214
214
``` ruby
215
- $ bundle exec bolt -- modulepath / Users / tp / workspace / git / task run provision::vagrant -- targets localhost action= provision platform= ubuntu/ xenial64 inventory= / Users / tp/ workspace/ git/ provision vars= ' role: k8s-controller'
215
+ $ bundle exec bolt task run provision::vagrant -- targets localhost action= provision platform= ubuntu/ xenial64 inventory= / Users / tp/ workspace/ git/ provision vars= ' role: k8s-controller'
216
216
```
217
217
218
218
sudo secure_path fix
@@ -223,7 +223,7 @@ This leads to errors when anything tries to execute `puppet` commands on the tes
223
223
To add the Puppet agent binary path to the * secure_path* please run the ` provision::fix_secure_path ` Bolt task:
224
224
225
225
``` ruby
226
- $ bundle exec bolt -- modulepath / Users / tp / workspace / git / task run provision::fix_secure_path path= / opt/ puppetlabs/ bin - i inventory.yaml - t ssh_nodes
226
+ $ bundle exec bolt task run provision::fix_secure_path path= / opt/ puppetlabs/ bin - i inventory.yaml - t ssh_nodes
227
227
228
228
Started on 127.0 .0.1 :2222 ...
229
229
Finished on 127.0 .0.1 :2222 :
@@ -235,7 +235,7 @@ Ran on 1 target in 0.84 sec
235
235
tear_down
236
236
237
237
``` ruby
238
- $ bundle exec bolt -- modulepath / Users / tp / workspace / git / task run provision::vagrant -- targets localhost action= tear_down inventory = / Users / tp / workspace / git / provision / inventory.yaml node_name= 127.0 .0.1 :2222
238
+ $ bundle exec bolt task run provision::vagrant -- targets localhost action= tear_down node_name= 127.0 .0.1 :2222
239
239
240
240
Started on localhost...
241
241
Finished on localhost:
@@ -290,7 +290,7 @@ In the provision step you can invoke bundle exec rake 'litmus:provision_list[tes
290
290
Manual invocation of the provision service task from a workflow can be done using :
291
291
292
292
` ` ` ruby
293
- bundle exec bolt --modulepath /Users/tp/workspace/git/ task run provision::provision_service --targets localhost action=provision platform=centos-7-v20200813 inventory=/Users/tp/workspace/git/provision/inventory.yaml vars='role: puppetserver'
293
+ bundle exec bolt task run provision::provision_service --targets localhost action=provision platform=centos-7-v20200813 inventory=/Users/tp/workspace/git/provision/inventory.yaml vars='role: puppetserver'
294
294
` ` `
295
295
296
296
Or using Litmus :
@@ -326,7 +326,7 @@ provision
326
326
327
327
` ` ` powershell
328
328
PS> $env:LITMUS_HYPERV_VSWITCH = 'internal_nat'
329
- PS> bundle exec bolt --modulepath /Users/tp/workspace/git/ task run provision::vagrant --targets localhost action=provision platform=centos/7 inventory=/Users/tp/workspace/git/provision/inventory.yaml hyperv_smb_username=tp hyperv_smb_password=notMyrealPassword
329
+ PS> bundle exec bolt task run provision::vagrant --targets localhost action=provision platform=centos/7 hyperv_smb_username=tp hyperv_smb_password=notMyrealPassword
330
330
331
331
Started on localhost...
332
332
Finished on localhost:
@@ -359,7 +359,7 @@ Testing/development/debugging it is better to use ruby directly, you will need t
359
359
Testing using bolt, the second step
360
360
361
361
` ` ` ruby
362
- bundle exec bolt --modulepath /Users/tp/workspace/git/ task run provision::docker --targets localhost action=provision platform=ubuntu:14.04 inventory=/Users/tp/workspace/git/provision/inventory.yaml
362
+ bundle exec bolt task run provision::docker --targets localhost action=provision platform=ubuntu:14.04
363
363
` ` `
364
364
365
365
# # License
0 commit comments