Actions
Feature #1133
closedSupport configurable exportable "facts" (as tags) and "username" to rundeck
Description
When exporting data o rundeck you should be able to specify what you want to export.
In a similar way you also want to be able to specify the rundeck username.
The proposed solution works as follows:
Default behaviour (no parameters defined):
username = root exported facts/tags = classes
If want to change the behaviour, you specify a parameter in Foreman:
Example:
In foreman we've defined 2 parameters for the host "myserver1.mydomain.local" :
rundeckuser = mycustomuser rundeckfacts = domain,environment
So, querying:
curl -u admin:changeme "http://foreman/hosts/myserver1.mydomain.local?rundeck=true&format=yaml"
would result in:
--- myserver1.mydomain.local: osFamily: Redhat osVersion: "5.6" tags: - domain=mydomain.local - environment=master - class=ntp::main - class=puppet::client username: mycustomuser osName: CentOS osArch: x86_64 nodename: myserver1.mydomain.local description: My description test hostname: myserver1.mydomain.local
I'll submit a patch...
Updated by Marcello de Sousa about 13 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset 3f1e53638e892677d1dc7f7eb8d7a2e5516db6aa.
Updated by Ohad Levy about 13 years ago
one last request.. please add a new wiki page of how to set it up.
Thanks..
Actions