puppet_agent
: == Class: puppet_agent Upgrades Puppet 4 and newer to the requested version. === Parameters [arch] The package architecture. Defaults topuppet_agent::configure
puppet_agent::install
: == Class puppet_agent::install This class is called from puppet_agent for install. === Parameters [version] The puppet-agent version topuppet_agent::install::darwin
: == Class puppet_agent::install::darwin Private class called from puppet_agent class Manage the install process for Darwin OSes specificallypuppet_agent::install::solaris
: == Class puppet_agent::install::solaris Private class called from puppet_agent class Manage the install process for solaris specificallypuppet_agent::install::suse
: == Class puppet_agent::install::suse Private class called from puppet_agent class Manage the install process for SUSE OSes specificallypuppet_agent::install::windows
: == Class puppet_agent::install::windows Private class called from puppet_agent class Manage the install process for windows specificallypuppet_agent::osfamily::aix
puppet_agent::osfamily::darwin
puppet_agent::osfamily::debian
puppet_agent::osfamily::redhat
puppet_agent::osfamily::solaris
puppet_agent::osfamily::suse
puppet_agent::osfamily::windows
puppet_agent::params
: == Class puppet_agent::params This class is meant to be called from puppet_agent It sets variables according to platform.puppet_agent::prepare
: == Class puppet_agent::prepare This class is called from puppet_agent to prepare for the upgrade. === Parameters [version] The puppet-agpuppet_agent::prepare::package
: == Class puppet_agent::prepare::package The only job this class has is to ensure that the correct puppet-agent package is downloaded locallypuppet_agent::prepare::puppet_config
: == Class puppet_agent::prepare::puppet_config Private class called from puppet_agent::prepare classpuppet_agent::service
: == Class puppet_agent::service This class is meant to be called from puppet_agent. It ensures that managed services are running.
puppet_agent_end_run
: Stops the current Puppet run if a puppet-agent upgrade was performed. Used on platforms that manage the Puppet Agent upgrade with a package rpuppet_agent_upgrade_error
: Fails when a previous background installation failed. The type will check for the existance of an installation failure log and raise an error
any_resources_of_type
uri_host_from_string
: Return a uri host from a stringwindows_msi_installargs
: Return the $install_options parameter as a string usable in an msiexec commandwindows_native_path
: Return a windows native path
Puppet_agent::Arch
Puppet_agent::Config
Puppet_agent::Config_setting
: An enumerated list of settings which are permitted to be managed by this module.
delete_local_filebucket
: Removes the local filebucketfacts_diff
: Run the Puppet agent facts diff actioninstall
: Install the Puppet agent packageinstall_powershell
: Install the Puppet agent packageinstall_shell
: Install the Puppet agent packagerun
: Run the Puppet agent. This task may cause problems if run in Puppet Enterprise.version
: Get the version of the Puppet agent package installed. Returns nothing if none present.version_powershell
: Get the version of the Puppet agent package installed. Returns nothing if none present.version_shell
: Get the version of the Puppet agent package installed. Returns nothing if none present.
puppet_agent::run
: Starts a Puppet agent run on the specified targets. Note: This plan may cause issues when run in Puppet Enterprise.
== Class: puppet_agent
Upgrades Puppet 4 and newer to the requested version.
=== Parameters
[arch]
The package architecture. Defaults to the architecture fact.
[collection]
The Puppet Collection to track. Defaults to 'PC1'.
[is_pe]
Install from Puppet Enterprise repos. Enabled if communicating with a PE master.
[manage_pki_dir]
Whether or not to manage the /etc/pki directory. Defaults to true.
Managing the /etc/pki directory inside the puppet_agent module can be problematic for
organizations that manage gpg keys and settings in other modules.
[manage_repo]
Boolean to determine whether to configure repositories
This is intended to provide the ability to disable configuring a local repo
in support of systems that manage external repositories (i.e. spacewalk/satellite)
to enable users to add the proper packages to their internal repos
and to utilize default package providers for the install
[package_name]
The package to upgrade to, i.e. puppet-agent
.
[package_version]
The package version to upgrade to. Explicitly specify the version to upgrade to,
or set to 'auto' to specify the version of the compiling master.
[service_names]
An array of services to start, normally puppet
and mcollective
.
None will be started if the array is empty.
[source]
INCLUDED FOR COMPATIBILITY WITH MODULE VERSIONS 1.0/2.0. PREFER USE OF "absolute_source",
"apt_source", "deb_source" etc. OVER USE OF "source".
The location to find packages. Replaces base URL for unix/MacOS agents, used as fully
qualified path in windows
[absolute_source]
The exact location of the package to install. The entire path to the package must be
provided with this parameter.
[yum_source]
Base URL of the location of mirrors of yum.puppet.com downloads sites. Directories under
the URL "yum_source" should match the structure of the yum.puppet.com
[apt_source]
Base URL of the location of mirrors of apt.puppet.com downloads sites. Directories under
the URL "apt_source" should match the structure of the apt.puppet.com
[mac_source]
Base URL of the location of mirrors of downloads.puppet.com downloads site that serves
MacOS packages. Directories under the URL "mac_source" should match the structure of the
downloads.puppet.com site
[windows_source]
Base URL of the location of mirrors of downloads.puppet.com downloads site that serves
Windows packages. Directories under the URL "windows_source" should match the structure of
the downloads.puppet.com site
[solaris_source]
Base URL of the location of a mirror for Solaris packages. Currently, solaris packages can
only be made available by using puppetlabs-pe_repo. This means the mirror must be of a
PE master package serve.
[aix_source]
Base URL of the location of a mirror for AIX packages. Currently, AIX packages can
only be made available by using puppetlabs-pe_repo. This means the mirror must be of a
PE master package serve.
[use_alternate_sources]
ONLY APPLICABLE WHEN WORKING WITH PE INSTALLTIONS
When set to true will force downloads to come from the values of $apt_source, $deb_source
file
resources.) Note also that backslashes in double-quoted strings must
be escaped and backslashes in single-quoted strings can be escaped.
[msi_move_locked_files]
This is only applicable for Windows operating systems. There may be instances where
file locks cause unncessary service restarts. By setting to true, the module
will move files prior to installation that are known to cause file locks.
[wait_for_pxp_agent_exit]
This parameter is only applicable for Windows operating systems and pertains to the
/files/install_agent.ps1 script. This parameterizes the module to define the wait time
for the PXP agent to end successfully. The default value is set 2 minutes.
[wait_for_puppet_run]
This parameter is only applicable for Windows operating systems and pertains to the
/files/install_agent.ps1 script. This parameterizes the module to define the wait time
for the current puppet agent run to end successfully. The default value is set 2 minutes.
[config]
An array of configuration data to enforce. Each configuration data item must be a
Puppet_agent::Config hash, which has keys for puppet.conf section, setting, and value.
This parameter is constrained to managing only a predetermined set of configuration
settings, e.g. runinterval.
The following parameters are available in the puppet_agent
class:
arch
collection
is_pe
manage_pki_dir
manage_repo
package_name
package_version
service_names
source
absolute_source
yum_source
apt_source
mac_source
windows_source
solaris_source
aix_source
use_alternate_sources
alternate_pe_source
install_dir
disable_proxy
proxy
install_options
skip_if_unavailable
msi_move_locked_files
wait_for_pxp_agent_exit
wait_for_puppet_run
config
Data type: Any
Default value: $::architecture
Data type: Any
Default value: $::puppet_agent::params::collection
Data type: Any
Default value: $::puppet_agent::params::_is_pe
Data type: Any
Default value: true
Data type: Any
Default value: true
Data type: Any
Default value: 'puppet-agent'
Data type: Any
Default value: undef
Data type: Any
Default value: $::puppet_agent::params::service_names
Data type: Any
Default value: undef
Data type: Any
Default value: undef
Data type: Any
Default value: 'http://yum.puppet.com'
Data type: Any
Default value: 'https://apt.puppet.com'
Data type: Any
Default value: 'https://downloads.puppet.com'
Data type: Any
Default value: 'https://downloads.puppet.com'
Data type: Any
Default value: 'puppet:///pe_packages'
Data type: Any
Default value: 'puppet:///pe_packages'
Data type: Any
Default value: false
Data type: Any
Default value: undef
Data type: Any
Default value: undef
Data type: Any
Default value: false
Data type: Any
Default value: undef
Data type: Any
Default value: []
Data type: Any
Default value: 'absent'
Data type: Any
Default value: false
Data type: Any
Default value: undef
Data type: Any
Default value: undef
Data type: Array[Puppet_agent::Config]
Default value: []
The puppet_agent::configure class.
== Class puppet_agent::install
This class is called from puppet_agent for install.
=== Parameters
[version] The puppet-agent version to install.
The following parameters are available in the puppet_agent::install
class:
Data type: Any
Default value: 'present'
Data type: Any
Default value: undef
Data type: Any
Default value: []
== Class puppet_agent::install::darwin
Private class called from puppet_agent class
Manage the install process for Darwin OSes specifically
The following parameters are available in the puppet_agent::install::darwin
class:
Data type: Any
Data type: Any
Default value: []
== Class puppet_agent::install::solaris
Private class called from puppet_agent class
Manage the install process for solaris specifically
The following parameters are available in the puppet_agent::install::solaris
class:
Data type: Any
Data type: Any
Default value: []
== Class puppet_agent::install::suse
Private class called from puppet_agent class
Manage the install process for SUSE OSes specifically
The following parameters are available in the puppet_agent::install::suse
class:
Data type: Any
Data type: Any
Default value: []
== Class puppet_agent::install::windows
Private class called from puppet_agent class
Manage the install process for windows specifically
The following parameters are available in the puppet_agent::install::windows
class:
Data type: Any
Default value: undef
Data type: Any
Default value: []
The puppet_agent::osfamily::aix class.
The puppet_agent::osfamily::darwin class.
The puppet_agent::osfamily::debian class.
The puppet_agent::osfamily::redhat class.
The puppet_agent::osfamily::solaris class.
The puppet_agent::osfamily::suse class.
The puppet_agent::osfamily::windows class.
== Class puppet_agent::params
This class is meant to be called from puppet_agent It sets variables according to platform.
== Class puppet_agent::prepare
This class is called from puppet_agent to prepare for the upgrade.
=== Parameters
[version] The puppet-agent version to install.
The following parameters are available in the puppet_agent::prepare
class:
Data type: Any
Default value: undef
== Class puppet_agent::prepare::package
The only job this class has is to ensure that the correct puppet-agent package is downloaded locally for installation. This is used on platforms without package managers capable of working with a remote https repository.
[package_file_name] The puppet-agent package file to retrieve from the master.
The following parameters are available in the puppet_agent::prepare::package
class:
Data type: Any
== Class puppet_agent::prepare::puppet_config
Private class called from puppet_agent::prepare class
The following parameters are available in the puppet_agent::prepare::puppet_config
class:
Data type: Any
== Class puppet_agent::service
This class is meant to be called from puppet_agent. It ensures that managed services are running.
Stops the current Puppet run if a puppet-agent upgrade was performed. Used on platforms that manage the Puppet Agent upgrade with a package resource, as resources evaluated after an upgrade might cause unexpected behavior due to a mix of old and new Ruby code being loaded in memory.
Platforms that shell out to external scripts for upgrading (Windows, macOS, and Solaris 10) do not need to use this type.
The following properties are available in the puppet_agent_end_run
type.
Stops the current puppet run
The following parameters are available in the puppet_agent_end_run
type.
namevar
The desired puppet-agent version
The specific backend to use for this puppet_agent_end_run
resource. You will seldom need to specify this --- Puppet
will usually discover the appropriate provider for your platform.
Fails when a previous background installation failed. The type will check for the existance of an installation failure log and raise an error with the contents of the log if it exists
The following properties are available in the puppet_agent_upgrade_error
type.
whether or not the error log exists
The following parameters are available in the puppet_agent_upgrade_error
type.
namevar
The name of the failure log to check for in puppet's $statedir. If this log exists the resource will fail.
The specific backend to use for this puppet_agent_upgrade_error
resource. You will seldom need to specify this ---
Puppet will usually discover the appropriate provider for your platform.
Type: Ruby 4.x API
The any_resources_of_type function.
The any_resources_of_type function.
Returns: Any
Data type: String
Data type: Optional[Hash[Any, Any]]
Type: Ruby 3.x API
Return a uri host from a string
Return a uri host from a string
Returns: Any
Type: Ruby 3.x API
Return the $install_options parameter as a string usable in an msiexec command
Return the $install_options parameter as a string usable in an msiexec command
Returns: Any
Type: Ruby 3.x API
Return a windows native path
Return a windows native path
Returns: Any
The Puppet_agent::Arch data type.
Alias of
Pattern[/^x86$/, /^x64$/, /^i386$/, /^i86pc$/, /^amd64$/, /^x86_64$/, /^power$/, /^sun4[uv]$/, /^ppc64le$/, /^aarch64$/, /PowerPC_POWER/]
The Puppet_agent::Config data type.
Alias of
Variant[Struct[{section => Enum[main, server, agent, user, master],
setting => Puppet_agent::Config_setting,
value => String,
Optional[ensure] => Enum[present, absent]}], Struct[{section => Enum[main, server, agent, user, master],
setting => Puppet_agent::Config_setting,
Optional[ensure] => Enum[absent]}]]
An enumerated list of settings which are permitted to be managed by this module.
Alias of
Enum[agent_catalog_run_lockfile, agent_disabled_lockfile, allow_duplicate_certs, always_retry_plugins, autoflush, autosign, basemodulepath, binder_config, bucketdir, ca_fingerprint, ca_name, ca_port, ca_server, ca_ttl, cacert, cacrl, cadir, cakey, capub, catalog_cache_terminus, catalog_terminus, cert_inventory, certdir, certificate_revocation, certname, ciphers, classfile, client_datadir, clientbucketdir, clientyamldir, code, codedir, color, confdir, config, config_file_name, config_version, configprint, crl_refresh_interval, csr_attributes, csrdir, daemonize, data_binding_terminus, default_file_terminus, default_manifest, default_schedules, deviceconfdir, deviceconfig, devicedir, diff, diff_args, digest_algorithm, disable_i18n, disable_per_environment_manifest, disable_warnings, dns_alt_names, document_all, environment, environment_data_provider, environment_timeout, environment_timeout_mode, environmentpath, evaltrace, external_nodes, fact_name_length_soft_limit, fact_value_length_soft_limit, facterng, factpath, facts_terminus, fileserverconfig, filetimeout, forge_authorization, freeze_main, func3x_check, future_features, genconfig, genmanifest, graph, graphdir, group, hiera_config, hostcert, hostcrl, hostcsr, hostprivkey, hostpubkey, http_connect_timeout, http_debug, http_extra_headers, http_keepalive_timeout, http_proxy_host, http_proxy_password, http_proxy_port, http_proxy_user, http_read_timeout, http_user_agent, ignore_plugin_errors, ignoremissingtypes, ignoreschedules, key_type, keylength, lastrunfile, lastrunreport, ldapattrs, ldapbase, ldapclassattrs, ldapparentattr, ldappassword, ldapport, ldapserver, ldapssl, ldapstackedattrs, ldapstring, ldaptls, ldapuser, libdir, localcacert, localedest, localesource, log_level, logdest, logdir, manage_internal_file_permissions, manifest, masterport, max_deprecations, max_errors, max_warnings, maximum_uid, maxwaitforcert, maxwaitforlock, merge_dependency_warnings, mkusers, module_groups, module_repository, module_working_dir, modulepath, name, named_curve, no_proxy, node_cache_terminus, node_name, node_name_fact, node_name_value, node_terminus, noop, number_of_facts_soft_limit, onetime, passfile, path, payload_soft_limit, pidfile, plugindest, pluginfactdest, pluginfactsource, pluginsignore, pluginsource, pluginsync, postrun_command, preferred_serialization_format, prerun_command, preview_outputdir, priority, privatedir, privatekeydir, profile, publickeydir, puppet_trace, puppetdlog, report, report_include_system_store, report_port, report_server, reportdir, reports, reporturl, requestdir, resourcefile, rest_authconfig, resubmit_facts, rich_data, route_file, rundir, runinterval, runtimeout, serial, server, server_datadir, server_list, serverport, show_diff, signeddir, skip_tags, sourceaddress, splay, splaylimit, srv_domain, ssl_client_ca_auth, ssl_client_header, ssl_client_verify_header, ssl_lockfile, ssl_server_ca_auth, ssl_trust_store, ssldir, statedir, statefile, statettl, static_catalogs, storeconfigs, storeconfigs_backend, strict, strict_environment_mode, strict_hostname_checking, strict_variables, summarize, supported_checksum_types, syslogfacility, tags, tasks, top_level_facts_soft_limit, trace, transactionstorefile, trusted_external_command, trusted_oid_mapping_file, use_cached_catalog, use_srv_records, usecacheonfailure, user, vardir, vendormoduledir, versioned_environment_dirs, waitforcert, waitforlock, yamldir]
Removes the local filebucket
Supports noop? false
Data type: Optional[Boolean]
ignore nonexistent files and errors
Run the Puppet agent facts diff action
Supports noop? false
Data type: Optional[String]
Regex used to exclude specific facts from diff
Install the Puppet agent package
Supports noop? true
Data type: Optional[String]
The version of puppet-agent to install (defaults to latest when no agent is installed)
Data type: Optional[Enum[puppet6, puppet7, puppet, puppet6-nightly, puppet7-nightly, puppet-nightly]]
The Puppet collection to install from (defaults to puppet, which maps to the latest collection released)
Data type: Optional[String]
The source location to find yum repos (defaults to yum.puppet.com)
Data type: Optional[String]
The source location to find apt repos (defaults to apt.puppet.com)
Data type: Optional[String]
The source location to find mac packages (defaults to downloads.puppet.com)
Data type: Optional[String]
The source location to find windows packages (defaults to downloads.puppet.com)
Data type: Optional[String]
optional install arguments to the windows installer (defaults to REINSTALLMODE="amus")
Data type: Optional[Boolean]
Whether to stop the puppet agent service after install
Data type: Optional[Integer]
The number of retries in case of network connectivity failures
Install the Puppet agent package
Supports noop? true
Data type: Optional[String]
The version of puppet-agent to install
Data type: Optional[Enum[puppet6, puppet7, puppet, puppet6-nightly, puppet7-nightly, puppet-nightly]]
The Puppet collection to install from (defaults to puppet, which maps to the latest collection released)
Data type: Optional[String]
The source location to find yum repos (defaults to yum.puppet.com)
Data type: Optional[String]
The source location to find apt repos (defaults to apt.puppet.com)
Data type: Optional[String]
The source location to find mac packages (defaults to downloads.puppet.com)
Data type: Optional[String]
The source location to find windows packages (defaults to downloads.puppet.com)
Data type: Optional[String]
optional install arguments to the windows installer (defaults to REINSTALLMODE="amus")
Data type: Optional[Boolean]
Whether to stop the puppet agent service after install
Data type: Optional[Integer]
The number of retries in case of network connectivity failures
Install the Puppet agent package
Supports noop? true
Data type: Optional[String]
The version of puppet-agent to install
Data type: Optional[Enum[puppet6, puppet7, puppet, puppet6-nightly, puppet7-nightly, puppet-nightly]]
The Puppet collection to install from (defaults to puppet, which maps to the latest collection released)
Data type: Optional[String]
The source location to find yum repos (defaults to yum.puppet.com)
Data type: Optional[String]
The source location to find apt repos (defaults to apt.puppet.com)
Data type: Optional[String]
The source location to find mac packages (defaults to downloads.puppet.com)
Data type: Optional[String]
The source location to find windows packages (defaults to downloads.puppet.com)
Data type: Optional[String]
optional install arguments to the windows installer (defaults to REINSTALLMODE="amus")
Data type: Optional[Boolean]
Whether to stop the puppet agent service after install
Data type: Optional[Integer]
The number of retries in case of network connectivity failures
Run the Puppet agent. This task may cause problems if run in Puppet Enterprise.
Supports noop? false
Get the version of the Puppet agent package installed. Returns nothing if none present.
Supports noop? false
Get the version of the Puppet agent package installed. Returns nothing if none present.
Supports noop? false
Get the version of the Puppet agent package installed. Returns nothing if none present.
Supports noop? false
Starts a Puppet agent run on the specified targets. Note: This plan may cause issues when run in Puppet Enterprise.
The following parameters are available in the puppet_agent::run
plan:
Data type: TargetSpec
The targets to start a Puppet agent run on.