Skip to content

Commit

Permalink
Make the README slightly better
Browse files Browse the repository at this point in the history
  • Loading branch information
reidmv committed Jun 11, 2019
1 parent 37eedf1 commit 825c25b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
27 changes: 23 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,36 @@ bolt task run taskplan \

To create a plan-specific tailored taskplan task, use something like the following:

```json
{
"description": "Sample plan-specific tailored taskplan task",
"parameters": {
"my_plans_parameter": {
"type": "String",
"description": "The first parameter from the plan"
},
"my_plans_other_parameter": {
"type": "Integer",
"description": "Another parameter from the plan"
}
},
"input_method": "stdin",
"files": [
"taskplan/tasks/init.rb"
]
}
```

```ruby
#!/opt/puppetlabs/puppet/bin/ruby
require 'json'

$params = {
'params' => JSON.parse(STDIN.read),
'plan' => 'example::myplan',
'arguments' => [],
'params' => JSON.parse(STDIN.read),
'plan' => 'example::myplan',
}

taskplanrb = File.join($params['params']['_installdir'], 'util', 'files', 'taskplan.rb')
taskplanrb = File.join($params['params']['_installdir'], 'taskplan', 'tasks', 'init.rb')

load(taskplanrb)
```
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reidmv-taskplan",
"version": "0.2.0",
"version": "0.2.1",
"author": "Reid Vandewiele",
"summary": "Run Puppet task plans, using Bolt, via a task",
"license": "Apache-2.0",
Expand Down

0 comments on commit 825c25b

Please sign in to comment.