Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource_source.pp does not support puppetenterprise parameter puppetdb_ssl_dir #257

Closed
ltutar opened this issue Aug 5, 2016 · 0 comments

Comments

@ltutar
Copy link
Contributor

ltutar commented Aug 5, 2016

https://github.com/voxpupuli/puppet-rundeck/blob/master/manifests/config/resource_source.pp#L325 is not supporting PROPERTY_PUPPETDB_SSL_DIR

As described in https://github.com/rundeck-plugins/rundeck-puppetenterprise-nodes-plugin, this parameter contains the puppet certificates. My own edited property file as an example:

resources.source.1.type=puppet-enterprise
resources.source.1.config.PROPERTY_PUPPETDB_HOST=puppetmaster.home
resources.source.1.config.PROPERTY_PUPPETDB_PORT=8081
resources.source.1.config.PROPERTY_PUPPETDB_SSL_DIR=/opt/rundeck/ssl

The following is achieved through the puppet module:

[root@xldagent etc]# cat project.properties 
project.name = PuppetNodesProject
project.ssh-authentication = privateKey
project.ssh-keypath = /opt/rundeck/key/id_rsa
service.FileCopier.default.provider = jsch-scp
service.NodeExecutor.default.provider = jsch-ssh
resources.source.1.type = puppet-enterprise
resources.source.1.config.PROPERTY_MAPPING_FILE = /tmp/defaultMapping.json
resources.source.1.config.PROPERTY_PUPPETDB_HOST = puppetmaster.home
resources.source.1.config.PROPERTY_METRICS_INTERVAL = 1000
resources.source.1.config.PROPERTY_PUPPETDB_PORT = 8081
[root@xldagent etc]# 

This gives the error:

WARN  DefaultHTTP: getNodes() exception while trying to request PuppetDB API: puppetmaster.home:8081 failed to respond
org.apache.http.NoHttpResponseException: puppetmaster.home:8081 failed to respond

since puppet db is only available through HTTPS.
With a side note that mapping file and metrics interval are mandatory using the puppet module but not if you edit the project.properties manually.

ltutar added a commit to ltutar/puppet-rundeck that referenced this issue Aug 8, 2016
egeland pushed a commit to fairfaxmedia/puppet-rundeck that referenced this issue Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants