Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

downcasing certname as puppet does

  • Loading branch information...
commit d6139d3d39c769a1b1785412ee2c9c7bae7e1281 1 parent 84e58b6
@aripringle aripringle authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  agent/provision.rb
  2. +2 −2 lib/mcprovision/runner.rb
View
2  agent/provision.rb
@@ -11,7 +11,7 @@ def startup_hook
certname = PluginManager["facts_plugin"].get_fact("fqdn")
certname = config.identity unless certname
- @puppetcert = config.pluginconf.fetch("provision.certfile", "/var/lib/puppet/ssl/certs/#{certname}.pem")
+ @puppetcert = config.pluginconf.fetch("provision.certfile", "/var/lib/puppet/ssl/certs/#{certname.downcase}.pem")
@lockfile = config.pluginconf.fetch("provision.lockfile", "/etc/mcollective/provisioner.lock")
@disablefile = config.pluginconf.fetch("provision.disablefile", "/etc/mcollective/provisioner.disable")
@puppet = config.pluginconf.fetch("provision.puppet", "/usr/bin/puppet agent")
View
4 lib/mcprovision/runner.rb
@@ -80,11 +80,11 @@ def provision(node)
# Only do certificate management if the node is clean and doesnt already have a cert
unless node.has_cert?
- @master.clean_cert(node.hostname) if @config.settings["steps"]["clean_node_certname"]
+ @master.clean_cert(node.hostname.downcase) if @config.settings["steps"]["clean_node_certname"]
node.send_csr if @config.settings["steps"]["send_node_csr"]
- @master.sign(node.hostname) if @config.settings["steps"]["sign_node_csr"]
+ @master.sign(node.hostname.downcase) if @config.settings["steps"]["sign_node_csr"]
else
MCProvision.info("Skipping SSL certificate management for node - already has a cert")
end
Please sign in to comment.
Something went wrong with that request. Please try again.