Install *nix agents
You can install agents on *nix nodes with the install script, from the Puppet Enterprise (PE) console, with PE package management, your own package management, with or without internet access, and more.
We recommend you Install agents with the install script or Install agents from the console whenever possible, and we've described other cases here for your reference. For non-root agents, refer to Install non-root *nix agents.
- AIX
- Solaris 11
Install *nix agents with PE package management
Puppet Enterprise (PE) provides its own package management to help you install agents on *nix and macOS nodes. You can use this process with or without internet access.
If you're installing an agent with a different OS than your primary server, you must
declare the corresponding pe_repo
class on the primary server, such
as pe_repo::platform::el_7_x86_64
. You can declare these classes in
the console at .
/opt/puppetlabs/server/data/staging/pe_repo-puppet-agent-<AGENT_VERSION>
For
example, the directory for agent version 5.5.17
is:/opt/puppetlabs/server/data/staging/pe_repo-puppet-agent-5.5.17/
<PRIMARY_HOSTNAME>
portion of the installer script—as provided in the following example—refers to the
FQDN of the primary server. The FQDN must be fully resolvable by the machine on
which you're installing or upgrading the agent.-
SSH into the node where you want to install the agent and run the command
appropriate to your environment:
- curl:
uri='https://<PRIMARY_HOSTNAME>:8140/packages/current/install.bash' curl -k "$uri" | sudo bash
- wget:
wget -O - -q --no-check-certificate https://<PRIMARY_HOSTNAME>:8140/packages/current/install.bash | sudo bash
-
Solaris
11:
sudo export PATH=$PATH:/opt/sfw/bin wget -O - -q --no-check-certificate --secure-protocol=TLSv1 https://<PRIMARY_HOSTNAME>:8140/packages/current/install.bash | bash
- curl:
-
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.
Install *nix agents with your own package management
You can use your own package management tools, instead of Puppet Enterprise (PE) package management, to install agents. You can use this method with or without internet access.
Download the appropriate agent tarball.
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.
Install *nix agents from compilers using your own package management
If your infrastructure relies on compilers to install agents, you don’t have to copy the agent package to each compiler. Instead, you can use the console to specify a path to the agent package on your package management server.
Download the appropriate agent tarball.
- Add the agent package to your own package management and distribution system.
-
Set the
base_path
parameter of thepe_repo
class to point to your package management server.- In the console, click Node groups, and in the PE Infrastructure group, select the PE Master group.
-
On the Classes tab, find the
pe_repo
class, and set thebase_path
parameter to your package management server's FQDN. - Click Add parameter and commit changes.
- Follow the steps to Install *nix agents with your own package management.