Adding and removing agentless nodes
Using the inventory, you can manage nodes, including devices such as network switches or firewalls, without installing the Puppet agent on them. The inventory stores node and device information securely.
The inventory connects to agentless nodes through SSH or WinRM remote connections. The inventory uses transport definitions from installed device modules to connect to devices that can't have an agent installed on them.
After you add credentials to the inventory, authorized users can run tasks on these nodes and devices without re-entering credentials. On the Tasks page, these nodes and devices appear in the same list of targets as those that have agents installed.
Add agentless nodes to the inventory
Add nodes over SSH or WinRM that will not or cannot have the Puppet agent installed to the inventory so you can run tasks on them.
Add classes to the PE Master node group for each agent platform used in your
environment. For example, pe_repo::platform::el_7_x86_64
.
Make sure you have the permission Nodes: Add and delete connection information from inventory service.
- In the console, click Inventory.
- Click Connect over SSH or WinRM.
-
Select a transport method.
- SSH for *nix targets
- WinRM for Windows targets
- Enter target host names and the credentials required to access them. If you use an SSH key, include begin and end tags.
- Optional: Select additional target options. For example, to add a target port number, select Target Port from the drop-down list, enter the number, and click Add. For details, see Transport configuration options.
- Click Add nodes.
Transport configuration options
A list of transport configuration options for SSH and WinRM transports.
Target options for SSH transport
Option | Definition |
---|---|
Target port | Connection port. Default is 22 . |
Connection time-out in seconds | The length of time PE should wait when establishing connections. |
Run as another user | After login, the user name to use for running commands. |
Temporary directory | The directory to use when uploading temporary files to the target. |
Sudo password | Password to use when changing users via run-as . |
Process request as tty | Enable text terminal allocation. |
Target options for WinRM transport
Option | Definition |
---|---|
Target port | Connection port. Default is 5986 , or 5985 if ssl:
false
|
Connection time-out in seconds | The length of time PE should wait when establishing connections. |
Temporary directory | The directory to use when uploading temporary files to the target. |
Acceptable file extension | List of file extensions that are accepted for scripts or
tasks. Scripts with these file extensions rely on the target node's file type
association to run. For example, if Python is installed on the system, a .py script should run with python.exe . The extensions .ps1 , .rb , and .pp are always allowed and run via hard-coded executables. |
Add devices to the inventory
If you have installed modules for device transports in your production environment, you can add connections to those devices to your inventory. This lets you manage network devices such as switches and firewalls, and run Puppet and task jobs on them, just like other agentless nodes in your infrastructure.
Make sure you have the permission Nodes: Add and delete connection information from inventory service.
- In the console, click Inventory.
- Click Connect network devices.
- Select a device type from the list of device transports that you have installed as modules in your production environment.
- Enter the device certname and other connection details, as defined in the transport module. Mandatory fields are marked with an asterisk. See the module README file if you need more details or examples specific to the transport.
- Click Add node.
Remove agentless nodes and devices from the inventory
Remove an agentless node or device connection from the inventory from the Connections tab on its details page.
Make sure you have the permission Nodes: Add and delete connection information from inventory service.
- On the Overview or Nodes page, find the node or device whose connection you want to remove, and click its name to open its details page.
- Click Connections.
- Click Remove connection. The exact name of the link varies depending on the connection type: Remove SSH Connection, Remove WinRM connection, or similar.
- Confirm that you want to remove the connection.
node-ttl
) and then purges the node when it reaches its
node-purge time-to-live limit (node-purge-ttl
). At this point the node no longer appears
in the console, and the node's license is available for use.node-ttl
and node-purge-ttl
settings, see the PE docs for database settings.