Install *nix agents using a manually-transferred certificate
If you can't, or don't, use -k
or --insecure
to trust the primary server during agent installation, you can
manually copy the primary server CA certificate to any *nix
machines you want to install agents on, and then run a variation of the agent install script
against that cert.
For general information about forming curl commands and authentication in commands, go to Using example commands.
- On the machine where you want to install the agent, create this directory:
/etc/puppetlabs/puppet/ssl/certs
- On the primary server, navigate to
/etc/puppetlabs/puppet/ssl/certs/
and copyca.pem
to thecerts
directory you created on the agent node. - On the agent node, verify file permissions by running:
chmod 444 /etc/puppetlabs/puppet/ssl/certs/ca.pem
- Run the agent install script command, using the
--cacert
flag to point to the cert, such as:cacert='/etc/puppetlabs/puppet/ssl/certs/ca.pem' uri='https://<PRIMARY_HOSTNAME>:8140/packages/current/install.bash' curl --cacert "$cacert" "$uri" | sudo bash
For more information about the agent install script, go to Install agents with the install script.
- Run
puppet agent -t
to add the node to the node inventory and generate the CSR. - Accept the CSR as explained in Managing certificate signing requests.