Skip to content

Commit

Permalink
Update rundeck-puppetdb-nodes to v1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Fernandez Rodriguez committed Feb 25, 2016
1 parent 30a8688 commit 56142de
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,24 @@ Parameters
`Foreman Hostgroup` - Specify a Foreman hosgroup to filter the query

> `cloud_workflows` or `cloud_`
> `cloud_workflow` or `cloud_`
`Kerberos user` - User to connect to PuppetDB

`Kerberos keytab` - Path to user's keytab to authenticate

![alt tag](images/config.png)
`Factlist` - Space-separated list of facts to retrieve for every node

`Mode` - Prints out/stores on file the list of nodes. Select store if you want to cache the result.

`Output file` - Save list of nodes to file (only if 'store' mode selected)


Requirements
------------
* The plugin requires Rundeck version 2.0 or higher.
* python-requests v1.1.0-4
* python-requests-kerberos v0.5 ([important!!](https://bugzilla.redhat.com/show_bug.cgi?id=1169296))
* python-requests v1.1.0-4 or higher
* python-requests-kerberos v0.5 ([important!!](https://bugzilla.redhat.com/show_bug.cgi?id=1169296)) or higher

Installation
------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def print_puppetdb_nodes(self, apiurl, hostgroup, factlist):
Queries PuppetDB and prints out the nodes information in a supported format for Rundeck
.
'''
logging.info(type(factlist))
factlist.extend(["operatingsystem", "operatingsystemrelease", "hostgroup"])
raw_data = self.get_facts_puppetdb(apiurl, factlist, hostgroup)
data = defaultdict(lambda: {})
Expand Down
4 changes: 2 additions & 2 deletions rundeck-puppetdb-nodes-plugin/plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#yaml plugin metadata

name: PuppetDB source
version: 1.1
version: 1.2
rundeckPluginVersion: 1.0
author: Daniel Fernandez ([email protected])
date: 2015/10/21
date: 2016/02/25
providers:
- name: rundeck-puppetdb-nodes
service: ResourceModelSource
Expand Down

0 comments on commit 56142de

Please sign in to comment.