The Puppet classes page can be accessed via the configure menu:
Configure > Classes
The Puppet classes page forms a part of orcharhino’s Puppet support. It is the default option for configuration management within orcharhino.
Puppet classes are units of Puppet code and represent an integral part of how Puppet code is structured. As such, they are somewhat similar to Ansible roles. Multiple Puppet classes form a Puppet module. orcharhino will import any Puppet module from the Puppet master and display them on the Puppet classes page.
In addition, any appropriately declared parameters from within the imported Puppet classes will be added to the smart class parameter page.
Puppet classes cannot be created, added, or edited from within orcharhino. Instead, manage them directly using Puppet.
The Import button (1) allows you to import Puppet modules from your Puppet masters, i.e. your orcharhino or any attached orcharhino proxy.
The table (2) lists all already imported classes as well as information regarding their Puppet environment and number of hosts.
The Actions menu (3) allows you to delete a Puppet class and override all parameters. Note that delete will only remove the selected Puppet class from the management UI, but not delete the actual file.
Navigate to Configure > Puppet >> Classes and select the Puppet class you want to edit in the table as shown above.
The Class Name and Puppet environments (1) are set and cannot be changed.
The Host Groups field (2) allows you to select which host groups the Puppet class is assigned to.
Click the Submit button (3) to save your changes to orcharhino. Edit the smart class parameter tab as shown below:
The smart class parameter tab allows you to configure the default behaviour of the Puppet module. This example chooses to override the
policieskey with the
<%= @host.policies_enc %>value.
Refer to the Puppet guide for more information on how to use Puppet for configuration management with orcharhino.