PS C:\DATA> New-Item -Type File -Path bolt.yaml -Force |
|
|
Directory: C:\DATA |
|
|
Mode LastWriteTime Length Name |
---- ------------- ------ ---- |
-a---- 6/24/2019 5:03 PM 0 bolt.yaml |
|
|
PS C:\DATA> ls |
|
|
Directory: C:\DATA |
|
|
Mode LastWriteTime Length Name |
---- ------------- ------ ---- |
d----- 6/24/2019 4:57 PM modules |
-a---- 6/24/2019 4:59 PM 43 .rerun.json |
-a---- 6/24/2019 5:03 PM 0 bolt.yaml |
|
|
PS C:\DATA> cat .\modules\test\tasks\init.ps1 |
Write-Host 'hi' |
PS C:\DATA> bolt task show |
facts Gather system facts |
package Manage and inspect the state of packages |
puppet_agent::install Install the Puppet agent package |
puppet_agent::version Get the version of the Puppet agent package installed. Returns nothing if none present. |
puppet_conf Inspect puppet agent configuration settings |
reboot Reboots a machine |
reboot::last_boot_time Gets the last boot time of a Linux or Windows system |
service Manage and inspect the state of services |
test |
|
MODULEPATH: |
C:/DATA/modules:C:/DATA/site-modules:C:/DATA/site |
|
Use `bolt task show <task-name>` to view details and parameters for a specific task. |
PS C:\DATA> bolt task run test -t localhost |
Started on localhost... |
Finished on localhost: |
hi |
{ |
} |
Successful on 1 node: localhost |
Ran on 1 node in 0.69 seconds
|