@@ -103,7 +103,7 @@ $ cat ~/.fog
103103##### Setting up a new machine
104104
105105``` 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
107107
108108Started on localhost...
109109Finished on localhost:
@@ -118,7 +118,7 @@ Ran on 1 node in 1.44 seconds
118118##### Tearing down a finished machine
119119
120120``` 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
122122
123123Started on localhost...
124124Finished on localhost:
@@ -139,7 +139,7 @@ Containers by default will be managed in the current [docker context](https://do
139139#### Provision
140140
141141``` 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
143143
144144Started on localhost...
145145Finished on localhost:
@@ -166,13 +166,13 @@ These defaults can be overriden by passing the flags with different values i.e.
166166```
167167
168168``` 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"]}'
170170```
171171
172172#### Tear down
173173
174174``` 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
176176
177177Started on localhost...
178178Finished on localhost:
@@ -197,7 +197,7 @@ Tested with vagrant images:
197197provision
198198
199199``` 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
201201
202202Started on localhost...
203203Finished on localhost:
@@ -212,7 +212,7 @@ Ran on 1 node in 51.98 seconds
212212For 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.
213213
214214``` 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'
216216```
217217
218218sudo secure_path fix
@@ -223,7 +223,7 @@ This leads to errors when anything tries to execute `puppet` commands on the tes
223223To add the Puppet agent binary path to the * secure_path* please run the ` provision::fix_secure_path ` Bolt task:
224224
225225``` 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
227227
228228Started on 127.0 .0.1 :2222 ...
229229Finished on 127.0 .0.1 :2222 :
@@ -235,7 +235,7 @@ Ran on 1 target in 0.84 sec
235235tear_down
236236
237237``` 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
239239
240240Started on localhost...
241241Finished on localhost:
@@ -290,7 +290,7 @@ In the provision step you can invoke bundle exec rake 'litmus:provision_list[tes
290290Manual invocation of the provision service task from a workflow can be done using :
291291
292292` ` ` 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'
294294` ` `
295295
296296Or using Litmus :
@@ -326,7 +326,7 @@ provision
326326
327327` ` ` powershell
328328PS> $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
330330
331331Started on localhost...
332332Finished on localhost:
@@ -359,7 +359,7 @@ Testing/development/debugging it is better to use ruby directly, you will need t
359359Testing using bolt, the second step
360360
361361` ` ` 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
363363` ` `
364364
365365# # License
0 commit comments