Skip to content

Commit

Permalink
Merge pull request voxpupuli#138 from Dan33l/task_work_only_with_pupp…
Browse files Browse the repository at this point in the history
…etagent

add requirement expression in metadata of task
  • Loading branch information
Dan33l authored Jun 5, 2019
2 parents dfd5342 + e88acf9 commit d55d957
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ Please note that resource name must be same as installed package name.

### Puppet tasks

The module has a puppet task that allows to run `yum update` or `yum upgrade`.
The module has a puppet task that allows to run `yum update` or `yum upgrade`. This task needs puppet agent installed on the remote.

Please refer to the [Bolt documentation](https://puppet.com/docs/bolt/latest/bolt.html) on how to execute a task.

```bash
Expand Down
8 changes: 7 additions & 1 deletion tasks/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@
"description": "Run without output ",
"type": "Optional[Boolean]"
}
}
},
"implementations": [
{
"name": "init.rb",
"requirements": ["puppet-agent"]
}
]
}

0 comments on commit d55d957

Please sign in to comment.