@@ -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:
@@ -217,7 +217,7 @@ This leads to errors when anything tries to execute `puppet` commands on the tes
217
217
To add the Puppet agent binary path to the * secure_path* please run the ` provision::fix_secure_path ` Bolt task:
218
218
219
219
``` ruby
220
- $ bundle exec bolt -- modulepath / Users / tp / workspace / git / task run provision::fix_secure_path path= / opt/ puppetlabs/ bin - i inventory.yaml - t ssh_nodes
220
+ $ bundle exec bolt task run provision::fix_secure_path path= / opt/ puppetlabs/ bin - i inventory.yaml - t ssh_nodes
221
221
222
222
Started on 127.0 .0.1 :2222 ...
223
223
Finished on 127.0 .0.1 :2222 :
@@ -229,7 +229,7 @@ Ran on 1 target in 0.84 sec
229
229
tear_down
230
230
231
231
``` ruby
232
- $ 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
232
+ $ bundle exec bolt task run provision::vagrant -- targets localhost action= tear_down node_name= 127.0 .0.1 :2222
233
233
234
234
Started on localhost...
235
235
Finished on localhost:
@@ -284,7 +284,7 @@ In the provision step you can invoke bundle exec rake 'litmus:provision_list[tes
284
284
Manual invocation of the provision service task from a workflow can be done using :
285
285
286
286
` ` ` ruby
287
- 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
287
+ bolt task run provision::provision_service --targets localhost action=provision platform=centos-7-v20200813
288
288
` ` `
289
289
290
290
Or using Litmus :
@@ -320,7 +320,7 @@ provision
320
320
321
321
` ` ` powershell
322
322
PS> $env:LITMUS_HYPERV_VSWITCH = 'internal_nat'
323
- 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
323
+ PS> bundle exec bolt task run provision::vagrant --targets localhost action=provision platform=centos/7 hyperv_smb_username=tp hyperv_smb_password=notMyrealPassword
324
324
325
325
Started on localhost...
326
326
Finished on localhost:
@@ -353,7 +353,7 @@ Testing/development/debugging it is better to use ruby directly, you will need t
353
353
Testing using bolt, the second step
354
354
355
355
` ` ` ruby
356
- 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
356
+ bundle exec bolt task run provision::docker --targets localhost action=provision platform=ubuntu:14.04
357
357
` ` `
358
358
359
359
# # License
0 commit comments