Cloudeploy/.com_puppetlabs_geppetto_pp.../puppet-3.7.1.pptp

1047 lines
257 KiB
XML

<?xml version="1.0" encoding="ASCII"?>
<pptp:PuppetDistribution xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pptp="http://www.puppetlabs.com/geppetto/1.0.0/PPTP" description="Puppet Distribution" version="3.7.1" label="puppet">
<contents xsi:type="pptp:NameSpace" name="settings" reserved="true">
<contents xsi:type="pptp:TPVariable" name="*"/>
<contents xsi:type="pptp:TPVariable" name="allow_duplicate_certs" documentation="&lt;p>Whether to allow a new certificate request to overwrite an existing certificate.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="archive_file_server" documentation="&lt;p>During an inspect run, the file bucket server to archive files to if archive_files is set.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="archive_files" documentation="&lt;p>During an inspect run, whether to archive files whose contents are audited to a file bucket.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="async_storeconfigs" documentation="&lt;p>Whether to use a queueing system to provide asynchronous database integration. Requires that puppetqd be running and that &#x2018;PSON&#x2019; support for ruby be installed.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="authconfig" documentation="&lt;p>The configuration file that defines the rights to the different namespaces and methods. This can be used as a coarse-grained authorization system for both puppet agent and puppet master.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="autoflush" documentation="&lt;p>Whether log files should always flush to disk.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="autosign" documentation="&lt;p>Whether to enable autosign. Valid values are true (which autosigns any key request, and is a very bad idea), false (which never autosigns any key request), and the path to a file, which uses that configuration file to determine which keys to sign.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="bindaddress" documentation="&lt;p>The address a listening server should bind to.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="bucketdir" documentation="&lt;p>Where FileBucket files are stored.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ca" documentation="&lt;p>Wether the master should function as a certificate authority.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ca_days" documentation="&lt;p>How long a certificate should be valid. This parameter is deprecated, use ca_ttl instead.&lt;/p>" deprecated="true"/>
<contents xsi:type="pptp:TPVariable" name="ca_md" documentation="&lt;p>The type of hash used in certificates.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ca_name" documentation="&lt;p>The name to use the Certificate Authority certificate.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ca_port" documentation="&lt;p>The port to use for the certificate authority.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ca_server" documentation="&lt;p>The server to use for certificate authority requests. It&#x2019;s a separate server because it cannot and does not need to horizontally scale.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ca_ttl" documentation="&lt;p>The default TTL for new certificates; valid values must be an integer, optionally followed by one of the units &#x2018;y&#x2019; (years of 365 days), &#x2018;d&#x2019; (days), &#x2018;h&#x2019; (hours), or &#x2018;s&#x2019; (seconds). The unit defaults to seconds. If this parameter is set, ca_days is ignored. Examples are &#x2018;3600&#x2019; (one hour) and &#x2018;1825d&#x2019;, which is the same as &#x2018;5y&#x2019; (5 years).&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="cacert" documentation="&lt;p>The CA certificate.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="cacrl" documentation="&lt;p>The certificate revocation list (CRL) for the CA. Will be used if present but otherwise ignored.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="cadir" documentation="&lt;p>The root directory for the certificate authority.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="cakey" documentation="&lt;p>The CA private key.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="capass" documentation="&lt;p>Where the CA stores the password for the private key&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="caprivatedir" documentation="&lt;p>Where the CA stores private certificate information.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="capub" documentation="&lt;p>The CA public key.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="catalog_format" documentation="&lt;p>(Deprecated for &#x2018;preferred&lt;i>serialization&lt;/i>format&#x2019;) What format to use to dump the catalog. Only supports &#x2018;marshal&#x2019; and &#x2018;yaml&#x2019;. Only matters on the client, since it asks the server for a specific format.&lt;/p>" deprecated="true"/>
<contents xsi:type="pptp:TPVariable" name="catalog_terminus" documentation="&lt;p>Where to get node catalogs. This is useful to change if, for instance, you&#x2019;d like to pre-compile catalogs and store them in memcached or some other easily-accessed store.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="cert_inventory" documentation="&lt;p>A Complete listing of all certificates&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="certdir" documentation="&lt;p>The certificate directory.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="certdnsnames" documentation="&lt;p>The DNS names on the Server certificate as a colon-separated list. If it&#x2019;s anything other than an empty string, it will be used as an alias in the created certificate. By default, only the server gets an alias set up, and only for &#x2018;puppet&#x2019;.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="certificate_revocation" documentation="&lt;p>Whether certificate revocation should be supported by downloading a Certificate Revocation List (CRL) to all clients. If enabled, CA chaining will almost definitely not work.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="certname" documentation="&lt;p>The name to use when handling certificates. Defaults to the fully qualified domain name.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="classfile" documentation="&lt;p>The file in which puppet agent stores a list of the classes associated with the retrieved configuration. Can be loaded in the separate puppet executable using the --loadclasses option.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="client_datadir" documentation="&lt;p>The directory in which serialized data is stored on the client.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="clientbucketdir" documentation="&lt;p>Where FileBucket files are stored locally.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="clientyamldir" documentation="&lt;p>The directory in which client-side YAML data is stored.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="code" documentation="&lt;p>Code to parse directly. This is essentially only used by puppet, and should only be set if you&#x2019;re writing your own Puppet executable.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="color" documentation="&lt;p>Whether to use colors when logging to the console. Valid values are ansi (equivalent to true), html (mostly used during testing with TextMate), and false, which produces no color.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="confdir" documentation="&lt;p>The main Puppet configuration directory. The default for this parameter is calculated based on the user. If the process is running as root or the user that Puppet is supposed to run as, it defaults to a system directory, but if it&#x2019;s running as any other user, it defaults to being in the user&#x2019;s home directory.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="config" documentation="&lt;p>The configuration file for doc.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="config_version" documentation="&lt;p>How to determine the configuration version. By default, it will be the time that the configuration is parsed, but you can provide a shell script to override how the version is determined. The output of this script will be added to every log message in the reports, allowing you to correlate changes on your hosts to the source version on the server.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="configprint" documentation="&lt;p>Print the value of a specific configuration parameter. If a parameter is provided for this, then the value is printed and puppet exits. Comma-separate multiple values. For a list of all values, specify &#x2018;all&#x2019;. This feature is only available in Puppet versions higher than 0.18.4.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="configtimeout" documentation="&lt;p>How long the client should wait for the configuration to be retrieved before considering it a failure. This can help reduce flapping if too many clients contact the server at one time.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="couchdb_url" documentation="&lt;p>The url where the puppet couchdb database will be created&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="csrdir" documentation="&lt;p>Where the CA stores certificate requests&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="daemonize" documentation="&lt;p>Send the process into the background. This is the default.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="dbadapter" documentation="&lt;p>The type of database to use.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="dbconnections" documentation="&lt;p>The number of database connections for networked databases. Will be ignored unless the value is a positive integer.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="dblocation" documentation="&lt;p>The database cache for client configurations. Used for querying within the language.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="dbmigrate" documentation="&lt;p>Whether to automatically migrate the database.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="dbname" documentation="&lt;p>The name of the database to use.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="dbpassword" documentation="&lt;p>The database password for caching. Only used when networked databases are used.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="dbport" documentation="&lt;p>The database password for caching. Only used when networked databases are used.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="dbserver" documentation="&lt;p>The database server for caching. Only used when networked databases are used.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="dbsocket" documentation="&lt;p>The database socket location. Only used when networked databases are used. Will be ignored if the value is an empty string.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="dbuser" documentation="&lt;p>The database user for caching. Only used when networked databases are used.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="deviceconfig" documentation="&lt;p>Path to the device config file for puppet device&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="devicedir" documentation="&lt;p>The root directory of devices&#x2019; $vardir&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="diff" documentation="&lt;p>Which diff command to use when printing differences between files.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="diff_args" documentation="&lt;p>Which arguments to pass to the diff command when printing differences between files.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="document_all" documentation="&lt;p>Document all resources&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="downcasefacts" documentation="&lt;p>Whether facts should be made all lowercase when sent to the server.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="dynamicfacts" documentation="&lt;p>Facts that are dynamic; these facts will be ignored when deciding whether changed facts should result in a recompile. Multiple facts should be comma-separated.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="environment" documentation="&lt;p>The environment Puppet is running in. For clients (e.g., puppet agent) this determines the environment itself, which is used to find modules and much more. For servers (i.e., puppet master) this provides the default environment for nodes we know nothing about.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="evaltrace" documentation="&lt;p>Whether each resource should log when it is being evaluated. This allows you to interactively see exactly what is being done.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="external_nodes" documentation="&lt;p>An external command that can produce node information. The output must be a YAML dump of a hash, and that hash must have one or both of classes and parameters, where classes is an array and parameters is a hash. For unknown nodes, the commands should exit with a non-zero exit code. This command makes it straightforward to store your node mapping information in other data sources like databases.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="factdest" documentation="&lt;p>Where Puppet should store facts that it pulls down from the central server.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="factpath" documentation="&lt;p>Where Puppet should look for facts. Multiple directories should be colon-separated, like normal PATH variables.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="facts_terminus" documentation="&lt;p>The node facts terminus.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="factsignore" documentation="&lt;p>What files to ignore when pulling down facts.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="factsource" documentation="&lt;p>From where to retrieve facts. The standard Puppet file type is used for retrieval, so anything that is a valid file source can be used here.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="factsync" documentation="&lt;p>Whether facts should be synced with the central server.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="fileserverconfig" documentation="&lt;p>Where the fileserver configuration is stored.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="filetimeout" documentation="&lt;p>The minimum time to wait (in seconds) between checking for updates in configuration files. This timeout determines how quickly Puppet checks whether a file (such as manifests or templates) has changed on disk.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="freeze_main" documentation="&lt;p>Freezes the &#x2018;main&#x2019; class, disallowing any code to be added to it. This essentially means that you can&#x2019;t have any code outside of a node, class, or definition other than in the site manifest.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="genconfig" documentation="&lt;p>Whether to just print a configuration to stdout and exit. Only makes sense when used interactively. Takes into account arguments specified on the CLI.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="genmanifest" documentation="&lt;p>Whether to just print a manifest to stdout and exit. Only makes sense when used interactively. Takes into account arguments specified on the CLI.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="graph" documentation="&lt;p>Whether to create dot graph files for the different configuration graphs. These dot files can be interpreted by tools like OmniGraffle or dot (which is part of ImageMagick).&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="graphdir" documentation="&lt;p>Where to store dot-outputted graphs.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="group" documentation="&lt;p>The group puppet master should run as.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="hostcert" documentation="&lt;p>Where individual hosts store and look for their certificates.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="hostcrl" documentation="&lt;p>Where the host&#x2019;s certificate revocation list can be found. This is distinct from the certificate authority&#x2019;s CRL.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="hostcsr" documentation="&lt;p>Where individual hosts store and look for their certificate requests.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="hostprivkey" documentation="&lt;p>Where individual hosts store and look for their private key.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="hostpubkey" documentation="&lt;p>Where individual hosts store and look for their public key.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="http_compression" documentation="&lt;p>Allow http compression in REST communication with the master. This setting might improve performance for agent -> master communications over slow WANs. Your puppet master needs to support compression (usually by activating some settings in a reverse-proxy in front of the puppet master, which rules out webrick). It is harmless to activate this settings if your master doesn&#x2019;t support compression, but if it supports it, this setting might reduce performance on high-speed LANs.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="http_proxy_host" documentation="&lt;p>The HTTP proxy host to use for outgoing connections. Note: You may need to use a FQDN for the server hostname when using a proxy.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="http_proxy_port" documentation="&lt;p>The HTTP proxy port to use for outgoing connections&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="httplog" documentation="&lt;p>Where the puppet agent web server logs.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ignorecache" documentation="&lt;p>Ignore cache and always recompile the configuration. This is useful for testing new configurations, where the local cache may in fact be stale even if the timestamps are up to date - if the facts change or if the server changes.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ignoreimport" documentation="&lt;p>A parameter that can be used in commit hooks, since it enables you to parse-check a single file rather than requiring that all files exist.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ignoreschedules" documentation="&lt;p>Boolean; whether puppet agent should ignore schedules. This is useful for initial puppet agent runs.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="inventory_port" documentation="&lt;p>The port to communicate with the inventory_server.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="inventory_server" documentation="&lt;p>The server to send facts to.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="inventory_terminus" documentation="&lt;p>Should usually be the same as the facts terminus&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="keylength" documentation="&lt;p>The bit length of keys.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="lastrunfile" documentation="&lt;p>Where puppet agent stores the last run report summary in yaml format.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="lastrunreport" documentation="&lt;p>Where puppet agent stores the last run report in yaml format.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ldapattrs" documentation="&lt;p>The LDAP attributes to include when querying LDAP for nodes. All returned attributes are set as variables in the top-level scope. Multiple values should be comma-separated. The value &#x2018;all&#x2019; returns all attributes.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ldapbase" documentation="&lt;p>The search base for LDAP searches. It&#x2019;s impossible to provide a meaningful default here, although the LDAP libraries might have one already set. Generally, it should be the &#x2018;ou=Hosts&#x2019; branch under your main directory.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ldapclassattrs" documentation="&lt;p>The LDAP attributes to use to define Puppet classes. Values should be comma-separated.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ldapnodes" documentation="&lt;p>Whether to search for node configurations in LDAP. See http://projects.puppetlabs.com/projects/puppet/wiki/LDAP_Nodes for more information.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ldapparentattr" documentation="&lt;p>The attribute to use to define the parent node.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ldappassword" documentation="&lt;p>The password to use to connect to LDAP.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ldapport" documentation="&lt;p>The LDAP port. Only used if ldapnodes is enabled.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ldapserver" documentation="&lt;p>The LDAP server. Only used if ldapnodes is enabled.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ldapssl" documentation="&lt;p>Whether SSL should be used when searching for nodes. Defaults to false because SSL usually requires certificates to be set up on the client side.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ldapstackedattrs" documentation="&lt;p>The LDAP attributes that should be stacked to arrays by adding the values in all hierarchy elements of the tree. Values should be comma-separated.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ldapstring" documentation="&lt;p>The search string used to find an LDAP node.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ldaptls" documentation="&lt;p>Whether TLS should be used when searching for nodes. Defaults to false because TLS usually requires certificates to be set up on the client side.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ldapuser" documentation="&lt;p>The user to use to connect to LDAP. Must be specified as a full DN.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="lexical" documentation="&lt;p>Whether to use lexical scoping (vs. dynamic).&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="libdir" documentation="&lt;p>An extra search path for Puppet. This is only useful for those files that Puppet will load on demand, and is only guaranteed to work for those cases. In fact, the autoload mechanism is responsible for making sure this directory is in Ruby&#x2019;s search path&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="listen" documentation="&lt;p>Whether puppet agent should listen for connections. If this is true, then puppet agent will accept incoming REST API requests, subject to the default ACLs and the ACLs set in the rest_authconfig file. Puppet agent can respond usefully to requests on the run, facts, certificate, and resource endpoints.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="localcacert" documentation="&lt;p>Where each client stores the CA certificate.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="localconfig" documentation="&lt;p>Where puppet agent caches the local configuration. An extension indicating the cache format is added automatically.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="logdir" documentation="&lt;p>The Puppet log directory.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="manage_internal_file_permissions" documentation="&lt;p>Whether Puppet should manage the owner, group, and mode of files it uses internally&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="manifest" documentation="&lt;p>The entry-point manifest for puppet master.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="manifestdir" documentation="&lt;p>Where puppet master looks for its manifests.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="masterhttplog" documentation="&lt;p>Where the puppet master web server logs.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="masterlog" documentation="&lt;p>Where puppet master logs. This is generally not used, since syslog is the default log destination.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="masterport" documentation="&lt;p>Which port puppet master listens on.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="maximum_uid" documentation="&lt;p>The maximum allowed UID. Some platforms use negative UIDs but then ship with tools that do not know how to handle signed ints, so the UIDs show up as huge numbers that can then not be fed back into the system. This is a hackish way to fail in a slightly more useful way when that happens.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="mkusers" documentation="&lt;p>Whether to create the necessary user and group that puppet agent will run as.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="modulepath" documentation="&lt;p>The search path for modules as a list of directories separated by the &#x2018;:&#x2019; character.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="name" documentation="&lt;p>The name of the application, if we are running as one. The default is essentially $0 without the path or .rb.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="node_name" documentation="&lt;p>How the puppet master determines the client&#x2019;s identity and sets the &#x2018;hostname&#x2019;, &#x2018;fqdn&#x2019; and &#x2018;domain&#x2019; facts for use in the manifest, in particular for determining which &#x2018;node&#x2019; statement applies to the client. Possible values are &#x2018;cert&#x2019; (use the subject&#x2019;s CN in the client&#x2019;s certificate) and &#x2018;facter&#x2019; (use the hostname that the client reported in its facts)&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="node_name_fact" documentation="&lt;p>The fact name used to determine the node name used for all requests the agent makes to the master. WARNING: This setting is mutually exclusive with node&lt;i>name&lt;/i>value. Changing this setting also requires changes to the default auth.conf configuration on the Puppet Master. Please see http://links.puppetlabs.com/node&lt;i>name&lt;/i>fact for more information.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="node_name_value" documentation="&lt;p>The explicit value used for the node name for all requests the agent makes to the master. WARNING: This setting is mutually exclusive with node&lt;i>name&lt;/i>fact. Changing this setting also requires changes to the default auth.conf configuration on the Puppet Master. Please see http://links.puppetlabs.com/node&lt;i>name&lt;/i>value for more information.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="node_terminus" documentation="&lt;p>Where to find information about nodes.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="noop" documentation="&lt;p>Whether puppet agent should be run in noop mode.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="onetime" documentation="&lt;p>Run the configuration once, rather than as a long-running daemon. This is useful for interactively running puppetd.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="passfile" documentation="&lt;p>Where puppet agent stores the password for its private key. Generally unused.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="path" documentation="&lt;p>The shell search path. Defaults to whatever is inherited from the parent process.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="pidfile" documentation="&lt;p>The pid file&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="plugindest" documentation="&lt;p>Where Puppet should store plugins that it pulls down from the central server.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="pluginsignore" documentation="&lt;p>What files to ignore when pulling down plugins.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="pluginsource" documentation="&lt;p>From where to retrieve plugins. The standard Puppet file type is used for retrieval, so anything that is a valid file source can be used here.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="pluginsync" documentation="&lt;p>Whether plugins should be synced with the central server.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="postrun_command" documentation="&lt;p>A command to run after every agent run. If this command returns a non-zero return code, the entire Puppet run will be considered to have failed, even though it might have performed work during the normal run.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="preferred_serialization_format" documentation="&lt;p>The preferred means of serializing ruby instances for passing over the wire. This won&#x2019;t guarantee that all instances will be serialized using this method, since not all classes can be guaranteed to support this format, but it will be used for all classes that support it.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="prerun_command" documentation="&lt;p>A command to run before every agent run. If this command returns a non-zero return code, the entire Puppet run will fail.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="privatedir" documentation="&lt;p>Where the client stores private certificate information.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="privatekeydir" documentation="&lt;p>The private key directory.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="publickeydir" documentation="&lt;p>The public key directory.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="puppetdlockfile" documentation="&lt;p>A lock file to temporarily stop puppet agent from doing anything.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="puppetdlog" documentation="&lt;p>The log file for puppet agent. This is generally not used.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="puppetport" documentation="&lt;p>Which port puppet agent listens on.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="queue_source" documentation="&lt;p>Which type of queue to use for asynchronous processing. If your stomp server requires authentication, you can include it in the URI as long as your stomp client library is at least 1.1.1&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="queue_type" documentation="&lt;p>Which type of queue to use for asynchronous processing.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="rails_loglevel" documentation="&lt;p>The log level for Rails connections. The value must be a valid log level within Rails. Production environments normally use info and other environments normally use debug.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="railslog" documentation="&lt;p>Where Rails-specific logs are sent&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="report" documentation="&lt;p>Whether to send reports after every transaction.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="report_port" documentation="&lt;p>The port to communicate with the report_server.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="report_server" documentation="&lt;p>The server to send transaction reports to.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="reportdir" documentation="&lt;p>The directory in which to store reports received from the client. Each client gets a separate subdirectory.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="reportfrom" documentation="&lt;p>The &#x2018;from&#x2019; email address for the reports.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="reports" documentation="&lt;p>The list of reports to generate. All reports are looked for in puppet/reports/name.rb, and multiple report names should be comma-separated (whitespace is okay).&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="reportserver" documentation="&lt;p>(Deprecated for &#x2018;report_server&#x2019;) The server to which to send transaction reports.&lt;/p>" deprecated="true"/>
<contents xsi:type="pptp:TPVariable" name="reporturl" documentation="&lt;p>The URL used by the http reports processor to send reports&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="req_bits" documentation="&lt;p>The bit length of the certificates.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="requestdir" documentation="&lt;p>Where host certificate requests are stored.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="resourcefile" documentation="&lt;p>The file in which puppet agent stores a list of the resources associated with the retrieved configuration.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="rest_authconfig" documentation="&lt;p>The configuration file that defines the rights to the different rest indirections. This can be used as a fine-grained authorization system for puppet master.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="route_file" documentation="&lt;p>The YAML file containing indirector route configuration.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="rrddir" documentation="&lt;p>The directory where RRD database files are stored. Directories for each reporting host will be created under this directory.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="rrdinterval" documentation="&lt;p>How often RRD should expect data. This should match how often the hosts report back to the server.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="run_mode" documentation="&lt;p>The effective &#x2018;run mode&#x2019; of the application: master, agent, or user.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="rundir" documentation="&lt;p>Where Puppet PID files are kept.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="runinterval" documentation="&lt;p>How often puppet agent applies the client configuration; in seconds. Note that a runinterval of 0 means &#x201c;run continuously&#x201d; rather than &#x201c;never run.&#x201d; If you want puppet agent to never run, you should start it with the --no-client option.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="sendmail" documentation="&lt;p>Where to find the sendmail binary with which to send email.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="serial" documentation="&lt;p>Where the serial number for certificates is stored.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="server" documentation="&lt;p>The server to which server puppet agent should connect&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="server_datadir" documentation="&lt;p>The directory in which serialized data is stored, usually in a subdirectory.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="servertype" documentation="&lt;p>The type of server to use. Currently supported options are webrick and mongrel. If you use mongrel, you will need a proxy in front of the process or processes, since Mongrel cannot speak SSL.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="show_diff" documentation="&lt;p>Whether to print a contextual diff when files are being replaced. The diff is printed on stdout, so this option is meaningless unless you are running Puppet interactively. This feature currently requires the diff/lcs Ruby library.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="signeddir" documentation="&lt;p>Where the CA stores signed certificates.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="smtpserver" documentation="&lt;p>The server through which to send email reports.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="splay" documentation="&lt;p>Whether to sleep for a pseudo-random (but consistent) amount of time before a run.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="splaylimit" documentation="&lt;p>The maximum time to delay before runs. Defaults to being the same as the run interval.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ssl_client_header" documentation="&lt;p>The header containing an authenticated client&#x2019;s SSL DN. Only used with Mongrel. This header must be set by the proxy to the authenticated client&#x2019;s SSL DN (e.g., /CN=puppet.puppetlabs.com). See http://projects.puppetlabs.com/projects/puppet/wiki/Using_Mongrel for more information.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ssl_client_verify_header" documentation="&lt;p>The header containing the status message of the client verification. Only used with Mongrel. This header must be set by the proxy to &#x2018;SUCCESS&#x2019; if the client successfully authenticated, and anything else otherwise. See http://projects.puppetlabs.com/projects/puppet/wiki/Using_Mongrel for more information.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="ssldir" documentation="&lt;p>Where SSL certificates are kept.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="statedir" documentation="&lt;p>The directory where Puppet state is stored. Generally, this directory can be removed without causing harm (although it might result in spurious service restarts).&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="statefile" documentation="&lt;p>Where puppet agent and puppet master store state associated with the running configuration. In the case of puppet master, this file reflects the state discovered through interacting with clients.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="storeconfigs" documentation="&lt;p>Whether to store each client&#x2019;s configuration, including catalogs, facts, and related data. This also enables the import and export of resources in the Puppet language - a mechanism for exchange resources between nodes. By default this uses ActiveRecord and an SQL database to store and query the data; this, in turn, will depend on Rails being available. You can adjust the backend using the storeconfigs_backend setting.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="storeconfigs_backend" documentation="&lt;p>Configure the backend terminus used for StoreConfigs. By default, this uses the ActiveRecord store, which directly talks to the database from within the Puppet Master process.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="strict_hostname_checking" documentation="&lt;p>Whether to only search for the complete hostname as it is in the certificate when searching for node information in the catalogs.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="summarize" documentation="&lt;p>Whether to print a transaction summary.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="syslogfacility" documentation="&lt;p>What syslog facility to use when logging to syslog. Syslog has a fixed list of valid facilities, and you must choose one of those; you cannot just make one up.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="tagmap" documentation="&lt;p>The mapping between reporting tags and email addresses.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="tags" documentation="&lt;p>Tags to use to find resources. If this is set, then only resources tagged with the specified tags will be applied. Values must be comma-separated.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="templatedir" documentation="&lt;p>Where Puppet looks for template files. Can be a list of colon-seperated directories.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="thin_storeconfigs" documentation="&lt;p>Boolean; wether storeconfigs store in the database only the facts and exported resources. If true, then storeconfigs performance will be higher and still allow exported/collected resources, but other usage external to Puppet might not work&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="trace" documentation="&lt;p>Whether to print stack traces on some errors&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="use_cached_catalog" documentation="&lt;p>Whether to only use the cached catalog rather than compiling a new catalog on every run. Puppet can be run with this enabled by default and then selectively disabled when a recompile is desired.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="usecacheonfailure" documentation="&lt;p>Whether to use the cached configuration when the remote configuration will not compile. This option is useful for testing new configurations, where you want to fix the broken configuration rather than reverting to a known-good one.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="user" documentation="&lt;p>The user puppet master should run as.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="vardir" documentation="&lt;p>Where Puppet stores dynamic and growing data. The default for this parameter is calculated specially, like confdir_.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="yamldir" documentation="&lt;p>The directory in which YAML data is stored, usually in a subdirectory.&lt;/p>"/>
<contents xsi:type="pptp:TPVariable" name="zlib" documentation="&lt;p>Boolean; whether to use the zlib library&lt;/p>"/>
</contents>
<contents xsi:type="pptp:TPVariable" name="environment" documentation="The node's current environment. Available when compiling a catalog for a node."/>
<contents xsi:type="pptp:TPVariable" name="clientcert" documentation="The node's certname setting. Available when compiling a catalog for a node."/>
<contents xsi:type="pptp:TPVariable" name="clientversion" documentation="The current version of the puppet agent. Available when compiling a catalog for a node."/>
<contents xsi:type="pptp:TPVariable" name="servername" documentation="The puppet master&#x2019;s fully-qualified domain name. (Note that this information is gathered from the puppet master by Facter, rather than read from the config files; even if the master&#x2019;s certname is set to something other than its fully-qualified domain name, this variable will still contain the server&#x2019;s fqdn.)"/>
<contents xsi:type="pptp:TPVariable" name="serverip" documentation="The puppet master's IP address"/>
<contents xsi:type="pptp:TPVariable" name="serverversion" documentation="The current version of puppet on the puppet master."/>
<contents xsi:type="pptp:TPVariable" name="trusted" documentation="$trusted will automatically contain trusted node data in future versions"/>
<functions documentation="&lt;p>Returns all matches throughout the hierarchy --- not just the first match --- as a flattened array of unique values. If any of the matched values are arrays, they're flattened and included in the results.&lt;/p>&lt;p>In addition to the required &lt;tt>key&lt;/tt> argument, &lt;tt>hiera_array&lt;/tt> accepts two additional arguments:&lt;/p>&lt;ul>&lt;li>&lt;p>a &lt;tt>default&lt;/tt> argument in the second position, providing a string or array to be returned in the absence of matches to the &lt;tt>key&lt;/tt> argument&lt;/p>&lt;/li>&lt;li>&lt;p>an &lt;tt>override&lt;/tt> argument in the third position, providing a data source to consult for matching values, even if it would not ordinarily be part of the matched hierarchy. If Hiera doesn't find a matching key in the named override data source, it will continue to search through the rest of the hierarchy.&lt;/p>&lt;/li>&lt;/ul>&lt;p>If any matched value is a hash, puppet will raise a type mismatch error.&lt;/p>&lt;p>More thorough examples of &lt;tt>hiera&lt;/tt> are available at: &lt;http://docs.puppetlabs.com/hiera/1/puppet.html#hiera-lookup-functions>&lt;/p>" name="hiera_array" rValue="true"/>
<functions documentation="&lt;p>A boolean function that tells you whether the current container is tagged with the specified tags. The tags are ANDed, so that all of the specified tags must be included for the function to return true.&lt;/p>" name="tagged" rValue="true"/>
<functions documentation="&lt;p>Assigns classes to a node using an array merge lookup that retrieves the value for a user-specified key from a Hiera data source.&lt;/p>&lt;p>To use &lt;tt>hiera_include&lt;/tt>, the following configuration is required:&lt;/p>&lt;ul>&lt;li>&lt;p>A key name to use for classes, e.g. &lt;tt>classes&lt;/tt>.&lt;/p>&lt;/li>&lt;li>&lt;p>A line in the puppet &lt;tt>sites.pp&lt;/tt> file (e.g. &lt;tt>/etc/puppet/manifests/sites.pp&lt;/tt>) reading &lt;tt>hiera_include('classes')&lt;/tt>. Note that this line must be outside any node definition and below any top-scope variables in use for Hiera lookups.&lt;/p>&lt;/li>&lt;li>&lt;p>Class keys in the appropriate data sources. In a data source keyed to a node's role, one might have:&lt;/p>&lt;/li>&lt;/ul>&lt;pre> ---&#xA; classes:&#xA; - apache&#xA; - apache::passenger&#xA;&#xA;&lt;/pre>&lt;p>In addition to the required &lt;tt>key&lt;/tt> argument, &lt;tt>hiera_include&lt;/tt> accepts two additional arguments:&lt;/p>&lt;ul>&lt;li>&lt;p>a &lt;tt>default&lt;/tt> argument in the second position, providing an array to be returned in the absence of matches to the &lt;tt>key&lt;/tt> argument&lt;/p>&lt;/li>&lt;li>&lt;p>an &lt;tt>override&lt;/tt> argument in the third position, providing a data source to consult for matching values, even if it would not ordinarily be part of the matched hierarchy. If Hiera doesn't find a matching key in the named override data source, it will continue to search through the rest of the hierarchy.&lt;/p>&lt;/li>&lt;/ul>&lt;p>More thorough examples of &lt;tt>hiera_include&lt;/tt> are available at: &lt;http://docs.puppetlabs.com/hiera/1/puppet.html#hiera-lookup-functions>&lt;/p>" name="hiera_include"/>
<functions documentation="&lt;p>Call a lambda code block with the given arguments. Since the parameters of the lambda are local to the lambda's scope, this can be used to create private sections of logic in a class so that the variables are not visible outside of the class.&lt;/p>&lt;p>Example:&lt;/p>&lt;pre> # notices the array [1, 2, 'foo']&#xA; with(1, 2, 'foo') |$x, $y, $z| { notice [$x, $y, $z] }&#xA;&#xA;&lt;/pre>&lt;ul>&lt;li>&lt;p>since 3.7.0&lt;/p>&lt;/li>&lt;li>&lt;p>note requires future parser&lt;/p>&lt;/li>&lt;/ul>" name="with" rValue="true"/>
<functions documentation="&lt;p>Fail with a parse error.&lt;/p>" name="fail"/>
<functions documentation="&lt;p>Loads an ERB template from a module, evaluates it, and returns the resulting value as a string.&lt;/p>&lt;p>The argument to this function should be a &lt;tt>&lt;MODULE NAME>/&lt;TEMPLATE FILE>&lt;/tt> reference, which will load &lt;tt>&lt;TEMPLATE FILE>&lt;/tt> from a module's &lt;tt>templates&lt;/tt> directory. (For example, the reference &lt;tt>apache/vhost.conf.erb&lt;/tt> will load the file &lt;tt>&lt;MODULES DIRECTORY>/apache/templates/vhost.conf.erb&lt;/tt>.)&lt;/p>&lt;p>This function can also accept:&lt;/p>&lt;ul>&lt;li>&lt;p>An absolute path, which can load a template file from anywhere on disk.&lt;/p>&lt;/li>&lt;li>&lt;p>Multiple arguments, which will evaluate all of the specified templates and&lt;/p>&lt;/li>&lt;/ul>&lt;p>return their outputs concatenated into a single string.&lt;/p>" name="template" rValue="true"/>
<functions documentation="&lt;p>Applies a parameterized block to each element in a sequence of entries from the first argument (&lt;i>the enumerable&lt;/i>) and returns the last result of the invocation of the parameterized block.&lt;/p>&lt;p>This function takes two mandatory arguments: the first should be an Array, Hash, or something of enumerable type, and the last a parameterized block as produced by the puppet syntax:&lt;/p>&lt;pre> $a.reduce |$memo, $x| { ... }&#xA; reduce($a) |$memo, $x| { ... }&#xA;&#xA;&lt;/pre>&lt;p>When the first argument is an Array or someting of an enumerable type, the block is called with each entry in turn. When the first argument is a hash each entry is converted to an array with &lt;tt>[key, value]&lt;/tt> before being fed to the block. An optional 'start memo' value may be supplied as an argument between the array/hash and mandatory block.&lt;/p>&lt;pre> $a.reduce(start) |$memo, $x| { ... }&#xA; reduce($a, start) |$memo, $x| { ... }&#xA;&#xA;&lt;/pre>&lt;p>If no 'start memo' is given, the first invocation of the parameterized block will be given the first and second elements of the enumeration, and if the enumerable has fewer than 2 elements, the first element is produced as the result of the reduction without invocation of the block.&lt;/p>&lt;p>On each subsequent invocation, the produced value of the invoked parameterized block is given as the memo in the next invocation.&lt;/p>&lt;p>Example Using reduce&lt;/p>&lt;pre> # Reduce an array&#xA; $a = [1,2,3]&#xA; $a.reduce |$memo, $entry| { $memo + $entry }&#xA; #=> 6&#xA;&#xA; # Reduce hash values&#xA; $a = {a => 1, b => 2, c => 3}&#xA; $a.reduce |$memo, $entry| { [sum, $memo[1]+$entry[1]] }&#xA; #=> [sum, 6]&#xA;&#xA; # reverse a string&#xA; &quot;abc&quot;.reduce |$memo, $char| { &quot;$char$memo&quot; }&#xA; #=>&quot;cbe&quot;&#xA;&#xA;&lt;/pre>&lt;p>It is possible to provide a starting 'memo' as an argument.&lt;/p>&lt;p>Example Using reduce with given start 'memo'&lt;/p>&lt;pre> # Reduce an array&#xA; $a = [1,2,3]&#xA; $a.reduce(4) |$memo, $entry| { $memo + $entry }&#xA; #=> 10&#xA;&#xA; # Reduce hash values&#xA; $a = {a => 1, b => 2, c => 3}&#xA; $a.reduce([na, 4]) |$memo, $entry| { [sum, $memo[1]+$entry[1]] }&#xA; #=> [sum, 10]&#xA;&#xA;&lt;/pre>&lt;p>Example Using reduce with an Integer range&lt;/p>&lt;pre> Integer[1,4].reduce |$memo, $x| { $memo + $x }&#xA; #=> 10&#xA;&#xA;&lt;/pre>&lt;ul>&lt;li>&lt;p>since 3.2 for Array and Hash&lt;/p>&lt;/li>&lt;li>&lt;p>since 3.5 for additional enumerable types&lt;/p>&lt;/li>&lt;li>&lt;p>note requires &lt;tt>parser = future&lt;/tt>.&lt;/p>&lt;/li>&lt;/ul>" name="reduce" rValue="true"/>
<functions documentation="&lt;p>Evaluates an Embedded Puppet Template (EPP) file and returns the rendered text result as a String.&lt;/p>&lt;p>The first argument to this function should be a &lt;tt>&lt;MODULE NAME>/&lt;TEMPLATE FILE>&lt;/tt> reference, which will load &lt;tt>&lt;TEMPLATE FILE>&lt;/tt> from a module's &lt;tt>templates&lt;/tt> directory. (For example, the reference &lt;tt>apache/vhost.conf.epp&lt;/tt> will load the file &lt;tt>&lt;MODULES DIRECTORY>/apache/templates/vhost.conf.epp&lt;/tt>.)&lt;/p>&lt;p>The second argument is optional; if present, it should be a hash containing parameters for the template. (See below.)&lt;/p>&lt;p>EPP supports the following tags:&lt;/p>&lt;ul>&lt;li>&lt;p>&lt;tt>&lt;%= puppet expression %>&lt;/tt> - This tag renders the value of the expression it contains.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>&lt;% puppet expression(s) %>&lt;/tt> - This tag will execute the expression(s) it contains, but renders nothing.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>&lt;%# comment %>&lt;/tt> - The tag and its content renders nothing.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>&lt;%%&lt;/tt> or &lt;tt>%%>&lt;/tt> - Renders a literal &lt;tt>&lt;%&lt;/tt> or &lt;tt>%>&lt;/tt> respectively.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>&lt;%-&lt;/tt> - Same as &lt;tt>&lt;%&lt;/tt> but suppresses any leading whitespace.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>-%>&lt;/tt> - Same as &lt;tt>%>&lt;/tt> but suppresses any trailing whitespace on the same line (including line break).&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>&lt;%- |parameters| -%>&lt;/tt> - When placed as the first tag declares the template's parameters.&lt;/p>&lt;/li>&lt;/ul>&lt;p>File based EPP supports the following visibilities of variables in scope:&lt;/p>&lt;ul>&lt;li>&lt;p>Global scope (i.e. top + node scopes) - global scope is always visible&lt;/p>&lt;/li>&lt;li>&lt;p>Global + all given arguments - if the EPP template does not declare parameters, and arguments are given&lt;/p>&lt;/li>&lt;li>&lt;p>Global + declared parameters - if the EPP declares parameters, given argument names must match&lt;/p>&lt;/li>&lt;/ul>&lt;p>EPP supports parameters by placing an optional parameter list as the very first element in the EPP. As an example, &lt;tt>&lt;%- |$x, $y, $z = 'unicorn'| -%>&lt;/tt> when placed first in the EPP text declares that the parameters &lt;tt>x&lt;/tt> and &lt;tt>y&lt;/tt> must be given as template arguments when calling &lt;tt>inline_epp&lt;/tt>, and that &lt;tt>z&lt;/tt> if not given as a template argument defaults to &lt;tt>'unicorn'&lt;/tt>. Template parameters are available as variables, e.g.arguments &lt;tt>$x&lt;/tt>, &lt;tt>$y&lt;/tt> and &lt;tt>$z&lt;/tt> in the example. Note that &lt;tt>&lt;%-&lt;/tt> must be used or any leading whitespace will be interpreted as text&lt;/p>&lt;p>Arguments are passed to the template by calling &lt;tt>epp&lt;/tt> with a Hash as the last argument, where parameters are bound to values, e.g. &lt;tt>epp('...', {'x'=>10, 'y'=>20})&lt;/tt>. Excess arguments may be given (i.e. undeclared parameters) only if the EPP templates does not declare any parameters at all. Template parameters shadow variables in outer scopes. File based epp does never have access to variables in the scope where the &lt;tt>epp&lt;/tt> function is called from.&lt;/p>&lt;ul>&lt;li>&lt;p>See function inline_epp for examples of EPP&lt;/p>&lt;/li>&lt;li>&lt;p>Since 3.5&lt;/p>&lt;/li>&lt;li>&lt;p>Requires Future Parser&lt;/p>&lt;/li>&lt;/ul>" name="epp" rValue="true"/>
<functions documentation="&lt;p>Evaluate a template string and return its value. See [the templating docs](http://docs.puppetlabs.com/guides/templating.html) for more information. Note that if multiple template strings are specified, their output is all concatenated and returned as the output of the function.&lt;/p>" name="inline_template" rValue="true"/>
<functions documentation="&lt;p>Add the specified tags to the containing class or definition. All contained objects will then acquire that tag, also.&lt;/p>" name="tag"/>
<functions documentation="&lt;p>Applies a parameterized block to each element in a sequence of selected entries from the first argument and returns the first argument.&lt;/p>&lt;p>This function takes two mandatory arguments: the first should be an Array or a Hash or something that is of enumerable type (integer, Integer range, or String), and the second a parameterized block as produced by the puppet syntax:&lt;/p>&lt;pre> $a.each |$x| { ... }&#xA; each($a) |$x| { ... }&#xA;&#xA;&lt;/pre>&lt;p>When the first argument is an Array (or of enumerable type other than Hash), the parameterized block should define one or two block parameters. For each application of the block, the next element from the array is selected, and it is passed to the block if the block has one parameter. If the block has two parameters, the first is the elements index, and the second the value. The index starts from 0.&lt;/p>&lt;pre> $a.each |$index, $value| { ... }&#xA; each($a) |$index, $value| { ... }&#xA;&#xA;&lt;/pre>&lt;p>When the first argument is a Hash, the parameterized block should define one or two parameters. When one parameter is defined, the iteration is performed with each entry as an array of &lt;tt>[key, value]&lt;/tt>, and when two parameters are defined the iteration is performed with key and value.&lt;/p>&lt;pre> $a.each |$entry| { ...&quot;key ${$entry[0]}, value ${$entry[1]}&quot; }&#xA; $a.each |$key, $value| { ...&quot;key ${key}, value ${value}&quot; }&#xA;&#xA;&lt;/pre>&lt;p>Example using each:&lt;/p>&lt;pre> [1,2,3].each |$val| { ... } # 1, 2, 3&#xA; [5,6,7].each |$index, $val| { ... } # (0, 5), (1, 6), (2, 7)&#xA; {a=>1, b=>2, c=>3}].each |$val| { ... } # ['a', 1], ['b', 2], ['c', 3]&#xA; {a=>1, b=>2, c=>3}.each |$key, $val| { ... } # ('a', 1), ('b', 2), ('c', 3)&#xA; Integer[ 10, 20 ].each |$index, $value| { ... } # (0, 10), (1, 11) ...&#xA; &quot;hello&quot;.each |$char| { ... } # 'h', 'e', 'l', 'l', 'o'&#xA; 3.each |$number| { ... } # 0, 1, 2&#xA;&#xA;&lt;/pre>&lt;ul>&lt;li>&lt;p>since 3.2 for Array and Hash&lt;/p>&lt;/li>&lt;li>&lt;p>since 3.5 for other enumerables&lt;/p>&lt;/li>&lt;li>&lt;p>note requires &lt;tt>parser = future&lt;/tt>&lt;/p>&lt;/li>&lt;/ul>" name="each" rValue="true"/>
<functions documentation="&lt;p>Add another namespace for this class to search. This allows you to create classes with sets of definitions and add those classes to another class's search path.&lt;/p>&lt;p>Deprecated in Puppet 3.7.0, to be removed in Puppet 4.0.0.&lt;/p>" name="search"/>
<functions documentation="&lt;p>Loads a file from a module and returns its contents as a string.&lt;/p>&lt;p>The argument to this function should be a &lt;tt>&lt;MODULE NAME>/&lt;FILE>&lt;/tt> reference, which will load &lt;tt>&lt;FILE>&lt;/tt> from a module's &lt;tt>files&lt;/tt> directory. (For example, the reference &lt;tt>mysql/mysqltuner.pl&lt;/tt> will load the file &lt;tt>&lt;MODULES DIRECTORY>/mysql/files/mysqltuner.pl&lt;/tt>.)&lt;/p>&lt;p>This function can also accept:&lt;/p>&lt;ul>&lt;li>&lt;p>An absolute path, which can load a file from anywhere on disk.&lt;/p>&lt;/li>&lt;li>&lt;p>Multiple arguments, which will return the contents of the &lt;strong>first&lt;/strong> file&lt;/p>&lt;/li>&lt;/ul>&lt;p>found, skipping any files that don't exist.&lt;/p>" name="file" rValue="true"/>
<functions documentation="&lt;p>This is a parser function to read data from external files, this version uses CSV files but the concept can easily be adjust for databases, yaml or any other queryable data source.&lt;/p>&lt;p>The object of this is to make it obvious when it's being used, rather than magically loading data in when a module is loaded I prefer to look at the code and see statements like:&lt;/p>&lt;pre> $snmp_contact = extlookup(&quot;snmp_contact&quot;)&#xA;&#xA;&lt;/pre>&lt;p>The above snippet will load the snmp_contact value from CSV files, this in its own is useful but a common construct in puppet manifests is something like this:&lt;/p>&lt;pre> case $domain {&#xA; &quot;myclient.com&quot;: { $snmp_contact = &quot;John Doe &lt;john@myclient.com>&quot; }&#xA; default: { $snmp_contact = &quot;My Support &lt;support@my.com>&quot; }&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>Over time there will be a lot of this kind of thing spread all over your manifests and adding an additional client involves grepping through manifests to find all the places where you have constructs like this.&lt;/p>&lt;p>This is a data problem and shouldn't be handled in code, and using this function you can do just that.&lt;/p>&lt;p>First you configure it in site.pp:&lt;/p>&lt;pre> $extlookup_datadir = &quot;/etc/puppet/manifests/extdata&quot;&#xA; $extlookup_precedence = [&quot;%{fqdn}&quot;, &quot;domain_%{domain}&quot;, &quot;common&quot;]&#xA;&#xA;&lt;/pre>&lt;p>The array tells the code how to resolve values, first it will try to find it in web1.myclient.com.csv then in domain_myclient.com.csv and finally in common.csv&lt;/p>&lt;p>Now create the following data files in /etc/puppet/manifests/extdata:&lt;/p>&lt;pre> domain_myclient.com.csv:&#xA; snmp_contact,John Doe &lt;john@myclient.com>&#xA; root_contact,support@%{domain}&#xA; client_trusted_ips,192.168.1.130,192.168.10.0/24&#xA;&#xA; common.csv:&#xA; snmp_contact,My Support &lt;support@my.com>&#xA; root_contact,support@my.com&#xA;&#xA;&lt;/pre>&lt;p>Now you can replace the case statement with the simple single line to achieve the exact same outcome:&lt;/p>&lt;pre> $snmp_contact = extlookup(&quot;snmp_contact&quot;)&#xA;&#xA;&lt;/pre>&lt;p>The above code shows some other features, you can use any fact or variable that is in scope by simply using %{varname} in your data files, you can return arrays by just having multiple values in the csv after the initial variable name.&lt;/p>&lt;p>In the event that a variable is nowhere to be found a critical error will be raised that will prevent your manifest from compiling, this is to avoid accidentally putting in empty values etc. You can however specify a default value:&lt;/p>&lt;pre> $ntp_servers = extlookup(&quot;ntp_servers&quot;, &quot;1.${country}.pool.ntp.org&quot;)&#xA;&#xA;&lt;/pre>&lt;p>In this case it will default to &quot;1.${country}.pool.ntp.org&quot; if nothing is defined in any data file.&lt;/p>&lt;p>You can also specify an additional data file to search first before any others at use time, for example:&lt;/p>&lt;pre> $version = extlookup(&quot;rsyslog_version&quot;, &quot;present&quot;, &quot;packages&quot;)&#xA; package{&quot;rsyslog&quot;: ensure => $version }&#xA;&#xA;&lt;/pre>&lt;p>This will look for a version configured in packages.csv and then in the rest as configured by $extlookup_precedence if it's not found anywhere it will default to &lt;tt>present&lt;/tt>, this kind of use case makes puppet a lot nicer for managing large amounts of packages since you do not need to edit a load of manifests to do simple things like adjust a desired version number.&lt;/p>&lt;p>Precedence values can have variables embedded in them in the form %{fqdn}, you could for example do:&lt;/p>&lt;pre> $extlookup_precedence = [&quot;hosts/%{fqdn}&quot;, &quot;common&quot;]&#xA;&#xA;&lt;/pre>&lt;p>This will result in /path/to/extdata/hosts/your.box.com.csv being searched.&lt;/p>&lt;p>This is for back compatibility to interpolate variables with %. % interpolation is a workaround for a problem that has been fixed: Puppet variable interpolation at top scope used to only happen on each run.&lt;/p>" name="extlookup" rValue="true"/>
<functions documentation="&lt;p>Perform regexp replacement on a string or array of strings.&lt;/p>&lt;ul>&lt;li>&lt;p>&lt;b>Parameters&lt;/b> (in order):&lt;pre>* _target_ The string or array of strings to operate on. If an array, the replacement will be performed on each of the elements in the array, and the return value will be an array.&#xA;* _regexp_ The regular expression matching the target string. If you want it anchored at the start and or end of the string, you must do that with ^ and $ yourself.&#xA;* _replacement_ Replacement string. Can contain backreferences to what was matched using \0 (whole match), \1 (first set of parentheses), and so on.&#xA;* _flags_ Optional. String of single letter flags for how the regexp is interpreted:&#xA; - *E* Extended regexps&#xA; - *I* Ignore case in regexps&#xA; - *M* Multiline regexps&#xA; - *G* Global replacement; all occurrences of the regexp in each target string will be replaced. Without this, only the first occurrence will be replaced.&#xA;* _encoding_ Optional. How to handle multibyte characters. A single-character string with the following values:&#xA; - *N* None&#xA; - *E* EUC&#xA; - *S* SJIS&#xA; - *U* UTF-8&#xA;&#xA;&lt;/pre>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;b>Examples&lt;/b>&lt;/p>&lt;/li>&lt;/ul>&lt;p>Get the third octet from the node's IP address:&lt;/p>&lt;pre> $i3 = regsubst($ipaddress,'^(\d+)\.(\d+)\.(\d+)\.(\d+)$','\3')&#xA;&#xA;&lt;/pre>&lt;p>Put angle brackets around each octet in the node's IP address:&lt;/p>&lt;pre> $x = regsubst($ipaddress, '([0-9]+)', '&lt;\1>', 'G')&#xA;&lt;/pre>" name="regsubst" rValue="true"/>
<functions documentation="&lt;p>Returns a SHA1 hash value from a provided string.&lt;/p>" name="sha1" rValue="true"/>
<functions documentation="&lt;p>Contain one or more classes inside the current class. If any of these classes are undeclared, they will be declared as if called with the &lt;tt>include&lt;/tt> function. Accepts a class name, an array of class names, or a comma-separated list of class names.&lt;/p>&lt;p>A contained class will not be applied before the containing class is begun, and will be finished before the containing class is finished.&lt;/p>&lt;p>When the future parser is used, you must use the class's full name; relative names are no longer allowed. In addition to names in string form, you may also directly use Class and Resource Type values that are produced by the future parser's resource and relationship expressions.&lt;/p>" name="contain"/>
<functions documentation="&lt;p>Evaluate one or more classes, adding the required class as a dependency.&lt;/p>&lt;p>The relationship metaparameters work well for specifying relationships between individual resources, but they can be clumsy for specifying relationships between classes. This function is a superset of the 'include' function, adding a class relationship so that the requiring class depends on the required class.&lt;/p>&lt;p>Warning: using require in place of include can lead to unwanted dependency cycles.&lt;/p>&lt;p>For instance the following manifest, with 'require' instead of 'include' would produce a nasty dependence cycle, because notify imposes a before between File[/foo] and Service[foo]:&lt;/p>&lt;pre> class myservice {&#xA; service { foo: ensure => running }&#xA; }&#xA;&#xA; class otherstuff {&#xA; include myservice&#xA; file { '/foo': notify => Service[foo] }&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>Note that this function only works with clients 0.25 and later, and it will fail if used with earlier clients.&lt;/p>&lt;p>When the future parser is used, you must use the class's full name; relative names are no longer allowed. In addition to names in string form, you may also directly use Class and Resource Type values that are produced by the future parser's resource and relationship expressions.&lt;/p>" name="require"/>
<functions documentation="&lt;p>Make a virtual object real. This is useful when you want to know the name of the virtual object and don't want to bother with a full collection. It is slightly faster than a collection, and, of course, is a bit shorter. You must pass the object using a reference; e.g.: &lt;tt>realize User[luke]&lt;/tt>.&lt;/p>" name="realize"/>
<functions documentation="&lt;p>Converts a hash into a set of resources and adds them to the catalog.&lt;/p>&lt;p>This function takes two mandatory arguments: a resource type, and a hash describing a set of resources. The hash should be in the form &lt;tt>{title => {parameters} }&lt;/tt>:&lt;/p>&lt;pre> # A hash of user resources:&#xA; $myusers = {&#xA; 'nick' => { uid => '1330',&#xA; gid => allstaff,&#xA; groups => ['developers', 'operations', 'release'], },&#xA; 'dan' => { uid => '1308',&#xA; gid => allstaff,&#xA; groups => ['developers', 'prosvc', 'release'], },&#xA; }&#xA;&#xA; create_resources(user, $myusers)&#xA;&#xA;&lt;/pre>&lt;p>A third, optional parameter may be given, also as a hash:&lt;/p>&lt;pre> $defaults = {&#xA; 'ensure' => present,&#xA; 'provider' => 'ldap',&#xA; }&#xA;&#xA; create_resources(user, $myusers, $defaults)&#xA;&#xA;&lt;/pre>&lt;p>The values given on the third argument are added to the parameters of each resource present in the set given on the second argument. If a parameter is present on both the second and third arguments, the one on the second argument takes precedence.&lt;/p>&lt;p>This function can be used to create defined resources and classes, as well as native resources.&lt;/p>&lt;p>Virtual and Exported resources may be created by prefixing the type name with @ or @@ respectively. For example, the $myusers hash may be exported in the following manner:&lt;/p>&lt;pre> create_resources(&quot;@@user&quot;, $myusers)&#xA;&#xA;&lt;/pre>&lt;p>The $myusers may be declared as virtual resources using:&lt;/p>&lt;pre> create_resources(&quot;@user&quot;, $myusers)&#xA;&lt;/pre>" name="create_resources"/>
<functions documentation="&lt;p>Calls an external command on the Puppet master and returns the results of the command. Any arguments are passed to the external command as arguments. If the generator does not exit with return code of 0, the generator is considered to have failed and a parse error is thrown. Generators can only have file separators, alphanumerics, dashes, and periods in them. This function will attempt to protect you from malicious generator calls (e.g., those with '..' in them), but it can never be entirely safe. No subshell is used to execute generators, so all shell metacharacters are passed directly to the generator.&lt;/p>" name="generate" rValue="true"/>
<functions documentation="&lt;p>Returns the match result of matching a String or Array[String] with one of:&lt;/p>&lt;ul>&lt;li>&lt;p>Regexp&lt;/p>&lt;/li>&lt;li>&lt;p>String - transformed to a Regexp&lt;/p>&lt;/li>&lt;li>&lt;p>Pattern type&lt;/p>&lt;/li>&lt;li>&lt;p>Regexp type&lt;/p>&lt;/li>&lt;/ul>&lt;p>Returns An Array with the entire match at index 0, and each subsequent submatch at index 1-n. If there was no match &lt;tt>undef&lt;/tt> is returned. If the value to match is an Array, a array with mapped match results is returned.&lt;/p>&lt;p>Example matching:&lt;/p>&lt;pre>&quot;abc123&quot;.match(/([a-z]+)[1-9]+/) # => [&quot;abc&quot;]&#xA;&quot;abc123&quot;.match(/([a-z]+)([1-9]+)/) # => [&quot;abc&quot;, &quot;123&quot;]&#xA;&#xA;&lt;/pre>&lt;p>See the documentation for &quot;The Puppet Type System&quot; for more information about types.&lt;/p>&lt;ul>&lt;li>&lt;p>since 3.7.0&lt;/p>&lt;/li>&lt;li>&lt;p>note requires future parser&lt;/p>&lt;/li>&lt;/ul>" name="match"/>
<functions documentation="&lt;p>Declares one or more classes, causing the resources in them to be evaluated and added to the catalog. Accepts a class name, an array of class names, or a comma-separated list of class names.&lt;/p>&lt;p>The &lt;tt>include&lt;/tt> function can be used multiple times on the same class and will only declare a given class once. If a class declared with &lt;tt>include&lt;/tt> has any parameters, Puppet will automatically look up values for them in Hiera, using &lt;tt>&lt;class name>::&lt;parameter name>&lt;/tt> as the lookup key.&lt;/p>&lt;p>Contrast this behavior with resource-like class declarations (&lt;tt>class {'name': parameter => 'value',}&lt;/tt>), which must be used in only one place per class and can directly set parameters. You should avoid using both &lt;tt>include&lt;/tt> and resource-like declarations with the same class.&lt;/p>&lt;p>The &lt;tt>include&lt;/tt> function does not cause classes to be contained in the class where they are declared. For that, see the &lt;tt>contain&lt;/tt> function. It also does not create a dependency relationship between the declared class and the surrounding class; for that, see the &lt;tt>require&lt;/tt> function.&lt;/p>&lt;p>When the future parser is used, you must use the class's full name; relative names are no longer allowed. In addition to names in string form, you may also directly use Class and Resource Type values that are produced by the future parser's resource and relationship expressions.&lt;/p>" name="include"/>
<functions documentation="&lt;p>Applies a parameterized block to each element in a sequence of entries from the first argument and returns an array with the result of each invocation of the parameterized block.&lt;/p>&lt;p>This function takes two mandatory arguments: the first should be an Array, Hash, or of Enumerable type (integer, Integer range, or String), and the second a parameterized block as produced by the puppet syntax:&lt;/p>&lt;pre> $a.map |$x| { ... }&#xA; map($a) |$x| { ... }&#xA;&#xA;&lt;/pre>&lt;p>When the first argument &lt;tt>$a&lt;/tt> is an Array or of enumerable type, the block is called with each entry in turn. When the first argument is a hash the entry is an array with &lt;tt>[key, value]&lt;/tt>.&lt;/p>&lt;p>Example Using map with two arguments&lt;/p>&lt;pre> # Turns hash into array of values&#xA; $a.map |$x|{ $x[1] }&#xA;&#xA; # Turns hash into array of keys&#xA; $a.map |$x| { $x[0] }&#xA;&#xA;&lt;/pre>&lt;p>When using a block with 2 parameters, the element's index (starting from 0) for an array, and the key for a hash is given to the block's first parameter, and the value is given to the block's second parameter.args.&lt;/p>&lt;p>Example Using map with two arguments&lt;/p>&lt;pre> # Turns hash into array of values&#xA; $a.map |$key,$val|{ $val }&#xA;&#xA; # Turns hash into array of keys&#xA; $a.map |$key,$val|{ $key }&#xA;&#xA;&lt;/pre>&lt;ul>&lt;li>&lt;p>since 3.4 for Array and Hash&lt;/p>&lt;/li>&lt;li>&lt;p>since 3.5 for other enumerables, and support for blocks with 2 parameters&lt;/p>&lt;/li>&lt;li>&lt;p>note requires &lt;tt>parser = future&lt;/tt>&lt;/p>&lt;/li>&lt;/ul>" name="map" rValue="true"/>
<functions documentation="&lt;p>Returns a MD5 hash value from a provided string.&lt;/p>" name="md5" rValue="true"/>
<functions documentation="&lt;p>Quote and concatenate arguments for use in Bourne shell.&lt;/p>&lt;p>Each argument is quoted separately, and then all are concatenated with spaces. If an argument is an array, the elements of that array is interpolated within the rest of the arguments; this makes it possible to have an array of arguments and pass that array to shellquote instead of having to specify each argument individually in the call.&lt;/p>" name="shellquote" rValue="true"/>
<functions documentation="&lt;p>Split a string variable into an array using the specified split regexp.&lt;/p>&lt;p>&lt;b>Example:&lt;/b>&lt;/p>&lt;pre> $string = 'v1.v2:v3.v4'&#xA; $array_var1 = split($string, ':')&#xA; $array_var2 = split($string, '[.]')&#xA; $array_var3 = split($string, '[.:]')&#xA;&#xA;&lt;/pre>&lt;p>&lt;tt>$array&lt;i>var1&lt;/tt> now holds the result &lt;tt>['v1.v2', 'v3.v4']&lt;/tt>, while &lt;tt>$array&lt;/i>var2&lt;/tt> holds &lt;tt>['v1', 'v2:v3', 'v4']&lt;/tt>, and &lt;tt>$array_var3&lt;/tt> holds &lt;tt>['v1', 'v2', 'v3', 'v4']&lt;/tt>.&lt;/p>&lt;p>Note that in the second example, we split on a literal string that contains a regexp meta-character (.), which must be escaped. A simple way to do that for a single character is to enclose it in square brackets; a backslash will also escape a single character.&lt;/p>" name="split" rValue="true"/>
<functions documentation="&lt;p>Evaluates an Embedded Puppet Template (EPP) string and returns the rendered text result as a String.&lt;/p>&lt;p>EPP support the following tags:&lt;/p>&lt;ul>&lt;li>&lt;p>&lt;tt>&lt;%= puppet expression %>&lt;/tt> - This tag renders the value of the expression it contains.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>&lt;% puppet expression(s) %>&lt;/tt> - This tag will execute the expression(s) it contains, but renders nothing.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>&lt;%# comment %>&lt;/tt> - The tag and its content renders nothing.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>&lt;%%&lt;/tt> or &lt;tt>%%>&lt;/tt> - Renders a literal &lt;tt>&lt;%&lt;/tt> or &lt;tt>%>&lt;/tt> respectively.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>&lt;%-&lt;/tt> - Same as &lt;tt>&lt;%&lt;/tt> but suppresses any leading whitespace.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>-%>&lt;/tt> - Same as &lt;tt>%>&lt;/tt> but suppresses any trailing whitespace on the same line (including line break).&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>&lt;%- |parameters| -%>&lt;/tt> - When placed as the first tag declares the template's parameters.&lt;/p>&lt;/li>&lt;/ul>&lt;p>Inline EPP supports the following visibilities of variables in scope which depends on how EPP parameters are used - see further below:&lt;/p>&lt;ul>&lt;li>&lt;p>Global scope (i.e. top + node scopes) - global scope is always visible&lt;/p>&lt;/li>&lt;li>&lt;p>Global + Enclosing scope - if the EPP template does not declare parameters, and no arguments are given&lt;/p>&lt;/li>&lt;li>&lt;p>Global + all given arguments - if the EPP template does not declare parameters, and arguments are given&lt;/p>&lt;/li>&lt;li>&lt;p>Global + declared parameters - if the EPP declares parameters, given argument names must match&lt;/p>&lt;/li>&lt;/ul>&lt;p>EPP supports parameters by placing an optional parameter list as the very first element in the EPP. As an example, &lt;tt>&lt;%- |$x, $y, $z='unicorn'| -%>&lt;/tt> when placed first in the EPP text declares that the parameters &lt;tt>x&lt;/tt> and &lt;tt>y&lt;/tt> must be given as template arguments when calling &lt;tt>inline_epp&lt;/tt>, and that &lt;tt>z&lt;/tt> if not given as a template argument defaults to &lt;tt>'unicorn'&lt;/tt>. Template parameters are available as variables, e.g.arguments &lt;tt>$x&lt;/tt>, &lt;tt>$y&lt;/tt> and &lt;tt>$z&lt;/tt> in the example. Note that &lt;tt>&lt;%-&lt;/tt> must be used or any leading whitespace will be interpreted as text&lt;/p>&lt;p>Arguments are passed to the template by calling &lt;tt>inline&lt;i>epp&lt;/tt> with a Hash as the last argument, where parameters are bound to values, e.g. &lt;tt>inline&lt;/i>epp('...', {'x'=>10, 'y'=>20})&lt;/tt>. Excess arguments may be given (i.e. undeclared parameters) only if the EPP templates does not declare any parameters at all. Template parameters shadow variables in outer scopes.&lt;/p>&lt;p>Note: An inline template is best stated using a single-quoted string, or a heredoc since a double-quoted string is subject to expression interpolation before the string is parsed as an EPP template. Here are examples (using heredoc to define the EPP text):&lt;/p>&lt;pre> # produces 'Hello local variable world!'&#xA; $x ='local variable'&#xA; inline_epptemplate(@(END:epp))&#xA; &lt;%- |$x| -%>&#xA; Hello &lt;%= $x %> world!&#xA; END&#xA;&#xA; # produces 'Hello given argument world!'&#xA; $x ='local variable world'&#xA; inline_epptemplate(@(END:epp), { x =>'given argument'})&#xA; &lt;%- |$x| -%>&#xA; Hello &lt;%= $x %> world!&#xA; END&#xA;&#xA; # produces 'Hello given argument world!'&#xA; $x ='local variable world'&#xA; inline_epptemplate(@(END:epp), { x =>'given argument'})&#xA; &lt;%- |$x| -%>&#xA; Hello &lt;%= $x %>!&#xA; END&#xA;&#xA; # results in error, missing value for y&#xA; $x ='local variable world'&#xA; inline_epptemplate(@(END:epp), { x =>'given argument'})&#xA; &lt;%- |$x, $y| -%>&#xA; Hello &lt;%= $x %>!&#xA; END&#xA;&#xA; # Produces 'Hello given argument planet'&#xA; $x ='local variable world'&#xA; inline_epptemplate(@(END:epp), { x =>'given argument'})&#xA; &lt;%- |$x, $y=planet| -%>&#xA; Hello &lt;%= $x %> &lt;%= $y %>!&#xA; END&#xA;&#xA;&lt;/pre>&lt;ul>&lt;li>&lt;p>Since 3.5&lt;/p>&lt;/li>&lt;li>&lt;p>Requires Future Parser&lt;/p>&lt;/li>&lt;/ul>" name="inline_epp" rValue="true"/>
<functions documentation="&lt;p>Returns a hash value from a provided string using the digest_algorithm setting from the Puppet config file.&lt;/p>" name="digest" rValue="true"/>
<functions documentation="&lt;p>Returns a merged hash of matches from throughout the hierarchy. In cases where two or more hashes share keys, the hierarchy order determines which key/value pair will be used in the returned hash, with the pair in the highest priority data source winning.&lt;/p>&lt;p>In addition to the required &lt;tt>key&lt;/tt> argument, &lt;tt>hiera_hash&lt;/tt> accepts two additional arguments:&lt;/p>&lt;ul>&lt;li>&lt;p>a &lt;tt>default&lt;/tt> argument in the second position, providing a hash to be returned in the&lt;/p>&lt;/li>&lt;/ul>&lt;p>absence of any matches for the &lt;tt>key&lt;/tt> argument&lt;ul>&lt;li>&lt;p>an &lt;tt>override&lt;/tt> argument in the third position, providing a data source to insert at&lt;/p>&lt;/li>&lt;/ul>the top of the hierarchy, even if it would not ordinarily match during a Hiera data source lookup. If Hiera doesn't find a match in the named override data source, it will continue to search through the rest of the hierarchy.&lt;/p>&lt;p>&lt;tt>hiera_hash&lt;/tt> expects that all values returned will be hashes. If any of the values found in the data sources are strings or arrays, puppet will raise a type mismatch error.&lt;/p>&lt;p>More thorough examples of &lt;tt>hiera_hash&lt;/tt> are available at: &lt;http://docs.puppetlabs.com/hiera/1/puppet.html#hiera-lookup-functions>&lt;/p>" name="hiera_hash" rValue="true"/>
<functions documentation="&lt;p>Performs a standard priority lookup and returns the most specific value for a given key. The returned value can be data of any type (strings, arrays, or hashes).&lt;/p>&lt;p>In addition to the required &lt;tt>key&lt;/tt> argument, &lt;tt>hiera&lt;/tt> accepts two additional arguments:&lt;/p>&lt;ul>&lt;li>&lt;p>a &lt;tt>default&lt;/tt> argument in the second position, providing a value to be returned in the absence of matches to the &lt;tt>key&lt;/tt> argument&lt;/p>&lt;/li>&lt;li>&lt;p>an &lt;tt>override&lt;/tt> argument in the third position, providing a data source to consult for matching values, even if it would not ordinarily be part of the matched hierarchy. If Hiera doesn't find a matching key in the named override data source, it will continue to search through the rest of the hierarchy.&lt;/p>&lt;/li>&lt;/ul>&lt;p>More thorough examples of &lt;tt>hiera&lt;/tt> are available at: &lt;http://docs.puppetlabs.com/hiera/1/puppet.html#hiera-lookup-functions>&lt;/p>" name="hiera" rValue="true"/>
<functions documentation="&lt;p>Usage: &lt;tt>fqdn_rand(MAX, [SEED])&lt;/tt>. MAX is required and must be a positive integer; SEED is optional and may be any number or string.&lt;/p>&lt;p>Generates a random whole number greater than or equal to 0 and less than MAX, combining the &lt;tt>$fqdn&lt;/tt> fact and the value of SEED for repeatable randomness. (That is, each node will get a different random number from this function, but a given node's result will be the same every time unless its hostname changes.)&lt;/p>&lt;p>This function is usually used for spacing out runs of resource-intensive cron tasks that run on many nodes, which could cause a thundering herd or degrade other services if they all fire at once. Adding a SEED can be useful when you have more than one such task and need several unrelated random numbers per node. (For example, &lt;tt>fqdn&lt;i>rand(30)&lt;/tt>, &lt;tt>fqdn&lt;/i>rand(30, 'expensive job 1')&lt;/tt>, and &lt;tt>fqdn_rand(30, 'expensive job 2')&lt;/tt> will produce totally different numbers.)&lt;/p>" name="fqdn_rand" rValue="true"/>
<functions documentation="&lt;p>Returns the given value if it is an instance of the given type, and raises an error otherwise. Optionally, if a block is given (accepting two parameters), it will be called instead of raising an error. This to enable giving the user richer feedback, or to supply a default value.&lt;/p>&lt;p>Example: assert that &lt;tt>$b&lt;/tt> is a non empty &lt;tt>String&lt;/tt> and assign to &lt;tt>$a&lt;/tt>:&lt;/p>&lt;pre>$a = assert_type(String[1], $b)&#xA;&#xA;&lt;/pre>&lt;p>Example using custom error message:&lt;/p>&lt;pre>$a = assert_type(String[1], $b) |$expected, $actual| {&#xA; fail('The name cannot be empty')&#xA;}&#xA;&#xA;&lt;/pre>&lt;p>Example, using a warning and a default:&lt;/p>&lt;pre>$a = assert_type(String[1], $b) |$expected, $actual| {&#xA; warning('Name is empty, using default')&#xA; 'anonymous'&#xA;}&#xA;&#xA;&lt;/pre>&lt;p>See the documentation for 'The Puppet Type System' for more information about types.&lt;ul>&lt;li>&lt;p>since Puppet 3.7&lt;/p>&lt;/li>&lt;li>&lt;p>requires future parser/evaluator&lt;/p>&lt;/li>&lt;/ul>&lt;/p>" name="assert_type" rValue="true"/>
<functions documentation="&lt;p>Determine whether a given class or resource type is defined. This function can also determine whether a specific resource has been declared, or whether a variable has been assigned a value (including undef...as opposed to never having been assigned anything). Returns true or false. Accepts class names, type names, resource references, and variable reference strings of the form '$name'. When more than one argument is supplied, defined() returns true if any are defined.&lt;/p>&lt;p> The &lt;tt>defined&lt;/tt> function checks both native and defined types, including types provided as plugins via modules. Types and classes are both checked using their names:&lt;/p>&lt;pre> defined(&quot;file&quot;)&#xA; defined(&quot;customtype&quot;)&#xA; defined(&quot;foo&quot;)&#xA; defined(&quot;foo::bar&quot;)&#xA; defined('$name')&#xA;&#xA;&lt;/pre>&lt;p> Resource declarations are checked using resource references, e.g. &lt;tt>defined( File['/tmp/myfile'] )&lt;/tt>. Checking whether a given resource has been declared is, unfortunately, dependent on the parse order of the configuration, and the following code will not work:&lt;/p>&lt;pre> if defined(File['/tmp/foo']) {&#xA; notify { &quot;This configuration includes the /tmp/foo file.&quot;:}&#xA; }&#xA; file { &quot;/tmp/foo&quot;:&#xA; ensure => present,&#xA; }&#xA;&#xA;&lt;/pre>&lt;p> However, this order requirement refers to parse order only, and ordering of resources in the configuration graph (e.g. with &lt;tt>before&lt;/tt> or &lt;tt>require&lt;/tt>) does not affect the behavior of &lt;tt>defined&lt;/tt>.&lt;/p>&lt;p> If the future parser is in effect, you may also search using types:&lt;/p>&lt;pre> defined(Resource['file','/some/file'])&#xA; defined(File['/some/file'])&#xA; defined(Class['foo'])&#xA;&#xA;&lt;/pre>&lt;ul>&lt;li>&lt;p>Since 2.7.0&lt;/p>&lt;/li>&lt;li>&lt;p>Since 3.6.0 variable reference and future parser types&lt;/p>&lt;/li>&lt;/ul>" name="defined" rValue="true"/>
<functions documentation="&lt;p>Compares two version numbers.&lt;/p>&lt;p>Prototype:&lt;/p>&lt;pre> $result = versioncmp(a, b)&#xA;&#xA;&lt;/pre>&lt;p>Where a and b are arbitrary version strings.&lt;/p>&lt;p>This function returns:&lt;/p>&lt;ul>&lt;li>&lt;p>&lt;tt>1&lt;/tt> if version a is greater than version b&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>0&lt;/tt> if the versions are equal&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>-1&lt;/tt> if version a is less than version b&lt;/p>&lt;/li>&lt;/ul>&lt;p>Example:&lt;/p>&lt;pre> if versioncmp('2.6-1', '2.4.5') > 0 {&#xA; notice('2.6-1 is > than 2.4.5')&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>This function uses the same version comparison algorithm used by Puppet's &lt;tt>package&lt;/tt> type.&lt;/p>" name="versioncmp" rValue="true"/>
<functions documentation="&lt;p>Looks up data defined using Puppet Bindings and Hiera. The function is callable with one to three arguments and optionally with a code block to further process the result.&lt;/p>&lt;p>The lookup function can be called in one of these ways:&lt;/p>&lt;pre> lookup(name)&#xA; lookup(name, type)&#xA; lookup(name, type, default)&#xA; lookup(options_hash)&#xA; lookup(name, options_hash)&#xA;&#xA;&lt;/pre>&lt;p>The function may optionally be called with a code block / lambda with the following signatures:&lt;/p>&lt;pre> lookup(...) |$result| { ... }&#xA; lookup(...) |$name, $result| { ... }&#xA; lookup(...) |$name, $result, $default| { ... }&#xA;&#xA;&lt;/pre>&lt;p>The longer signatures are useful when the block needs to raise an error (it can report the name), or if it needs to know if the given default value was selected.&lt;/p>&lt;p>The code block receives the following three arguments:&lt;/p>&lt;ul>&lt;li>&lt;p>The &lt;tt>$name&lt;/tt> is the last name that was looked up (&lt;b>the&lt;/b> name if only one name was looked up)&lt;/p>&lt;/li>&lt;li>&lt;p>The &lt;tt>$result&lt;/tt> is the looked up value (or the default value if not found).&lt;/p>&lt;/li>&lt;li>&lt;p>The &lt;tt>$default&lt;/tt> is the given default value (&lt;tt>undef&lt;/tt> if not given).&lt;/p>&lt;/li>&lt;/ul>&lt;p>The block, if present, is called with the result from the lookup. The value produced by the block is also what is produced by the &lt;tt>lookup&lt;/tt> function. When a block is used, it is the users responsibility to call &lt;tt>error&lt;/tt> if the result does not meet additional criteria, or if an undef value is not acceptable. If a value is not found, and a default has been specified, the default value is given to the block.&lt;/p>&lt;p>The content of the options hash is:&lt;/p>&lt;ul>&lt;li>&lt;p>&lt;tt>name&lt;/tt> - The name or array of names to lookup (first found is returned)&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>type&lt;/tt> - The type to assert (a Type or a type specification in string form)&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>default&lt;/tt> - The default value if there was no value found (must comply with the data type)&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>accept_undef&lt;/tt> - (default &lt;tt>false&lt;/tt>) An &lt;tt>undef&lt;/tt> result is accepted if this options is set to &lt;tt>true&lt;/tt>.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>override&lt;/tt> - a hash with map from names to values that are used instead of the underlying bindings. If the name is found here it wins. Defaults to an empty hash.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>extra&lt;/tt> - a hash with map from names to values that are used as a last resort to obtain a value. Defaults to an empty hash.&lt;/p>&lt;/li>&lt;/ul>&lt;p>When the call is on the form &lt;tt>lookup(name, options&lt;i>hash)&lt;/tt>, or &lt;tt>lookup(name, type, options&lt;/i>hash)&lt;/tt>, the given name argument wins over the &lt;tt>options_hash['name']&lt;/tt>.&lt;/p>&lt;p>The search order is &lt;tt>override&lt;/tt> (if given), then &lt;tt>binder&lt;/tt>, then &lt;tt>hiera&lt;/tt> and finally &lt;tt>extra&lt;/tt> (if given). The first to produce a value other than undef for a given name wins.&lt;/p>&lt;p>The type specification is one of:&lt;/p>&lt;pre>* A type in the Puppet Type System, e.g.:&#xA; * `Integer`, an integral value with optional range e.g.:&#xA; * `Integer[0, default]` - 0 or positive&#xA; * `Integer[default, -1]` - negative,&#xA; * `Integer[1,100]` - value between 1 and 100 inclusive&#xA; * `String`- any string&#xA; * `Float` - floating point number (same signature as for Integer for `Integer` ranges)&#xA; * `Boolean` - true of false (strict)&#xA; * `Array` - an array (of Data by default), or parameterized as `Array[&lt;element_type>]`, where&#xA; `&lt;element_type>` is the expected type of elements&#xA; * `Hash`, - a hash (of default `Literal` keys and `Data` values), or parameterized as&#xA; `Hash[&lt;value_type>]`, `Hash[&lt;key_type>, &lt;value_type>]`, where `&lt;key_type>`, and&#xA; `&lt;value_type>` are the types of the keys and values respectively&#xA; (key is `Literal` by default).&#xA; * `Data` - abstract type representing any `Literal`, `Array[Data]`, or `Hash[Literal, Data]`&#xA; * `Pattern[&lt;p1>, &lt;p2>, ..., &lt;pn>]` - an enumeration of valid patterns (one or more) where&#xA; a pattern is a regular expression string or regular expression,&#xA; e.g. `Pattern['.com$', '.net$']`, `Pattern[/[a-z]+[0-9]+/]`&#xA; * `Enum[&lt;s1>, &lt;s2>, ..., &lt;sn>]`, - an enumeration of exact string values (one or more)&#xA; e.g. `Enum[blue, red, green]`.&#xA; * `Variant[&lt;t1>, &lt;t2>,...&lt;tn>]` - matches one of the listed types (at least one must be given)&#xA; e.g. `Variant[Integer[8000,8999], Integer[20000, 99999]]` to accept a value in either range&#xA; * `Regexp`- a regular expression (i.e. the result is a regular expression, not a string&#xA; matching a regular expression).&#xA;* A string containing a type description - one of the types as shown above but in string form.&#xA;&#xA;&lt;/pre>&lt;p>If the function is called without specifying a default value, and nothing is bound to the given name an error is raised unless the option &lt;tt>accept_undef&lt;/tt> is true. If a block is given it must produce an acceptable value (or call &lt;tt>error&lt;/tt>). If the block does not produce an acceptable value an error is raised.&lt;/p>&lt;p>Examples:&lt;/p>&lt;p>When called with one argument; &lt;strong>the name&lt;/strong>, it returns the bound value with the given name after having asserted it has the default datatype &lt;tt>Data&lt;/tt>:&lt;/p>&lt;pre> lookup('the_name')&#xA;&#xA;&lt;/pre>&lt;p>When called with two arguments; &lt;strong>the name&lt;/strong>, and &lt;strong>the expected type&lt;/strong>, it returns the bound value with the given name after having asserted it has the given data type ('String' in the example):&lt;/p>&lt;pre> lookup('the_name', 'String') # 3.x&#xA; lookup('the_name', String) # parser future&#xA;&#xA;&lt;/pre>&lt;p>When called with three arguments, &lt;strong>the name&lt;/strong>, the &lt;strong>expected type&lt;/strong>, and a &lt;strong>default&lt;/strong>, it returns the bound value with the given name, or the default after having asserted the value has the given data type (&lt;tt>String&lt;/tt> in the example above):&lt;/p>&lt;pre> lookup('the_name', 'String', 'Fred') # 3x&#xA; lookup('the_name', String, 'Fred') # parser future&#xA;&#xA;&lt;/pre>&lt;p>Using a lambda to process the looked up result - asserting that it starts with an upper case letter:&lt;/p>&lt;pre> # only with parser future&#xA; lookup('the_size', Integer[1,100]) |$result| {&#xA; if $large_value_allowed and $result > 10&#xA; { error 'Values larger than 10 are not allowed'}&#xA; $result&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>Including the name in the error&lt;/p>&lt;pre> # only with parser future&#xA; lookup('the_size', Integer[1,100]) |$name, $result| {&#xA; if $large_value_allowed and $result > 10&#xA; { error 'The bound value for '${name}' can not be larger than 10 in this configuration'}&#xA; $result&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>When using a block, the value it produces is also asserted against the given type, and it may not be &lt;tt>undef&lt;/tt> unless the option &lt;tt>'accept_undef'&lt;/tt> is &lt;tt>true&lt;/tt>.&lt;/p>&lt;p>All options work as the corresponding (direct) argument. The &lt;tt>first&lt;i>found&lt;/tt> option and &lt;tt>accept&lt;/i>undef&lt;/tt> are however only available as options.&lt;/p>&lt;p>Using first_found semantics option to return the first name that has a bound value:&lt;/p>&lt;pre> lookup(['apache::port', 'nginx::port'], 'Integer', 80)&#xA;&#xA;&lt;/pre>&lt;p>If you want to make lookup return undef when no value was found instead of raising an error:&lt;/p>&lt;pre> $are_you_there = lookup('peekaboo', { accept_undef => true} )&#xA; $are_you_there = lookup('peekaboo', { accept_undef => true}) |$result| { $result }&#xA;&lt;/pre>" name="lookup" rValue="true"/>
<functions documentation="&lt;p>Perform printf-style formatting of text.&lt;/p>&lt;p>The first parameter is format string describing how the rest of the parameters should be formatted. See the documentation for the &lt;tt>Kernel::sprintf&lt;/tt> function in Ruby for all the details.&lt;/p>" name="sprintf" rValue="true"/>
<functions documentation="&lt;p>Applies a parameterized block to each element in a sequence of entries from the first argument and returns an array or hash (same type as left operand for array/hash, and array for other enumerable types) with the entries for which the block evaluates to &lt;tt>true&lt;/tt>.&lt;/p>&lt;p> This function takes two mandatory arguments: the first should be an Array, a Hash, or an Enumerable object (integer, Integer range, or String), and the second a parameterized block as produced by the puppet syntax:&lt;/p>&lt;pre> $a.filter |$x| { ... }&#xA; filter($a) |$x| { ... }&#xA;&#xA;&lt;/pre>&lt;p> When the first argument is something other than a Hash, the block is called with each entry in turn. When the first argument is a Hash the entry is an array with &lt;tt>[key, value]&lt;/tt>.&lt;/p>&lt;p> Example Using filter with one parameter&lt;/p>&lt;pre> # selects all that end with berry&#xA; $a = [&quot;raspberry&quot;, &quot;blueberry&quot;, &quot;orange&quot;]&#xA; $a.filter |$x| { $x =~ /berry$/ } # rasberry, blueberry&#xA;&#xA;&lt;/pre>&lt;p> If the block defines two parameters, they will be set to &lt;tt>index, value&lt;/tt> (with index starting at 0) for all enumerables except Hash, and to &lt;tt>key, value&lt;/tt> for a Hash.&lt;/p>&lt;p>Example Using filter with two parameters&lt;/p>&lt;pre> # selects all that end with 'berry' at an even numbered index&#xA; $a = [&quot;raspberry&quot;, &quot;blueberry&quot;, &quot;orange&quot;]&#xA; $a.filter |$index, $x| { $index % 2 == 0 and $x =~ /berry$/ } # raspberry&#xA;&#xA; # selects all that end with 'berry' and value >= 1&#xA; $a = {&quot;raspberry&quot;=>0, &quot;blueberry&quot;=>1, &quot;orange&quot;=>1}&#xA; $a.filter |$key, $x| { $x =~ /berry$/ and $x >= 1 } # blueberry&#xA;&#xA;&lt;/pre>&lt;ul>&lt;li>&lt;p>since 3.4 for Array and Hash&lt;/p>&lt;/li>&lt;li>&lt;p>since 3.5 for other enumerables&lt;/p>&lt;/li>&lt;li>&lt;p>note requires &lt;tt>parser = future&lt;/tt>&lt;/p>&lt;/li>&lt;/ul>" name="filter"/>
<functions documentation="&lt;p>Applies a parameterized block to each &lt;i>slice&lt;/i> of elements in a sequence of selected entries from the first argument and returns the first argument, or if no block is given returns a new array with a concatenation of the slices.&lt;/p>&lt;p>This function takes two mandatory arguments: the first, &lt;tt>$a&lt;/tt>, should be an Array, Hash, or something of enumerable type (integer, Integer range, or String), and the second, &lt;tt>$n&lt;/tt>, the number of elements to include in each slice. The optional third argument should be a a parameterized block as produced by the puppet syntax:&lt;/p>&lt;pre> $a.slice($n) |$x| { ... }&#xA; slice($a) |$x| { ... }&#xA;&#xA;&lt;/pre>&lt;p>The parameterized block should have either one parameter (receiving an array with the slice), or the same number of parameters as specified by the slice size (each parameter receiving its part of the slice). In case there are fewer remaining elements than the slice size for the last slice it will contain the remaining elements. When the block has multiple parameters, excess parameters are set to undef for an array or enumerable type, and to empty arrays for a Hash.&lt;/p>&lt;pre> $a.slice(2) |$first, $second| { ... }&#xA;&#xA;&lt;/pre>&lt;p>When the first argument is a Hash, each &lt;tt>key,value&lt;/tt> entry is counted as one, e.g, a slice size of 2 will produce an array of two arrays with key, and value.&lt;/p>&lt;p>Example Using slice with Hash&lt;/p>&lt;pre> $a.slice(2) |$entry| { notice &quot;first ${$entry[0]}, second ${$entry[1]}&quot; }&#xA; $a.slice(2) |$first, $second| { notice &quot;first ${first}, second ${second}&quot; }&#xA;&#xA;&lt;/pre>&lt;p>When called without a block, the function produces a concatenated result of the slices.&lt;/p>&lt;p>Example Using slice without a block&lt;/p>&lt;pre> slice([1,2,3,4,5,6], 2) # produces [[1,2], [3,4], [5,6]]&#xA; slice(Integer[1,6], 2) # produces [[1,2], [3,4], [5,6]]&#xA; slice(4,2) # produces [[0,1], [2,3]]&#xA; slice('hello',2) # produces [[h, e], [l, l], [o]]&#xA;&#xA;&lt;/pre>&lt;ul>&lt;li>&lt;p>since 3.2 for Array and Hash&lt;/p>&lt;/li>&lt;li>&lt;p>since 3.5 for additional enumerable types&lt;/p>&lt;/li>&lt;li>&lt;p>note requires &lt;tt>parser = future&lt;/tt>.&lt;/p>&lt;/li>&lt;/ul>" name="slice" rValue="true"/>
<functions documentation="&lt;p>Log a message on the server at level debug.&lt;/p>" name="debug"/>
<functions documentation="&lt;p>Log a message on the server at level info.&lt;/p>" name="info"/>
<functions documentation="&lt;p>Log a message on the server at level notice.&lt;/p>" name="notice"/>
<functions documentation="&lt;p>Log a message on the server at level warning.&lt;/p>" name="warning"/>
<functions documentation="&lt;p>Log a message on the server at level err.&lt;/p>" name="err"/>
<functions documentation="&lt;p>Log a message on the server at level alert.&lt;/p>" name="alert"/>
<functions documentation="&lt;p>Log a message on the server at level emerg.&lt;/p>" name="emerg"/>
<functions documentation="&lt;p>Log a message on the server at level crit.&lt;/p>" name="crit"/>
<types name="host" documentation="&lt;p>Installs and manages host entries. For most systems, these entries will just be in &lt;tt>/etc/hosts&lt;/tt>, but some systems (notably OS X) will have different solutions.&lt;/p>">
<properties name="target" documentation="&lt;p>The file in which to store service information. Only used by those providers that write to disk. On most systems this defaults to &lt;tt>/etc/hosts&lt;/tt>.&lt;/p>"/>
<properties name="comment" documentation="&lt;p>A comment that will be attached to the line with a # character.&lt;/p>"/>
<properties name="host_aliases" documentation="&lt;p>Any aliases the host might have. Multiple values must be specified as an array.&lt;/p>"/>
<properties name="ip" documentation="&lt;p>The host's IP address, IPv4 or IPv6.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The host name.&lt;/p>" namevar="true"/>
<parameters name="ensure" documentation=""/>
</types>
<types name="ssh_authorized_key" documentation="&lt;p>Manages SSH authorized keys. Currently only type 2 keys are supported.&lt;/p>&lt;p>In their native habitat, SSH keys usually appear as a single long line. This resource type requires you to split that line into several attributes. Thus, a key that appears in your &lt;tt>~/.ssh/id_rsa.pub&lt;/tt> file like this...&lt;/p>&lt;pre> ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAy5mtOAMHwA2ZAIfW6Ap70r+I4EclYHEec5xIN59ROUjss23Skb1OtjzYpVPaPH8mSdSmsN0JHaBLiRcu7stl4O8D8zA4mz/vw32yyQ/Kqaxw8l0K76k6t2hKOGqLTY4aFbFISV6GDh7MYLn8KU7cGp96J+caO5R5TqtsStytsUhSyqH+iIDh4e4+BrwTc6V4Y0hgFxaZV5d18mLA4EPYKeG5+zyBCVu+jueYwFqM55E0tHbfiaIN9IzdLV+7NEEfdLkp6w2baLKPqWUBmuvPF1Mn3FwaFLjVsMT3GQeMue6b3FtUdTDeyAYoTxrsRo/WnDkS6Pa3YhrFwjtUqXfdaQ== nick@magpie.puppetlabs.lan&#xA;&#xA;&lt;/pre>&lt;p>...would translate to the following resource:&lt;/p>&lt;pre> ssh_authorized_key { 'nick@magpie.puppetlabs.lan':&#xA; user => 'nick',&#xA; type => 'ssh-rsa',&#xA; key => 'AAAAB3NzaC1yc2EAAAABIwAAAQEAy5mtOAMHwA2ZAIfW6Ap70r+I4EclYHEec5xIN59ROUjss23Skb1OtjzYpVPaPH8mSdSmsN0JHaBLiRcu7stl4O8D8zA4mz/vw32yyQ/Kqaxw8l0K76k6t2hKOGqLTY4aFbFISV6GDh7MYLn8KU7cGp96J+caO5R5TqtsStytsUhSyqH+iIDh4e4+BrwTc6V4Y0hgFxaZV5d18mLA4EPYKeG5+zyBCVu+jueYwFqM55E0tHbfiaIN9IzdLV+7NEEfdLkp6w2baLKPqWUBmuvPF1Mn3FwaFLjVsMT3GQeMue6b3FtUdTDeyAYoTxrsRo/WnDkS6Pa3YhrFwjtUqXfdaQ==',&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>To ensure that only the currently approved keys are present, you can purge unmanaged SSH keys on a per-user basis. Do this with the &lt;tt>user&lt;/tt> resource type's &lt;tt>purge&lt;i>ssh&lt;/i>keys&lt;/tt> attribute:&lt;/p>&lt;pre> user { 'nick':&#xA; ensure => present,&#xA; purge_ssh_keys => true,&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>This will remove any keys in &lt;tt>~/.ssh/authorized&lt;i>keys&lt;/tt> that aren't being managed with &lt;tt>ssh&lt;/i>authorized_key&lt;/tt> resources. See the documentation of the &lt;tt>user&lt;/tt> type for more details.&lt;/p>&lt;p>&lt;strong>Autorequires:&lt;/strong> If Puppet is managing the user account in which this SSH key should be installed, the &lt;tt>ssh&lt;i>authorized&lt;/i>key&lt;/tt> resource will autorequire that user.&lt;/p>">
<properties name="target" documentation="&lt;p>The absolute filename in which to store the SSH key. This property is optional and should only be used in cases where keys are stored in a non-standard location (i.e.&lt;tt> not in &lt;/tt>~user/.ssh/authorized_keys`).&lt;/p>"/>
<properties name="type" documentation="&lt;p>The encryption type used.&lt;/p>"/>
<properties name="user" documentation="&lt;p>The user account in which the SSH key should be installed. The resource will autorequire this user if it is being managed as a &lt;tt>user&lt;/tt> resource.&lt;/p>"/>
<properties name="key" documentation="&lt;p>The public key itself; generally a long string of hex characters. The &lt;tt>key&lt;/tt> attribute may not contain whitespace.&lt;/p>&lt;p>Make sure to omit the following in this attribute (and specify them in other attributes):&lt;/p>&lt;ul>&lt;li>&lt;p>Key headers (e.g. 'ssh-rsa') --- put these in the &lt;tt>type&lt;/tt> attribute.&lt;/p>&lt;/li>&lt;li>&lt;p>Key identifiers / comments (e.g. 'joe@joescomputer.local') --- put these in the &lt;tt>name&lt;/tt> attribute/resource title.&lt;/p>&lt;/li>&lt;/ul>"/>
<properties name="options" documentation="&lt;p>Key options; see sshd(8) for possible values. Multiple values should be specified as an array.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The SSH key comment. This attribute is currently used as a system-wide primary key and therefore has to be unique.&lt;/p>" namevar="true"/>
<parameters name="ensure" documentation=""/>
</types>
<types name="zone" documentation="&lt;p>Manages Solaris zones.&lt;/p>&lt;p>&lt;strong>Autorequires:&lt;/strong> If Puppet is managing the directory specified as the root of the zone's filesystem (with the &lt;tt>path&lt;/tt> attribute), the zone resource will autorequire that directory.&lt;/p>">
<properties name="shares" documentation="&lt;p>Number of FSS CPU shares allocated to the zone.&lt;/p>"/>
<properties name="dataset" documentation="&lt;p>The list of datasets delegated to the non-global zone from the global zone. All datasets must be zfs filesystem names which are different from the mountpoint.&lt;/p>"/>
<properties name="pool" documentation="&lt;p>The resource pool for this zone.&lt;/p>"/>
<properties name="autoboot" documentation="&lt;p>Whether the zone should automatically boot.&lt;/p>"/>
<properties name="path" documentation="&lt;p>The root of the zone's filesystem. Must be a fully qualified file name. If you include &lt;tt>%s&lt;/tt> in the path, then it will be replaced with the zone's name. Currently, you cannot use Puppet to move a zone. Consequently this is a readonly property.&lt;/p>"/>
<properties name="inherit" documentation="&lt;p>The list of directories that the zone inherits from the global zone. All directories must be fully qualified.&lt;/p>"/>
<properties name="iptype" documentation="&lt;p>The IP stack type of the zone.&lt;/p>"/>
<properties name="ip" documentation="&lt;p>The IP address of the zone. IP addresses &lt;strong>must&lt;/strong> be specified with an interface, and may optionally be specified with a default router (sometimes called a defrouter). The interface, IP address, and default router should be separated by colons to form a complete IP address string. For example: &lt;tt>bge0:192.168.178.200&lt;/tt> would be a valid IP address string without a default router, and &lt;tt>bge0:192.168.178.200:192.168.178.1&lt;/tt> adds a default router to it.&lt;/p>&lt;p>For zones with multiple interfaces, the value of this attribute should be an array of IP address strings (each of which must include an interface and may include a default router).&lt;/p>"/>
<parameters name="id" documentation="&lt;p>The numerical ID of the zone. This number is autogenerated and cannot be changed.&lt;/p>"/>
<parameters name="create_args" documentation="&lt;p>Arguments to the &lt;tt>zonecfg&lt;/tt> create command. This can be used to create branded zones.&lt;/p>"/>
<parameters name="clone" documentation="&lt;p>Instead of installing the zone, clone it from another zone. If the zone root resides on a zfs file system, a snapshot will be used to create the clone; if it resides on a ufs filesystem, a copy of the zone will be used. The zone from which you clone must not be running.&lt;/p>"/>
<parameters name="install_args" documentation="&lt;p>Arguments to the &lt;tt>zoneadm&lt;/tt> install command. This can be used to create branded zones.&lt;/p>"/>
<parameters name="sysidcfg" documentation="&lt;p>The text to go into the &lt;tt>sysidcfg&lt;/tt> file when the zone is first booted. The best way is to use a template:&lt;/p>&lt;pre> # $confdir/modules/site/templates/sysidcfg.erb&#xA; system_locale=en_US&#xA; timezone=GMT&#xA; terminal=xterms&#xA; security_policy=NONE&#xA; root_password=&lt;%= password %>&#xA; timeserver=localhost&#xA; name_service=DNS {domain_name=&lt;%= domain %> name_server=&lt;%= nameserver %>}&#xA; network_interface=primary {hostname=&lt;%= realhostname %>&#xA; ip_address=&lt;%= ip %>&#xA; netmask=&lt;%= netmask %>&#xA; protocol_ipv6=no&#xA; default_route=&lt;%= defaultroute %>}&#xA; nfs4_domain=dynamic&#xA;&#xA;&lt;/pre>&lt;p>And then call that:&lt;/p>&lt;pre> zone { myzone:&#xA; ip => &quot;bge0:192.168.0.23&quot;,&#xA; sysidcfg => template(&quot;site/sysidcfg.erb&quot;),&#xA; path => &quot;/opt/zones/myzone&quot;,&#xA; realhostname => &quot;fully.qualified.domain.name&quot;&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>The &lt;tt>sysidcfg&lt;/tt> only matters on the first booting of the zone, so Puppet only checks for it at that time.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The name of the zone.&lt;/p>" namevar="true"/>
<parameters name="realhostname" documentation="&lt;p>The actual hostname of the zone.&lt;/p>"/>
<parameters name="ensure" documentation="&lt;p>The running state of the zone. The valid states directly reflect the states that &lt;tt>zoneadm&lt;/tt> provides. The states are linear, in that a zone must be &lt;tt>configured&lt;/tt>, then &lt;tt>installed&lt;/tt>, and only then can be &lt;tt>running&lt;/tt>. Note also that &lt;tt>halt&lt;/tt> is currently used to stop zones.&lt;/p>"/>
</types>
<types name="notify" documentation="&lt;p>Sends an arbitrary message to the agent run-time log.&lt;/p>">
<properties name="message" documentation="&lt;p>The message to be sent to the log.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>An arbitrary tag for your own reference; the name of the message.&lt;/p>" namevar="true"/>
<parameters name="withpath" documentation="&lt;p>Whether to show the full object path. Defaults to false.&lt;/p>"/>
</types>
<types name="computer" documentation="&lt;p>Computer object management using DirectoryService on OS X.&lt;/p>&lt;p>Note that these are distinctly different kinds of objects to 'hosts', as they require a MAC address and can have all sorts of policy attached to them.&lt;/p>&lt;p>This provider only manages Computer objects in the local directory service domain, not in remote directories.&lt;/p>&lt;p>If you wish to manage &lt;tt>/etc/hosts&lt;/tt> file on Mac OS X, then simply use the host type as per other platforms.&lt;/p>&lt;p>This type primarily exists to create localhost Computer objects that MCX policy can then be attached to.&lt;/p>&lt;p>&lt;strong>Autorequires:&lt;/strong> If Puppet is managing the plist file representing a Computer object (located at &lt;tt>/var/db/dslocal/nodes/Default/computers/{name}.plist&lt;/tt>), the Computer resource will autorequire it.&lt;/p>">
<properties name="ip_address" documentation="&lt;p>The IP Address of the Computer object.&lt;/p>"/>
<properties name="en_address" documentation="&lt;p>The MAC address of the primary network interface. Must match en0.&lt;/p>"/>
<properties name="ensure" documentation="&lt;p>Control the existences of this computer record. Set this attribute to &lt;tt>present&lt;/tt> to ensure the computer record exists. Set it to &lt;tt>absent&lt;/tt> to delete any computer records with this name&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The authoritative 'short' name of the computer record.&lt;/p>" namevar="true"/>
<parameters name="realname" documentation="&lt;p>The 'long' name of the computer record.&lt;/p>"/>
</types>
<types name="file" documentation="&lt;p>Manages files, including their content, ownership, and permissions.&lt;/p>&lt;p>The &lt;tt>file&lt;/tt> type can manage normal files, directories, and symlinks; the type should be specified in the &lt;tt>ensure&lt;/tt> attribute.&lt;/p>&lt;p>File contents can be managed directly with the &lt;tt>content&lt;/tt> attribute, or downloaded from a remote source using the &lt;tt>source&lt;/tt> attribute; the latter can also be used to recursively serve directories (when the &lt;tt>recurse&lt;/tt> attribute is set to &lt;tt>true&lt;/tt> or &lt;tt>local&lt;/tt>). On Windows, note that file contents are managed in binary mode; Puppet never automatically translates line endings.&lt;/p>&lt;p>&lt;strong>Autorequires:&lt;/strong> If Puppet is managing the user or group that owns a file, the file resource will autorequire them. If Puppet is managing any parent directories of a file, the file resource will autorequire them.&lt;/p>">
<parameters name="sourceselect" documentation="&lt;p>Whether to copy all valid sources, or just the first one. This parameter only affects recursive directory copies; by default, the first valid source is the only one used, but if this parameter is set to &lt;tt>all&lt;/tt>, then all valid sources will have all of their contents copied to the local system. If a given file exists in more than one source, the version from the earliest source in the list will be used.&lt;/p>"/>
<parameters name="replace" documentation="&lt;p>Whether to replace a file or symlink that already exists on the local system but whose content doesn't match what the &lt;tt>source&lt;/tt> or &lt;tt>content&lt;/tt> attribute specifies. Setting this to false allows file resources to initialize files without overwriting future changes. Note that this only affects content; Puppet will still manage ownership and permissions. Defaults to &lt;tt>true&lt;/tt>.&lt;/p>"/>
<parameters name="show_diff" documentation="&lt;p>Whether to display differences when the file changes, defaulting to true. This parameter is useful for files that may contain passwords or other secret data, which might otherwise be included in Puppet reports or other insecure outputs. If the global &lt;tt>show_diff&lt;/tt> setting is false, then no diffs will be shown even if this parameter is true.&lt;/p>"/>
<parameters name="validate_replacement" documentation="&lt;p>The replacement string in a &lt;tt>validate_cmd&lt;/tt> that will be replaced with an input file name. Defaults to: &lt;tt>%&lt;/tt>&lt;/p>"/>
<parameters name="validate_cmd" documentation="&lt;p>A command for validating the file's syntax before replacing it. If Puppet would need to rewrite a file due to new &lt;tt>source&lt;/tt> or &lt;tt>content&lt;/tt>, it will check the new content's validity first. If validation fails, the file resource will fail.&lt;/p>&lt;p>This command must have a fully qualified path, and should contain a percent (&lt;tt>%&lt;/tt>) token where it would expect an input file. It must exit &lt;tt>0&lt;/tt> if the syntax is correct, and non-zero otherwise. The command will be run on the target system while applying the catalog, not on the puppet master.&lt;/p>&lt;p>Example:&lt;/p>&lt;pre> file { '/etc/apache2/apache2.conf':&#xA; content => 'example',&#xA; validate_cmd => '/usr/sbin/apache2 -t -f %',&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>This would replace apache2.conf only if the test returned true.&lt;/p>&lt;p>Note that if a validation command requires a &lt;tt>%&lt;/tt> as part of its text, you can specify a different placeholder token with the &lt;tt>validate_replacement&lt;/tt> attribute.&lt;/p>"/>
<parameters name="path" documentation="&lt;p>The path to the file to manage. Must be fully qualified.&lt;/p>&lt;p>On Windows, the path should include the drive letter and should use &lt;tt>/&lt;/tt> as the separator character (rather than &lt;tt>\\&lt;/tt>).&lt;/p>" namevar="true"/>
<parameters name="links" documentation="&lt;p>How to handle links during file actions. During file copying, &lt;tt>follow&lt;/tt> will copy the target file instead of the link, &lt;tt>manage&lt;/tt> will copy the link itself, and &lt;tt>ignore&lt;/tt> will just pass it by. When not copying, &lt;tt>manage&lt;/tt> and &lt;tt>ignore&lt;/tt> behave equivalently (because you cannot really ignore links entirely during local recursion), and &lt;tt>follow&lt;/tt> will manage the file to which the link points.&lt;/p>"/>
<parameters name="recurselimit" documentation="&lt;p>How far Puppet should descend into subdirectories, when using &lt;tt>ensure => directory&lt;/tt> and either &lt;tt>recurse => true&lt;/tt> or &lt;tt>recurse => remote&lt;/tt>. The recursion limit affects which files will be copied from the &lt;tt>source&lt;/tt> directory, as well as which files can be purged when &lt;tt>purge => true&lt;/tt>.&lt;/p>&lt;p>Setting &lt;tt>recurselimit => 0&lt;/tt> is the same as setting &lt;tt>recurse => false&lt;/tt> --- Puppet will manage the directory, but all of its contents will be treated as unmanaged.&lt;/p>&lt;p>Setting &lt;tt>recurselimit => 1&lt;/tt> will manage files and directories that are directly inside the directory, but will not manage the contents of any subdirectories.&lt;/p>&lt;p>Setting &lt;tt>recurselimit => 2&lt;/tt> will manage the direct contents of the directory, as well as the contents of the &lt;i>first&lt;/i> level of subdirectories.&lt;/p>&lt;p>And so on --- 3 will manage the contents of the second level of subdirectories, etc.&lt;/p>"/>
<parameters name="force" documentation="&lt;p>Perform the file operation even if it will destroy one or more directories. You must use &lt;tt>force&lt;/tt> in order to:&lt;/p>&lt;ul>&lt;li>&lt;p>&lt;tt>purge&lt;/tt> subdirectories&lt;/p>&lt;/li>&lt;li>&lt;p>Replace directories with files or links&lt;/p>&lt;/li>&lt;li>&lt;p>Remove a directory when &lt;tt>ensure => absent&lt;/tt>&lt;/p>&lt;/li>&lt;/ul>"/>
<parameters name="recurse" documentation="&lt;p>Whether to recursively manage the &lt;i>contents&lt;/i> of a directory. This attribute is only used when &lt;tt>ensure => directory&lt;/tt> is set. The allowed values are:&lt;/p>&lt;ul>&lt;li>&lt;p>&lt;tt>false&lt;/tt> --- The default behavior. The contents of the directory will not be automatically managed.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>remote&lt;/tt> --- If the &lt;tt>source&lt;/tt> attribute is set, Puppet will automatically manage the contents of the source directory (or directories), ensuring that equivalent files and directories exist on the target system and that their contents match.&lt;/p>&lt;/li>&lt;/ul>&lt;pre>Using `remote` will disable the `purge` attribute, but results in faster&#xA;catalog application than `recurse => true`.&#xA;&#xA;The `source` attribute is mandatory when `recurse => remote`.&#xA;&lt;/pre>&lt;ul>&lt;li>&lt;p>&lt;tt>true&lt;/tt> --- If the &lt;tt>source&lt;/tt> attribute is set, this behaves similarly to &lt;tt>recurse => remote&lt;/tt>, automatically managing files from the source directory.&lt;/p>&lt;/li>&lt;/ul>&lt;pre>This also enables the `purge` attribute, which can delete unmanaged&#xA;files from a directory. See the description of `purge` for more details.&#xA;&#xA;The `source` attribute is not mandatory when using `recurse => true`, so you&#xA;can enable purging in directories where all files are managed individually.&#xA;&#xA;(Note: `inf` is a deprecated synonym for `true`.)&#xA;&#xA;&lt;/pre>&lt;p>By default, setting recurse to &lt;tt>remote&lt;/tt> or &lt;tt>true&lt;/tt> will manage &lt;i>all&lt;/i> subdirectories. You can use the &lt;tt>recurselimit&lt;/tt> attribute to limit the recursion depth.&lt;/p>"/>
<parameters name="purge" documentation="&lt;p>Whether unmanaged files should be purged. This option only makes sense when &lt;tt>ensure => directory&lt;/tt> and &lt;tt>recurse => true&lt;/tt>.&lt;/p>&lt;ul>&lt;li>&lt;p>When recursively duplicating an entire directory with the &lt;tt>source&lt;/tt> attribute, &lt;tt>purge => true&lt;/tt> will automatically purge any files that are not in the source directory.&lt;/p>&lt;/li>&lt;li>&lt;p>When managing files in a directory as individual resources, setting &lt;tt>purge => true&lt;/tt> will purge any files that aren't being specifically managed.&lt;/p>&lt;/li>&lt;/ul>&lt;p>If you have a filebucket configured, the purged files will be uploaded, but if you do not, this will destroy data.&lt;/p>&lt;p>Unless &lt;tt>force => true&lt;/tt> is set, purging will &lt;strong>not&lt;/strong> delete directories, although it will delete the files they contain.&lt;/p>&lt;p>If &lt;tt>recurselimit&lt;/tt> is set and you aren't using &lt;tt>force => true&lt;/tt>, purging will obey the recursion limit; files in any subdirectories deeper than the limit will be treated as unmanaged and left alone.&lt;/p>"/>
<parameters name="ignore" documentation="&lt;p>A parameter which omits action on files matching specified patterns during recursion. Uses Ruby's builtin globbing engine, so shell metacharacters are fully supported, e.g. &lt;tt>[a-z]&lt;b>&lt;/tt>. Matches that would descend into the directory structure are ignored, e.g., &lt;tt>&lt;/b>/*&lt;/tt>.&lt;/p>"/>
<parameters name="backup" documentation="&lt;p>Whether (and how) file content should be backed up before being replaced. This attribute works best as a resource default in the site manifest (&lt;tt>File { backup => main }&lt;/tt>), so it can affect all file resources.&lt;/p>&lt;ul>&lt;li>&lt;p>If set to &lt;tt>false&lt;/tt>, file content won't be backed up.&lt;/p>&lt;/li>&lt;li>&lt;p>If set to a string beginning with &lt;tt>.&lt;/tt> (e.g., &lt;tt>.puppet-bak&lt;/tt>), Puppet will use copy the file in the same directory with that value as the extension of the backup. (A value of &lt;tt>true&lt;/tt> is a synonym for &lt;tt>.puppet-bak&lt;/tt>.)&lt;/p>&lt;/li>&lt;li>&lt;p>If set to any other string, Puppet will try to back up to a filebucket with that title. See the &lt;tt>filebucket&lt;/tt> resource type for more details. (This is the preferred method for backup, since it can be centralized and queried.)&lt;/p>&lt;/li>&lt;/ul>&lt;p>Default value: &lt;tt>puppet&lt;/tt>, which backs up to a filebucket of the same name. (Puppet automatically creates a &lt;strong>local&lt;/strong> filebucket named &lt;tt>puppet&lt;/tt> if one doesn't already exist.)&lt;/p>&lt;p>Backing up to a local filebucket isn't particularly useful. If you want to make organized use of backups, you will generally want to use the puppet master server's filebucket service. This requires declaring a filebucket resource and a resource default for the &lt;tt>backup&lt;/tt> attribute in site.pp:&lt;/p>&lt;pre> # /etc/puppet/manifests/site.pp&#xA; filebucket { 'main':&#xA; path => false, # This is required for remote filebuckets.&#xA; server => 'puppet.example.com', # Optional; defaults to the configured puppet master.&#xA; }&#xA;&#xA; File { backup => main, }&#xA;&#xA;&lt;/pre>&lt;p>If you are using multiple puppet master servers, you will want to centralize the contents of the filebucket. Either configure your load balancer to direct all filebucket traffic to a single master, or use something like an out-of-band rsync task to synchronize the content on all masters.&lt;/p>"/>
</types>
<types name="sshkey" documentation="&lt;p>Installs and manages ssh host keys. At this point, this type only knows how to install keys into &lt;tt>/etc/ssh/ssh&lt;i>known&lt;/i>hosts&lt;/tt>. See the &lt;tt>ssh&lt;i>authorized&lt;/i>key&lt;/tt> type to manage authorized keys.&lt;/p>">
<properties name="target" documentation="&lt;p>The file in which to store the ssh key. Only used by the &lt;tt>parsed&lt;/tt> provider.&lt;/p>"/>
<properties name="type" documentation="&lt;p>The encryption type used. Probably ssh-dss or ssh-rsa.&lt;/p>"/>
<properties name="key" documentation="&lt;p>The key itself; generally a long string of uuencoded characters.&lt;/p>"/>
<properties name="host_aliases" documentation="&lt;p>Any aliases the host might have. Multiple values must be specified as an array.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The host name that the key is associated with.&lt;/p>" namevar="true"/>
<parameters name="ensure" documentation=""/>
</types>
<types name="cron" documentation="&lt;p>Installs and manages cron jobs. Every cron resource created by Puppet requires a command and at least one periodic attribute (hour, minute, month, monthday, weekday, or special). While the name of the cron job is not part of the actual job, the name is stored in a comment beginning with &lt;tt># Puppet Name: &lt;/tt>. These comments are used to match crontab entries created by Puppet with cron resources.&lt;/p>&lt;p>If an existing crontab entry happens to match the scheduling and command of a cron resource that has never been synched, Puppet will defer to the existing crontab entry and will not create a new entry tagged with the &lt;tt># Puppet Name: &lt;/tt> comment.&lt;/p>&lt;p>Example:&lt;/p>&lt;pre> cron { logrotate:&#xA; command => &quot;/usr/sbin/logrotate&quot;,&#xA; user => root,&#xA; hour => 2,&#xA; minute => 0&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>Note that all periodic attributes can be specified as an array of values:&lt;/p>&lt;pre> cron { logrotate:&#xA; command => &quot;/usr/sbin/logrotate&quot;,&#xA; user => root,&#xA; hour => [2, 4]&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>...or using ranges or the step syntax &lt;tt>*/2&lt;/tt> (although there's no guarantee that your &lt;tt>cron&lt;/tt> daemon supports these):&lt;/p>&lt;pre> cron { logrotate:&#xA; command => &quot;/usr/sbin/logrotate&quot;,&#xA; user => root,&#xA; hour => ['2-4'],&#xA; minute => '*/10'&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>An important note: &lt;i>the Cron type will not reset parameters that are removed from a manifest&lt;/i>. For example, removing a &lt;tt>minute => 10&lt;/tt> parameter will not reset the minute component of the associated cronjob to &lt;tt>*&lt;/tt>. These changes must be expressed by setting the parameter to &lt;tt>minute => absent&lt;/tt> because Puppet only manages parameters that are out of sync with manifest entries.&lt;/p>&lt;p>&lt;strong>Autorequires:&lt;/strong> If Puppet is managing the user account specified by the &lt;tt>user&lt;/tt> property of a cron resource, then the cron resource will autorequire that user.&lt;/p>">
<properties name="minute" documentation="&lt;p>The minute at which to run the cron job. Optional; if specified, must be between 0 and 59, inclusive.&lt;/p>"/>
<properties name="environment" documentation="&lt;p>Any environment settings associated with this cron job. They will be stored between the header and the job in the crontab. There can be no guarantees that other, earlier settings will not also affect a given cron job.&lt;/p>&lt;p>Also, Puppet cannot automatically determine whether an existing, unmanaged environment setting is associated with a given cron job. If you already have cron jobs with environment settings, then Puppet will keep those settings in the same place in the file, but will not associate them with a specific job.&lt;/p>&lt;p>Settings should be specified exactly as they should appear in the crontab, e.g., &lt;tt>PATH=/bin:/usr/bin:/usr/sbin&lt;/tt>.&lt;/p>"/>
<properties name="weekday" documentation="&lt;p>The weekday on which to run the command. Optional; if specified, must be between 0 and 7, inclusive, with 0 (or 7) being Sunday, or must be the name of the day (e.g., Tuesday).&lt;/p>"/>
<properties name="monthday" documentation="&lt;p>The day of the month on which to run the command. Optional; if specified, must be between 1 and 31.&lt;/p>"/>
<properties name="target" documentation="&lt;p>The name of the crontab file in which the cron job should be stored.&lt;/p>&lt;p>This property defaults to the value of the &lt;tt>user&lt;/tt> property if set, the user running Puppet or &lt;tt>root&lt;/tt>.&lt;/p>&lt;p>For the default crontab provider, this property is functionally equivalent to the &lt;tt>user&lt;/tt> property and should be avoided. In particular, setting both &lt;tt>user&lt;/tt> and &lt;tt>target&lt;/tt> to different values will result in undefined behavior.&lt;/p>"/>
<properties name="month" documentation="&lt;p>The month of the year. Optional; if specified must be between 1 and 12 or the month name (e.g., December).&lt;/p>"/>
<properties name="command" documentation="&lt;p>The command to execute in the cron job. The environment provided to the command varies by local system rules, and it is best to always provide a fully qualified command. The user's profile is not sourced when the command is run, so if the user's environment is desired it should be sourced manually.&lt;/p>&lt;p>All cron parameters support &lt;tt>absent&lt;/tt> as a value; this will remove any existing values for that field.&lt;/p>"/>
<properties name="special" documentation="&lt;p>A special value such as 'reboot' or 'annually'. Only available on supported systems such as Vixie Cron. Overrides more specific time of day/week settings. Set to 'absent' to make puppet revert to a plain numeric schedule.&lt;/p>"/>
<properties name="hour" documentation="&lt;p>The hour at which to run the cron job. Optional; if specified, must be between 0 and 23, inclusive.&lt;/p>"/>
<properties name="user" documentation="&lt;p>The user who owns the cron job. This user must be allowed to run cron jobs, which is not currently checked by Puppet.&lt;/p>&lt;p>This property defaults to the user running Puppet or &lt;tt>root&lt;/tt>.&lt;/p>&lt;p>The default crontab provider executes the system &lt;tt>crontab&lt;/tt> using the user account specified by this property.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The symbolic name of the cron job. This name is used for human reference only and is generated automatically for cron jobs found on the system. This generally won't matter, as Puppet will do its best to match existing cron jobs against specified jobs (and Puppet adds a comment to cron jobs it adds), but it is at least possible that converting from unmanaged jobs to managed jobs might require manual intervention.&lt;/p>" namevar="true"/>
<parameters name="ensure" documentation=""/>
</types>
<types name="service" documentation="&lt;p>Manage running services. Service support unfortunately varies widely by platform --- some platforms have very little if any concept of a running service, and some have a very codified and powerful concept. Puppet's service support is usually capable of doing the right thing, but the more information you can provide, the better behaviour you will get.&lt;/p>&lt;p>Puppet 2.7 and newer expect init scripts to have a working status command. If this isn't the case for any of your services' init scripts, you will need to set &lt;tt>hasstatus&lt;/tt> to false and possibly specify a custom status command in the &lt;tt>status&lt;/tt> attribute. As a last resort, Puppet will attempt to search the process table by calling whatever command is listed in the &lt;tt>ps&lt;/tt> fact. The default search pattern is the name of the service, but you can specify it with the &lt;tt>pattern&lt;/tt> attribute.&lt;/p>&lt;p>&lt;strong>Refresh:&lt;/strong> &lt;tt>service&lt;/tt> resources can respond to refresh events (via &lt;tt>notify&lt;/tt>, &lt;tt>subscribe&lt;/tt>, or the &lt;tt>~>&lt;/tt> arrow). If a &lt;tt>service&lt;/tt> receives an event from another resource, Puppet will restart the service it manages. The actual command used to restart the service depends on the platform and can be configured:&lt;/p>&lt;ul>&lt;li>&lt;p>If you set &lt;tt>hasrestart&lt;/tt> to true, Puppet will use the init script's restart command.&lt;/p>&lt;/li>&lt;li>&lt;p>You can provide an explicit command for restarting with the &lt;tt>restart&lt;/tt> attribute.&lt;/p>&lt;/li>&lt;li>&lt;p>If you do neither, the service's stop and start commands will be used.&lt;/p>&lt;/li>&lt;/ul>">
<properties name="flags" documentation="&lt;p>Specify a string of flags to pass to the startup script.&lt;/p>"/>
<properties name="enable" documentation="&lt;p>Whether a service should be enabled to start at boot. This property behaves quite differently depending on the platform; wherever possible, it relies on local tools to enable or disable a given service.&lt;/p>"/>
<properties name="ensure" documentation="&lt;p>Whether a service should be running.&lt;/p>"/>
<parameters name="control" documentation="&lt;p>The control variable used to manage services (originally for HP-UX). Defaults to the upcased service name plus &lt;tt>START&lt;/tt> replacing dots with underscores, for those providers that support the &lt;tt>controllable&lt;/tt> feature.&lt;/p>"/>
<parameters name="stop" documentation="&lt;p>Specify a &lt;b>stop&lt;/b> command manually.&lt;/p>"/>
<parameters name="restart" documentation="&lt;p>Specify a &lt;b>restart&lt;/b> command manually. If left unspecified, the service will be stopped and then started.&lt;/p>"/>
<parameters name="binary" documentation="&lt;p>The path to the daemon. This is only used for systems that do not support init scripts. This binary will be used to start the service if no &lt;tt>start&lt;/tt> parameter is provided.&lt;/p>"/>
<parameters name="pattern" documentation="&lt;p>The pattern to search for in the process table. This is used for stopping services on platforms that do not support init scripts, and is also used for determining service status on those service whose init scripts do not include a status command.&lt;/p>&lt;p>Defaults to the name of the service. The pattern can be a simple string or any legal Ruby pattern, including regular expressions (which should be quoted without enclosing slashes).&lt;/p>"/>
<parameters name="status" documentation="&lt;p>Specify a &lt;b>status&lt;/b> command manually. This command must return 0 if the service is running and a nonzero value otherwise. Ideally, these exit codes should conform to [the LSB's specification][lsb-exit-codes] for init script status actions, but Puppet only considers the difference between 0 and nonzero to be relevant.&lt;/p>&lt;p>If left unspecified, the status of the service will be determined automatically, usually by looking for the service in the process table.&lt;/p>&lt;p>[lsb-exit-codes]: http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html&lt;/p>"/>
<parameters name="start" documentation="&lt;p>Specify a &lt;b>start&lt;/b> command manually. Most service subsystems support a &lt;tt>start&lt;/tt> command, so this will not need to be specified.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The name of the service to run.&lt;/p>&lt;p>This name is used to find the service; on platforms where services have short system names and long display names, this should be the short name. (To take an example from Windows, you would use &quot;wuauserv&quot; rather than &quot;Automatic Updates.&quot;)&lt;/p>" namevar="true"/>
<parameters name="manifest" documentation="&lt;p>Specify a command to config a service, or a path to a manifest to do so.&lt;/p>"/>
<parameters name="path" documentation="&lt;p>The search path for finding init scripts. Multiple values should be separated by colons or provided as an array.&lt;/p>"/>
<parameters name="hasrestart" documentation="&lt;p>Specify that an init script has a &lt;tt>restart&lt;/tt> command. If this is false and you do not specify a command in the &lt;tt>restart&lt;/tt> attribute, the init script's &lt;tt>stop&lt;/tt> and &lt;tt>start&lt;/tt> commands will be used.&lt;/p>&lt;p>Defaults to false.&lt;/p>"/>
<parameters name="hasstatus" documentation="&lt;p>Declare whether the service's init script has a functional status command; defaults to &lt;tt>true&lt;/tt>. This attribute's default value changed in Puppet 2.7.0.&lt;/p>&lt;p>The init script's status command must return 0 if the service is running and a nonzero value otherwise. Ideally, these exit codes should conform to [the LSB's specification][lsb-exit-codes] for init script status actions, but Puppet only considers the difference between 0 and nonzero to be relevant.&lt;/p>&lt;p>If a service's init script does not support any kind of status command, you should set &lt;tt>hasstatus&lt;/tt> to false and either provide a specific command using the &lt;tt>status&lt;/tt> attribute or expect that Puppet will look for the service name in the process table. Be aware that 'virtual' init scripts (like 'network' under Red Hat systems) will respond poorly to refresh events from other resources if you override the default behavior without providing a status command.&lt;/p>"/>
</types>
<types name="zfs" documentation="&lt;p>Manage zfs. Create destroy and set properties on zfs instances.&lt;/p>&lt;p>&lt;strong>Autorequires:&lt;/strong> If Puppet is managing the zpool at the root of this zfs instance, the zfs resource will autorequire it. If Puppet is managing any parent zfs instances, the zfs resource will autorequire them.&lt;/p>">
<properties name="sharenfs" documentation="&lt;p>The sharenfs property. Valid values are &lt;tt>on&lt;/tt>, &lt;tt>off&lt;/tt>, share(1M) options&lt;/p>"/>
<properties name="volsize" documentation="&lt;p>The volsize property. Valid values are &lt;tt>&lt;size>&lt;/tt>&lt;/p>"/>
<properties name="atime" documentation="&lt;p>The atime property. Valid values are &lt;tt>on&lt;/tt>, &lt;tt>off&lt;/tt>.&lt;/p>"/>
<properties name="aclmode" documentation="&lt;p>The aclmode property. Valid values are &lt;tt>discard&lt;/tt>, &lt;tt>groupmask&lt;/tt>, &lt;tt>passthrough&lt;/tt>.&lt;/p>"/>
<properties name="xattr" documentation="&lt;p>The xattr property. Valid values are &lt;tt>on&lt;/tt>, &lt;tt>off&lt;/tt>.&lt;/p>"/>
<properties name="checksum" documentation="&lt;p>The checksum property. Valid values are &lt;tt>on&lt;/tt>, &lt;tt>off&lt;/tt>, &lt;tt>fletcher2&lt;/tt>, &lt;tt>fletcher4&lt;/tt>, &lt;tt>sha256&lt;/tt>.&lt;/p>"/>
<properties name="setuid" documentation="&lt;p>The setuid property. Valid values are &lt;tt>on&lt;/tt>, &lt;tt>off&lt;/tt>.&lt;/p>"/>
<properties name="version" documentation="&lt;p>The version property. Valid values are &lt;tt>1&lt;/tt>, &lt;tt>2&lt;/tt>, &lt;tt>3&lt;/tt>, &lt;tt>4&lt;/tt>, &lt;tt>current&lt;/tt>.&lt;/p>"/>
<properties name="shareiscsi" documentation="&lt;p>The shareiscsi property. Valid values are &lt;tt>on&lt;/tt>, &lt;tt>off&lt;/tt>, &lt;tt>type=&lt;type>&lt;/tt>.&lt;/p>"/>
<properties name="recordsize" documentation="&lt;p>The recordsize property. Valid values are powers of two between 512 and 128k.&lt;/p>"/>
<properties name="secondarycache" documentation="&lt;p>The secondarycache property. Valid values are &lt;tt>all&lt;/tt>, &lt;tt>none&lt;/tt>, &lt;tt>metadata&lt;/tt>.&lt;/p>"/>
<properties name="quota" documentation="&lt;p>The quota property. Valid values are &lt;tt>&lt;size>&lt;/tt>, &lt;tt>none&lt;/tt>.&lt;/p>"/>
<properties name="zoned" documentation="&lt;p>The zoned property. Valid values are &lt;tt>on&lt;/tt>, &lt;tt>off&lt;/tt>.&lt;/p>"/>
<properties name="aclinherit" documentation="&lt;p>The aclinherit property. Valid values are &lt;tt>discard&lt;/tt>, &lt;tt>noallow&lt;/tt>, &lt;tt>restricted&lt;/tt>, &lt;tt>passthrough&lt;/tt>, &lt;tt>passthrough-x&lt;/tt>.&lt;/p>"/>
<properties name="sharesmb" documentation="&lt;p>The sharesmb property. Valid values are &lt;tt>on&lt;/tt>, &lt;tt>off&lt;/tt>, sharemgr(1M) options&lt;/p>"/>
<properties name="canmount" documentation="&lt;p>The canmount property. Valid values are &lt;tt>on&lt;/tt>, &lt;tt>off&lt;/tt>, &lt;tt>noauto&lt;/tt>.&lt;/p>"/>
<properties name="compression" documentation="&lt;p>The compression property. Valid values are &lt;tt>on&lt;/tt>, &lt;tt>off&lt;/tt>, &lt;tt>lzjb&lt;/tt>, &lt;tt>gzip&lt;/tt>, &lt;tt>gzip-[1-9]&lt;/tt>, &lt;tt>zle&lt;/tt>.&lt;/p>"/>
<properties name="primarycache" documentation="&lt;p>The primarycache property. Valid values are &lt;tt>all&lt;/tt>, &lt;tt>none&lt;/tt>, &lt;tt>metadata&lt;/tt>.&lt;/p>"/>
<properties name="dedup" documentation="&lt;p>The dedup property. Valid values are &lt;tt>on&lt;/tt>, &lt;tt>off&lt;/tt>.&lt;/p>"/>
<properties name="nbmand" documentation="&lt;p>The nbmand property. Valid values are &lt;tt>on&lt;/tt>, &lt;tt>off&lt;/tt>.&lt;/p>"/>
<properties name="snapdir" documentation="&lt;p>The snapdir property. Valid values are &lt;tt>hidden&lt;/tt>, &lt;tt>visible&lt;/tt>.&lt;/p>"/>
<properties name="copies" documentation="&lt;p>The copies property. Valid values are &lt;tt>1&lt;/tt>, &lt;tt>2&lt;/tt>, &lt;tt>3&lt;/tt>.&lt;/p>"/>
<properties name="mountpoint" documentation="&lt;p>The mountpoint property. Valid values are &lt;tt>&lt;path>&lt;/tt>, &lt;tt>legacy&lt;/tt>, &lt;tt>none&lt;/tt>.&lt;/p>"/>
<properties name="logbias" documentation="&lt;p>The logbias property. Valid values are &lt;tt>latency&lt;/tt>, &lt;tt>throughput&lt;/tt>.&lt;/p>"/>
<properties name="reservation" documentation="&lt;p>The reservation property. Valid values are &lt;tt>&lt;size>&lt;/tt>, &lt;tt>none&lt;/tt>.&lt;/p>"/>
<properties name="refquota" documentation="&lt;p>The refquota property. Valid values are &lt;tt>&lt;size>&lt;/tt>, &lt;tt>none&lt;/tt>.&lt;/p>"/>
<properties name="refreservation" documentation="&lt;p>The refreservation property. Valid values are &lt;tt>&lt;size>&lt;/tt>, &lt;tt>none&lt;/tt>.&lt;/p>"/>
<properties name="exec" documentation="&lt;p>The exec property. Valid values are &lt;tt>on&lt;/tt>, &lt;tt>off&lt;/tt>.&lt;/p>"/>
<properties name="devices" documentation="&lt;p>The devices property. Valid values are &lt;tt>on&lt;/tt>, &lt;tt>off&lt;/tt>.&lt;/p>"/>
<properties name="vscan" documentation="&lt;p>The vscan property. Valid values are &lt;tt>on&lt;/tt>, &lt;tt>off&lt;/tt>.&lt;/p>"/>
<properties name="readonly" documentation="&lt;p>The readonly property. Valid values are &lt;tt>on&lt;/tt>, &lt;tt>off&lt;/tt>.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The full name for this filesystem (including the zpool).&lt;/p>"/>
<parameters name="ensure" documentation=""/>
</types>
<types name="mcx" documentation="&lt;p>MCX object management using DirectoryService on OS X.&lt;/p>&lt;p>The default provider of this type merely manages the XML plist as reported by the &lt;tt>dscl -mcxexport&lt;/tt> command. This is similar to the content property of the file type in Puppet.&lt;/p>&lt;p>The recommended method of using this type is to use Work Group Manager to manage users and groups on the local computer, record the resulting puppet manifest using the command &lt;tt>puppet resource mcx&lt;/tt>, then deploy it to other machines.&lt;/p>&lt;p>&lt;strong>Autorequires:&lt;/strong> If Puppet is managing the user, group, or computer that these MCX settings refer to, the MCX resource will autorequire that user, group, or computer.&lt;/p>">
<properties name="content" documentation="&lt;p>The XML Plist used as the value of MCXSettings in DirectoryService. This is the standard output from the system command:&lt;/p>&lt;pre> dscl localhost -mcxexport /Local/Default/&lt;ds_type>/ds_name&#xA;&#xA;&lt;/pre>&lt;p>Note that &lt;tt>ds_type&lt;/tt> is capitalized and plural in the dscl command.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The name of the resource being managed. The default naming convention follows Directory Service paths:&lt;/p>&lt;pre> /Computers/localhost&#xA; /Groups/admin&#xA; /Users/localadmin&#xA;&#xA;&lt;/pre>&lt;p>The &lt;tt>ds&lt;i>type&lt;/tt> and &lt;tt>ds&lt;/i>name&lt;/tt> type parameters are not necessary if the default naming convention is followed.&lt;/p>" namevar="true"/>
<parameters name="ds_type" documentation="&lt;p>The DirectoryService type this MCX setting attaches to.&lt;/p>"/>
<parameters name="ds_name" documentation="&lt;p>The name to attach the MCX Setting to. (For example, &lt;tt>localhost&lt;/tt> when &lt;tt>ds_type => computer&lt;/tt>.) This setting is not required, as it can be automatically discovered when the resource name is parseable. (For example, in &lt;tt>/Groups/admin&lt;/tt>, &lt;tt>group&lt;/tt> will be used as the dstype.)&lt;/p>"/>
<parameters name="ensure" documentation="&lt;p>Create or remove the MCX setting.&lt;/p>"/>
</types>
<types name="selboolean" documentation="&lt;p>Manages SELinux booleans on systems with SELinux support. The supported booleans are any of the ones found in &lt;tt>/selinux/booleans/&lt;/tt>.&lt;/p>">
<properties name="value" documentation="&lt;p>Whether the SELinux boolean should be enabled or disabled.&lt;/p>"/>
<parameters name="persistent" documentation="&lt;p>If set true, SELinux booleans will be written to disk and persist accross reboots. The default is &lt;tt>false&lt;/tt>.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The name of the SELinux boolean to be managed.&lt;/p>" namevar="true"/>
</types>
<types name="user" documentation="&lt;p>Manage users. This type is mostly built to manage system users, so it is lacking some features useful for managing normal users.&lt;/p>&lt;p>This resource type uses the prescribed native tools for creating groups and generally uses POSIX APIs for retrieving information about them. It does not directly modify &lt;tt>/etc/passwd&lt;/tt> or anything.&lt;/p>&lt;p>&lt;strong>Autorequires:&lt;/strong> If Puppet is managing the user's primary group (as provided in the &lt;tt>gid&lt;/tt> attribute), the user resource will autorequire that group. If Puppet is managing any role accounts corresponding to the user's roles, the user resource will autorequire those role accounts.&lt;/p>">
<properties name="uid" documentation="&lt;p>The user ID; must be specified numerically. If no user ID is specified when creating a new user, then one will be chosen automatically. This will likely result in the same user having different UIDs on different systems, which is not recommended. This is especially noteworthy when managing the same user on both Darwin and other platforms, since Puppet does UID generation on Darwin, but the underlying tools do so on other platforms.&lt;/p>&lt;p>On Windows, this property is read-only and will return the user's security identifier (SID).&lt;/p>"/>
<properties name="password_min_age" documentation="&lt;p>The minimum number of days a password must be used before it may be changed.&lt;/p>"/>
<properties name="home" documentation="&lt;p>The home directory of the user. The directory must be created separately and is not currently checked for existence.&lt;/p>"/>
<properties name="shell" documentation="&lt;p>The user's login shell. The shell must exist and be executable.&lt;/p>&lt;p>This attribute cannot be managed on Windows systems.&lt;/p>"/>
<properties name="auths" documentation="&lt;p>The auths the user has. Multiple auths should be specified as an array.&lt;/p>"/>
<properties name="keys" documentation="&lt;p>Specify user attributes in an array of key = value pairs.&lt;/p>"/>
<properties name="iterations" documentation="&lt;p>This is the number of iterations of a chained computation of the password hash (http://en.wikipedia.org/wiki/PBKDF2). This parameter is used in OS X. This field is required for managing passwords on OS X >= 10.8.&lt;/p>"/>
<properties name="password" documentation="&lt;p>The user's password, in whatever encrypted format the local system requires.&lt;/p>&lt;ul>&lt;li>&lt;p>Most modern Unix-like systems use salted SHA1 password hashes. You can use Puppet's built-in &lt;tt>sha1&lt;/tt> function to generate a hash from a password.&lt;/p>&lt;/li>&lt;li>&lt;p>Mac OS X 10.5 and 10.6 also use salted SHA1 hashes.&lt;/p>&lt;/li>&lt;li>&lt;p>Mac OS X 10.7 (Lion) uses salted SHA512 hashes. The Puppet Labs [stdlib][] module contains a &lt;tt>str2saltedsha512&lt;/tt> function which can generate password hashes for Lion.&lt;/p>&lt;/li>&lt;li>&lt;p>Mac OS X 10.8 and higher use salted SHA512 PBKDF2 hashes. When managing passwords on these systems the salt and iterations properties need to be specified as well as the password.&lt;/p>&lt;/li>&lt;li>&lt;p>Windows passwords can only be managed in cleartext, as there is no Windows API for setting the password hash.&lt;/p>&lt;/li>&lt;/ul>&lt;p>[stdlib]: https://github.com/puppetlabs/puppetlabs-stdlib/&lt;/p>&lt;p>Be sure to enclose any value that includes a dollar sign ($) in single quotes (') to avoid accidental variable interpolation.&lt;/p>"/>
<properties name="expiry" documentation="&lt;p>The expiry date for this user. Must be provided in a zero-padded YYYY-MM-DD format --- e.g. 2010-02-19. If you want to make sure the user account does never expire, you can pass the special value &lt;tt>absent&lt;/tt>.&lt;/p>"/>
<properties name="project" documentation="&lt;p>The name of the project associated with a user.&lt;/p>"/>
<properties name="password_max_age" documentation="&lt;p>The maximum number of days a password may be used before it must be changed.&lt;/p>"/>
<properties name="roles" documentation="&lt;p>The roles the user has. Multiple roles should be specified as an array.&lt;/p>"/>
<properties name="gid" documentation="&lt;p>The user's primary group. Can be specified numerically or by name.&lt;/p>&lt;p>This attribute is not supported on Windows systems; use the &lt;tt>groups&lt;/tt> attribute instead. (On Windows, designating a primary group is only meaningful for domain accounts, which Puppet does not currently manage.)&lt;/p>"/>
<properties name="attributes" documentation="&lt;p>Specify AIX attributes for the user in an array of attribute = value pairs.&lt;/p>"/>
<properties name="profiles" documentation="&lt;p>The profiles the user has. Multiple profiles should be specified as an array.&lt;/p>"/>
<properties name="comment" documentation="&lt;p>A description of the user. Generally the user's full name.&lt;/p>"/>
<properties name="groups" documentation="&lt;p>The groups to which the user belongs. The primary group should not be listed, and groups should be identified by name rather than by GID. Multiple groups should be specified as an array.&lt;/p>"/>
<properties name="salt" documentation="&lt;p>This is the 32 byte salt used to generate the PBKDF2 password used in OS X. This field is required for managing passwords on OS X >= 10.8.&lt;/p>"/>
<properties name="ensure" documentation="&lt;p>The basic state that the object should be in.&lt;/p>"/>
<parameters name="attribute_membership" documentation="&lt;p>Whether specified attribute value pairs should be treated as the &lt;strong>complete list&lt;/strong> (&lt;tt>inclusive&lt;/tt>) or the &lt;strong>minimum list&lt;/strong> (&lt;tt>minimum&lt;/tt>) of attribute/value pairs for the user. Defaults to &lt;tt>minimum&lt;/tt>.&lt;/p>"/>
<parameters name="system" documentation="&lt;p>Whether the user is a system user, according to the OS's criteria; on most platforms, a UID less than or equal to 500 indicates a system user. This parameter is only used when the resource is created and will not affect the UID when the user is present. Defaults to &lt;tt>false&lt;/tt>.&lt;/p>"/>
<parameters name="key_membership" documentation="&lt;p>Whether specified key/value pairs should be considered the &lt;strong>complete list&lt;/strong> (&lt;tt>inclusive&lt;/tt>) or the &lt;strong>minimum list&lt;/strong> (&lt;tt>minimum&lt;/tt>) of the user's attributes. Defaults to &lt;tt>minimum&lt;/tt>.&lt;/p>"/>
<parameters name="membership" documentation="&lt;p>Whether specified groups should be considered the &lt;strong>complete list&lt;/strong> (&lt;tt>inclusive&lt;/tt>) or the &lt;strong>minimum list&lt;/strong> (&lt;tt>minimum&lt;/tt>) of groups to which the user belongs. Defaults to &lt;tt>minimum&lt;/tt>.&lt;/p>"/>
<parameters name="forcelocal" documentation="&lt;p>Forces the management of local accounts when accounts are also being managed by some other NSS&lt;/p>"/>
<parameters name="profile_membership" documentation="&lt;p>Whether specified roles should be treated as the &lt;strong>complete list&lt;/strong> (&lt;tt>inclusive&lt;/tt>) or the &lt;strong>minimum list&lt;/strong> (&lt;tt>minimum&lt;/tt>) of roles of which the user is a member. Defaults to &lt;tt>minimum&lt;/tt>.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The user name. While naming limitations vary by operating system, it is advisable to restrict names to the lowest common denominator, which is a maximum of 8 characters beginning with a letter.&lt;/p>&lt;p>Note that Puppet considers user names to be case-sensitive, regardless of the platform's own rules; be sure to always use the same case when referring to a given user.&lt;/p>" namevar="true"/>
<parameters name="allowdupe" documentation="&lt;p>Whether to allow duplicate UIDs. Defaults to &lt;tt>false&lt;/tt>.&lt;/p>"/>
<parameters name="auth_membership" documentation="&lt;p>Whether specified auths should be considered the &lt;strong>complete list&lt;/strong> (&lt;tt>inclusive&lt;/tt>) or the &lt;strong>minimum list&lt;/strong> (&lt;tt>minimum&lt;/tt>) of auths the user has. Defaults to &lt;tt>minimum&lt;/tt>.&lt;/p>"/>
<parameters name="role_membership" documentation="&lt;p>Whether specified roles should be considered the &lt;strong>complete list&lt;/strong> (&lt;tt>inclusive&lt;/tt>) or the &lt;strong>minimum list&lt;/strong> (&lt;tt>minimum&lt;/tt>) of roles the user has. Defaults to &lt;tt>minimum&lt;/tt>.&lt;/p>"/>
<parameters name="purge_ssh_keys" documentation="&lt;p>Whether to purge authorized SSH keys for this user if they are not managed with the &lt;tt>ssh&lt;i>authorized&lt;/i>key&lt;/tt> resource type. Allowed values are:&lt;/p>&lt;ul>&lt;li>&lt;p>&lt;tt>false&lt;/tt> (default) --- don't purge SSH keys for this user.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>true&lt;/tt> --- look for keys in the &lt;tt>.ssh/authorized&lt;i>keys&lt;/tt> file in the user's home directory. Purge any keys that aren't managed as &lt;tt>ssh&lt;/i>authorized_key&lt;/tt> resources.&lt;/p>&lt;/li>&lt;li>&lt;p>An array of file paths --- look for keys in all of the files listed. Purge any keys that aren't managed as &lt;tt>ssh&lt;i>authorized&lt;/i>key&lt;/tt> resources. If any of these paths starts with &lt;tt>~&lt;/tt> or &lt;tt>%h&lt;/tt>, that token will be replaced with the user's home directory.&lt;/p>&lt;/li>&lt;/ul>"/>
<parameters name="ia_load_module" documentation="&lt;p>The name of the I&amp;A module to use to manage this user.&lt;/p>"/>
<parameters name="managehome" documentation="&lt;p>Whether to manage the home directory when managing the user. This will create the home directory when &lt;tt>ensure => present&lt;/tt>, and delete the home directory when &lt;tt>ensure => absent&lt;/tt>. Defaults to &lt;tt>false&lt;/tt>.&lt;/p>"/>
</types>
<types name="whit" documentation="">
<parameters name="name" documentation="&lt;p>The name of the whit, because it must have one.&lt;/p>"/>
</types>
<types name="tidy" documentation="&lt;p>Remove unwanted files based on specific criteria. Multiple criteria are OR'd together, so a file that is too large but is not old enough will still get tidied.&lt;/p>&lt;p>If you don't specify either &lt;tt>age&lt;/tt> or &lt;tt>size&lt;/tt>, then all files will be removed.&lt;/p>&lt;p>This resource type works by generating a file resource for every file that should be deleted and then letting that resource perform the actual deletion.&lt;/p>">
<parameters name="matches" documentation="&lt;p>One or more (shell type) file glob patterns, which restrict the list of files to be tidied to those whose basenames match at least one of the patterns specified. Multiple patterns can be specified using an array.&lt;/p>&lt;p>Example:&lt;/p>&lt;pre> tidy { &quot;/tmp&quot;:&#xA; age => &quot;1w&quot;,&#xA; recurse => 1,&#xA; matches => [ &quot;[0-9]pub*.tmp&quot;, &quot;*.temp&quot;, &quot;tmpfile?&quot; ]&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>This removes files from &lt;tt>/tmp&lt;/tt> if they are one week old or older, are not in a subdirectory and match one of the shell globs given.&lt;/p>&lt;p>Note that the patterns are matched against the basename of each file -- that is, your glob patterns should not have any '/' characters in them, since you are only specifying against the last bit of the file.&lt;/p>&lt;p>Finally, note that you must now specify a non-zero/non-false value for recurse if matches is used, as matches only apply to files found by recursion (there's no reason to use static patterns match against a statically determined path). Requiering explicit recursion clears up a common source of confusion.&lt;/p>"/>
<parameters name="age" documentation="&lt;p>Tidy files whose age is equal to or greater than the specified time. You can choose seconds, minutes, hours, days, or weeks by specifying the first letter of any of those words (e.g., '1w').&lt;/p>&lt;p>Specifying 0 will remove all files.&lt;/p>"/>
<parameters name="path" documentation="&lt;p>The path to the file or directory to manage. Must be fully qualified.&lt;/p>" namevar="true"/>
<parameters name="rmdirs" documentation="&lt;p>Tidy directories in addition to files; that is, remove directories whose age is older than the specified criteria. This will only remove empty directories, so all contained files must also be tidied before a directory gets removed.&lt;/p>"/>
<parameters name="type" documentation="&lt;p>Set the mechanism for determining age. Default: atime.&lt;/p>"/>
<parameters name="recurse" documentation="&lt;p>If target is a directory, recursively descend into the directory looking for files to tidy.&lt;/p>"/>
<parameters name="size" documentation="&lt;p>Tidy files whose size is equal to or greater than the specified size. Unqualified values are in kilobytes, but &lt;b>b&lt;/b>, &lt;b>k&lt;/b>, &lt;b>m&lt;/b>, &lt;b>g&lt;/b>, and &lt;b>t&lt;/b> can be appended to specify &lt;b>bytes&lt;/b>, &lt;b>kilobytes&lt;/b>, &lt;b>megabytes&lt;/b>, &lt;b>gigabytes&lt;/b>, and &lt;b>terabytes&lt;/b>, respectively. Only the first character is significant, so the full word can also be used.&lt;/p>"/>
<parameters name="backup" documentation="&lt;p>Whether tidied files should be backed up. Any values are passed directly to the file resources used for actual file deletion, so consult the &lt;tt>file&lt;/tt> type's backup documentation to determine valid values.&lt;/p>"/>
</types>
<types name="resources" documentation="&lt;p>This is a metatype that can manage other resource types. Any metaparams specified here will be passed on to any generated resources, so you can purge umanaged resources but set &lt;tt>noop&lt;/tt> to true so the purging is only logged and does not actually happen.&lt;/p>">
<parameters name="name" documentation="&lt;p>The name of the type to be managed.&lt;/p>"/>
<parameters name="unless_system_user" documentation="&lt;p>This keeps system users from being purged. By default, it does not purge users whose UIDs are less than the minimum UID for the system (typically 500 or 1000), but you can specify a different UID as the inclusive limit.&lt;/p>"/>
<parameters name="unless_uid" documentation="&lt;p>This keeps specific uids or ranges of uids from being purged when purge is true. Accepts integers, integer strings, and arrays of integers or integer strings. To specify a range of uids, consider using the range() function from stdlib.&lt;/p>"/>
<parameters name="purge" documentation="&lt;p>Whether to purge unmanaged resources. When set to &lt;tt>true&lt;/tt>, this will delete any resource that is not specified in your configuration and is not autorequired by any managed resources. &lt;strong>Note:&lt;/strong> The &lt;tt>ssh&lt;i>authorized&lt;/i>key&lt;/tt> resource type can't be purged this way; instead, see the &lt;tt>purge&lt;i>ssh&lt;/i>keys&lt;/tt> attribute of the &lt;tt>user&lt;/tt> type.&lt;/p>"/>
</types>
<types name="interface" documentation="&lt;p>This represents a router or switch interface. It is possible to manage interface mode (access or trunking, native vlan and encapsulation) and switchport characteristics (speed, duplex).&lt;/p>">
<properties name="allowed_trunk_vlans" documentation="&lt;p>Allowed list of Vlans that this trunk can forward.&lt;/p>"/>
<properties name="etherchannel" documentation="&lt;p>Channel group this interface is part of.&lt;/p>"/>
<properties name="speed" documentation="&lt;p>Interface speed.&lt;/p>"/>
<properties name="native_vlan" documentation="&lt;p>Interface native vlan (for access mode only).&lt;/p>"/>
<properties name="description" documentation="&lt;p>Interface description.&lt;/p>"/>
<properties name="ipaddress" documentation="&lt;p>IP Address of this interface. Note that it might not be possible to set an interface IP address; it depends on the interface type and device type.&lt;/p>&lt;p>Valid format of ip addresses are:&lt;/p>&lt;ul>&lt;li>&lt;p>IPV4, like 127.0.0.1&lt;/p>&lt;/li>&lt;li>&lt;p>IPV4/prefixlength like 127.0.1.1/24&lt;/p>&lt;/li>&lt;li>&lt;p>IPV6/prefixlength like FE80::21A:2FFF:FE30:ECF0/128&lt;/p>&lt;/li>&lt;li>&lt;p>an optional suffix for IPV6 addresses from this list: &lt;tt>eui-64&lt;/tt>, &lt;tt>link-local&lt;/tt>&lt;/p>&lt;/li>&lt;/ul>&lt;p>It is also possible to supply an array of values.&lt;/p>"/>
<properties name="duplex" documentation="&lt;p>Interface duplex.&lt;/p>"/>
<properties name="mode" documentation="&lt;p>Interface switchport mode.&lt;/p>"/>
<properties name="encapsulation" documentation="&lt;p>Interface switchport encapsulation.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The interface's name.&lt;/p>"/>
<parameters name="device_url" documentation="&lt;p>The URL at which the router or switch can be reached.&lt;/p>"/>
<parameters name="ensure" documentation=""/>
</types>
<types name="mount" documentation="&lt;p>Manages mounted filesystems, including putting mount information into the mount table. The actual behavior depends on the value of the 'ensure' parameter.&lt;/p>&lt;p>&lt;strong>Refresh:&lt;/strong> &lt;tt>mount&lt;/tt> resources can respond to refresh events (via &lt;tt>notify&lt;/tt>, &lt;tt>subscribe&lt;/tt>, or the &lt;tt>~>&lt;/tt> arrow). If a &lt;tt>mount&lt;/tt> receives an event from another resource &lt;strong>and&lt;/strong> its &lt;tt>ensure&lt;/tt> attribute is set to &lt;tt>mounted&lt;/tt>, Puppet will try to unmount then remount that filesystem.&lt;/p>&lt;p>&lt;strong>Autorequires:&lt;/strong> If Puppet is managing any parents of a mount resource --- that is, other mount points higher up in the filesystem --- the child mount will autorequire them.&lt;/p>">
<properties name="dump" documentation="&lt;p>Whether to dump the mount. Not all platform support this. Valid values are &lt;tt>1&lt;/tt> or &lt;tt>0&lt;/tt> (or &lt;tt>2&lt;/tt> on FreeBSD). Default is &lt;tt>0&lt;/tt>.&lt;/p>"/>
<properties name="fstype" documentation="&lt;p>The mount type. Valid values depend on the operating system. This is a required option.&lt;/p>"/>
<properties name="blockdevice" documentation="&lt;p>The device to fsck. This is property is only valid on Solaris, and in most cases will default to the correct value.&lt;/p>"/>
<properties name="atboot" documentation="&lt;p>Whether to mount the mount at boot. Not all platforms support this.&lt;/p>"/>
<properties name="target" documentation="&lt;p>The file in which to store the mount table. Only used by those providers that write to disk.&lt;/p>"/>
<properties name="device" documentation="&lt;p>The device providing the mount. This can be whatever device is supporting by the mount, including network devices or devices specified by UUID rather than device path, depending on the operating system.&lt;/p>"/>
<properties name="pass" documentation="&lt;p>The pass in which the mount is checked.&lt;/p>"/>
<properties name="options" documentation="&lt;p>Mount options for the mounts, as they would appear in the fstab.&lt;/p>"/>
<properties name="ensure" documentation="&lt;p>Control what to do with this mount. Set this attribute to &lt;tt>unmounted&lt;/tt> to make sure the filesystem is in the filesystem table but not mounted (if the filesystem is currently mounted, it will be unmounted). Set it to &lt;tt>absent&lt;/tt> to unmount (if necessary) and remove the filesystem from the fstab. Set to &lt;tt>mounted&lt;/tt> to add it to the fstab and mount it. Set to &lt;tt>present&lt;/tt> to add to fstab but not change mount/unmount status.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The mount path for the mount.&lt;/p>" namevar="true"/>
<parameters name="remounts" documentation="&lt;p>Whether the mount can be remounted &lt;tt>mount -o remount&lt;/tt>. If this is false, then the filesystem will be unmounted and remounted manually, which is prone to failure.&lt;/p>"/>
</types>
<types name="maillist" documentation="&lt;p>Manage email lists. This resource type can only create and remove lists; it cannot currently reconfigure them.&lt;/p>">
<parameters name="mailserver" documentation="&lt;p>The name of the host handling email for the list.&lt;/p>"/>
<parameters name="admin" documentation="&lt;p>The email address of the administrator.&lt;/p>"/>
<parameters name="description" documentation="&lt;p>The description of the mailing list.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The name of the email list.&lt;/p>"/>
<parameters name="webserver" documentation="&lt;p>The name of the host providing web archives and the administrative interface.&lt;/p>"/>
<parameters name="password" documentation="&lt;p>The admin password.&lt;/p>"/>
<parameters name="ensure" documentation=""/>
</types>
<types name="group" documentation="&lt;p>Manage groups. On most platforms this can only create groups. Group membership must be managed on individual users.&lt;/p>&lt;p>On some platforms such as OS X, group membership is managed as an attribute of the group, not the user record. Providers must have the feature 'manages_members' to manage the 'members' property of a group record.&lt;/p>">
<properties name="gid" documentation="&lt;p>The group ID. Must be specified numerically. If no group ID is specified when creating a new group, then one will be chosen automatically according to local system standards. This will likely result in the same group having different GIDs on different systems, which is not recommended.&lt;/p>&lt;p>On Windows, this property is read-only and will return the group's security identifier (SID).&lt;/p>"/>
<properties name="attributes" documentation="&lt;p>Specify group AIX attributes in an array of &lt;tt>key=value&lt;/tt> pairs.&lt;/p>"/>
<properties name="members" documentation="&lt;p>The members of the group. For directory services where group membership is stored in the group objects, not the users.&lt;/p>"/>
<parameters name="attribute_membership" documentation="&lt;p>Whether specified attribute value pairs should be treated as the only attributes of the user or whether they should merely be treated as the minimum list.&lt;/p>"/>
<parameters name="system" documentation="&lt;p>Whether the group is a system group with lower GID.&lt;/p>"/>
<parameters name="forcelocal" documentation="&lt;p>Forces the management of local accounts when accounts are also being managed by some other NSS&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The group name. While naming limitations vary by operating system, it is advisable to restrict names to the lowest common denominator, which is a maximum of 8 characters beginning with a letter.&lt;/p>&lt;p>Note that Puppet considers group names to be case-sensitive, regardless of the platform's own rules; be sure to always use the same case when referring to a given group.&lt;/p>" namevar="true"/>
<parameters name="allowdupe" documentation="&lt;p>Whether to allow duplicate GIDs. Defaults to &lt;tt>false&lt;/tt>.&lt;/p>"/>
<parameters name="auth_membership" documentation="&lt;p>whether the provider is authoritative for group membership.&lt;/p>"/>
<parameters name="ia_load_module" documentation="&lt;p>The name of the I&amp;A module to use to manage this user&lt;/p>"/>
<parameters name="ensure" documentation="&lt;p>Create or remove the group.&lt;/p>"/>
</types>
<types name="zpool" documentation="&lt;p>Manage zpools. Create and delete zpools. The provider WILL NOT SYNC, only report differences.&lt;/p>&lt;p>Supports vdevs with mirrors, raidz, logs and spares.&lt;/p>">
<properties name="mirror" documentation="&lt;p>List of all the devices to mirror for this pool. Each mirror should be a space separated string:&lt;/p>&lt;pre> mirror => [&quot;disk1 disk2&quot;, &quot;disk3 disk4&quot;],&#xA;&#xA;&#xA;&lt;/pre>"/>
<properties name="raidz" documentation="&lt;p>List of all the devices to raid for this pool. Should be an array of space separated strings:&lt;/p>&lt;pre> raidz => [&quot;disk1 disk2&quot;, &quot;disk3 disk4&quot;],&#xA;&#xA;&#xA;&lt;/pre>"/>
<properties name="spare" documentation="&lt;p>Spare disk(s) for this pool.&lt;/p>"/>
<properties name="disk" documentation="&lt;p>The disk(s) for this pool. Can be an array or a space separated string.&lt;/p>"/>
<properties name="log" documentation="&lt;p>Log disks for this pool. This type does not currently support mirroring of log disks.&lt;/p>"/>
<parameters name="pool" documentation="&lt;p>The name for this pool.&lt;/p>" namevar="true"/>
<parameters name="raid_parity" documentation="&lt;p>Determines parity when using the &lt;tt>raidz&lt;/tt> parameter.&lt;/p>"/>
<parameters name="ensure" documentation=""/>
</types>
<types name="schedule" documentation="&lt;p>Define schedules for Puppet. Resources can be limited to a schedule by using the [&lt;tt>schedule&lt;/tt>](http://docs.puppetlabs.com/references/latest/metaparameter.html#schedule) metaparameter.&lt;/p>&lt;p>Currently, &lt;strong>schedules can only be used to stop a resource from being applied;&lt;/strong> they cannot cause a resource to be applied when it otherwise wouldn't be, and they cannot accurately specify a time when a resource should run.&lt;/p>&lt;p>Every time Puppet applies its configuration, it will apply the set of resources whose schedule does not eliminate them from running right then, but there is currently no system in place to guarantee that a given resource runs at a given time. If you specify a very restrictive schedule and Puppet happens to run at a time within that schedule, then the resources will get applied; otherwise, that work may never get done.&lt;/p>&lt;p>Thus, it is advisable to use wider scheduling (e.g., over a couple of hours) combined with periods and repetitions. For instance, if you wanted to restrict certain resources to only running once, between the hours of two and 4 AM, then you would use this schedule:&lt;/p>&lt;pre> schedule { 'maint':&#xA; range => &quot;2 - 4&quot;,&#xA; period => daily,&#xA; repeat => 1,&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>With this schedule, the first time that Puppet runs between 2 and 4 AM, all resources with this schedule will get applied, but they won't get applied again between 2 and 4 because they will have already run once that day, and they won't get applied outside that schedule because they will be outside the scheduled range.&lt;/p>&lt;p>Puppet automatically creates a schedule for each of the valid periods with the same name as that period (e.g., hourly and daily). Additionally, a schedule named &lt;tt>puppet&lt;/tt> is created and used as the default, with the following attributes:&lt;/p>&lt;pre> schedule { 'puppet':&#xA; period => hourly,&#xA; repeat => 2,&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>This will cause resources to be applied every 30 minutes by default.&lt;/p>">
<parameters name="weekday" documentation="&lt;p>The days of the week in which the schedule should be valid. You may specify the full day name (Tuesday), the three character abbreviation (Tue), or a number corresponding to the day of the week where 0 is Sunday, 1 is Monday, etc. Multiple days can be specified as an array. If not specified, the day of the week will not be considered in the schedule.&lt;/p>&lt;p>If you are also using a range match that spans across midnight then this parameter will match the day that it was at the start of the range, not necessarily the day that it is when it matches. For example, consider this schedule:&lt;/p>&lt;pre> schedule { 'maintenance_window':&#xA; range => '22:00 - 04:00',&#xA; weekday => 'Saturday',&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>This will match at 11 PM on Saturday and 2 AM on Sunday, but not at 2 AM on Saturday.&lt;/p>"/>
<parameters name="range" documentation="&lt;p>The earliest and latest that a resource can be applied. This is always a hyphen-separated range within a 24 hour period, and hours must be specified in numbers between 0 and 23, inclusive. Minutes and seconds can optionally be provided, using the normal colon as a separator. For instance:&lt;/p>&lt;pre> schedule { 'maintenance':&#xA; range => &quot;1:30 - 4:30&quot;,&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>This is mostly useful for restricting certain resources to being applied in maintenance windows or during off-peak hours. Multiple ranges can be applied in array context. As a convenience when specifying ranges, you may cross midnight (e.g.: range => &quot;22:00 - 04:00&quot;).&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The name of the schedule. This name is used when assigning the schedule to a resource with the &lt;tt>schedule&lt;/tt> metaparameter:&lt;/p>&lt;pre> schedule { 'everyday':&#xA; period => daily,&#xA; range => &quot;2 - 4&quot;,&#xA; }&#xA;&#xA; exec { &quot;/usr/bin/apt-get update&quot;:&#xA; schedule => 'everyday',&#xA; }&#xA;&lt;/pre>" namevar="true"/>
<parameters name="repeat" documentation="&lt;p>How often a given resource may be applied in this schedule's &lt;tt>period&lt;/tt>. Defaults to 1; must be an integer.&lt;/p>"/>
<parameters name="period" documentation="&lt;p>The period of repetition for resources on this schedule. The default is for resources to get applied every time Puppet runs.&lt;/p>&lt;p>Note that the period defines how often a given resource will get applied but not when; if you would like to restrict the hours that a given resource can be applied (e.g., only at night during a maintenance window), then use the &lt;tt>range&lt;/tt> attribute.&lt;/p>&lt;p>If the provided periods are not sufficient, you can provide a value to the &lt;b>repeat&lt;/b> attribute, which will cause Puppet to schedule the affected resources evenly in the period the specified number of times. Take this schedule:&lt;/p>&lt;pre> schedule { 'veryoften':&#xA; period => hourly,&#xA; repeat => 6,&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>This can cause Puppet to apply that resource up to every 10 minutes.&lt;/p>&lt;p>At the moment, Puppet cannot guarantee that level of repetition; that is, the resource can applied &lt;i>up to&lt;/i> every 10 minutes, but internal factors might prevent it from actually running that often (e.g. if a Puppet run is still in progress when the next run is scheduled to start, that next run will be suppressed).&lt;/p>&lt;p>See the &lt;tt>periodmatch&lt;/tt> attribute for tuning whether to match times by their distance apart or by their specific value.&lt;/p>"/>
<parameters name="periodmatch" documentation="&lt;p>Whether periods should be matched by number (e.g., the two times are in the same hour) or by distance (e.g., the two times are 60 minutes apart).&lt;/p>"/>
</types>
<types name="selmodule" documentation="&lt;p>Manages loading and unloading of SELinux policy modules on the system. Requires SELinux support. See man semodule(8) for more information on SELinux policy modules.&lt;/p>&lt;p>&lt;strong>Autorequires:&lt;/strong> If Puppet is managing the file containing this SELinux policy module (which is either explicitly specified in the &lt;tt>selmodulepath&lt;/tt> attribute or will be found at {&lt;tt>selmoduledir&lt;/tt>}/{&lt;tt>name&lt;/tt>}.pp), the selmodule resource will autorequire that file.&lt;/p>">
<properties name="syncversion" documentation="&lt;p>If set to &lt;tt>true&lt;/tt>, the policy will be reloaded if the version found in the on-disk file differs from the loaded version. If set to &lt;tt>false&lt;/tt> (the default) the only check that will be made is if the policy is loaded at all or not.&lt;/p>"/>
<parameters name="selmodulepath" documentation="&lt;p>The full path to the compiled .pp policy module. You only need to use this if the module file is not in the &lt;tt>selmoduledir&lt;/tt> directory.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The name of the SELinux policy to be managed. You should not include the customary trailing .pp extension.&lt;/p>" namevar="true"/>
<parameters name="selmoduledir" documentation="&lt;p>The directory to look for the compiled pp module file in. Currently defaults to &lt;tt>/usr/share/selinux/targeted&lt;/tt>. If the &lt;tt>selmodulepath&lt;/tt> attribute is not specified, Puppet will expect to find the module in &lt;tt>&lt;selmoduledir>/&lt;name>.pp&lt;/tt>, where &lt;tt>name&lt;/tt> is the value of the &lt;tt>name&lt;/tt> parameter.&lt;/p>"/>
<parameters name="ensure" documentation=""/>
</types>
<types name="yumrepo" documentation="&lt;p>The client-side description of a yum repository. Repository configurations are found by parsing &lt;tt>/etc/yum.conf&lt;/tt> and the files indicated by the &lt;tt>reposdir&lt;/tt> option in that file (see &lt;tt>yum.conf(5)&lt;/tt> for details).&lt;/p>&lt;p>Most parameters are identical to the ones documented in the &lt;tt>yum.conf(5)&lt;/tt> man page.&lt;/p>&lt;p>Continuation lines that yum supports (for the &lt;tt>baseurl&lt;/tt>, for example) are not supported. This type does not attempt to read or verify the exinstence of files listed in the &lt;tt>include&lt;/tt> attribute.&lt;/p>">
<properties name="s3_enabled" documentation=""/>
<properties name="metadata_expire" documentation=""/>
<properties name="throttle" documentation=""/>
<properties name="repo_gpgcheck" documentation=""/>
<properties name="protect" documentation=""/>
<properties name="includepkgs" documentation=""/>
<properties name="gpgcakey" documentation=""/>
<properties name="bandwidth" documentation=""/>
<properties name="metalink" documentation=""/>
<properties name="proxy_username" documentation=""/>
<properties name="gpgcheck" documentation=""/>
<properties name="gpgkey" documentation=""/>
<properties name="priority" documentation=""/>
<properties name="sslverify" documentation=""/>
<properties name="proxy" documentation=""/>
<properties name="mirrorlist" documentation=""/>
<properties name="keepalive" documentation=""/>
<properties name="mirrorlist_expire" documentation=""/>
<properties name="proxy_password" documentation=""/>
<properties name="enabled" documentation=""/>
<properties name="sslclientkey" documentation=""/>
<properties name="exclude" documentation=""/>
<properties name="http_caching" documentation=""/>
<properties name="cost" documentation=""/>
<properties name="include" documentation=""/>
<properties name="sslcacert" documentation=""/>
<properties name="skip_if_unavailable" documentation=""/>
<properties name="retries" documentation=""/>
<properties name="baseurl" documentation=""/>
<properties name="failovermethod" documentation=""/>
<properties name="sslclientcert" documentation=""/>
<properties name="descr" documentation=""/>
<properties name="enablegroups" documentation=""/>
<properties name="timeout" documentation=""/>
<parameters name="name" documentation="&lt;p>The name of the repository. This corresponds to the &lt;tt>repositoryid&lt;/tt> parameter in &lt;tt>yum.conf(5)&lt;/tt>.&lt;/p>"/>
<parameters name="target" documentation="&lt;p>The filename to write the yum repository to.&lt;/p>"/>
<parameters name="ensure" documentation=""/>
</types>
<types name="vlan" documentation="&lt;p>Manages a VLAN on a router or switch.&lt;/p>">
<properties name="description" documentation="&lt;p>The VLAN's name.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The numeric VLAN ID.&lt;/p>" namevar="true"/>
<parameters name="device_url" documentation="&lt;p>The URL of the router or switch maintaining this VLAN.&lt;/p>"/>
<parameters name="ensure" documentation=""/>
</types>
<types name="router" documentation="&lt;p>Manages connected router.&lt;/p>">
<parameters name="url" documentation="&lt;p>An SSH or telnet URL at which to access the router, in the form &lt;tt>ssh://user:pass:enable@host/&lt;/tt> or &lt;tt>telnet://user:pass:enable@host/&lt;/tt>.&lt;/p>" namevar="true"/>
</types>
<types name="exec" documentation="&lt;p>Executes external commands.&lt;/p>&lt;p>Any command in an &lt;tt>exec&lt;/tt> resource &lt;strong>must&lt;/strong> be able to run multiple times without causing harm --- that is, it must be &lt;b>idempotent&lt;/b>. There are three main ways for an exec to be idempotent:&lt;/p>&lt;ul>&lt;li>&lt;p>The command itself is already idempotent. (For example, &lt;tt>apt-get update&lt;/tt>.)&lt;/p>&lt;/li>&lt;li>&lt;p>The exec has an &lt;tt>onlyif&lt;/tt>, &lt;tt>unless&lt;/tt>, or &lt;tt>creates&lt;/tt> attribute, which prevents Puppet from running the command unless some condition is met.&lt;/p>&lt;/li>&lt;li>&lt;p>The exec has &lt;tt>refreshonly => true&lt;/tt>, which only allows Puppet to run the command when some other resource is changed. (See the notes on refreshing below.)&lt;/p>&lt;/li>&lt;/ul>&lt;p>A caution: There's a widespread tendency to use collections of execs to manage resources that aren't covered by an existing resource type. This works fine for simple tasks, but once your exec pile gets complex enough that you really have to think to understand what's happening, you should consider developing a custom resource type instead, as it will be much more predictable and maintainable.&lt;/p>&lt;p>&lt;strong>Refresh:&lt;/strong> &lt;tt>exec&lt;/tt> resources can respond to refresh events (via &lt;tt>notify&lt;/tt>, &lt;tt>subscribe&lt;/tt>, or the &lt;tt>~>&lt;/tt> arrow). The refresh behavior of execs is non-standard, and can be affected by the &lt;tt>refresh&lt;/tt> and &lt;tt>refreshonly&lt;/tt> attributes:&lt;/p>&lt;ul>&lt;li>&lt;p>If &lt;tt>refreshonly&lt;/tt> is set to true, the exec will &lt;i>only&lt;/i> run when it receives an event. This is the most reliable way to use refresh with execs.&lt;/p>&lt;/li>&lt;li>&lt;p>If the exec already would have run and receives an event, it will run its command &lt;strong>up to two times.&lt;/strong> (If an &lt;tt>onlyif&lt;/tt>, &lt;tt>unless&lt;/tt>, or &lt;tt>creates&lt;/tt> condition is no longer met after the first run, the second run will not occur.)&lt;/p>&lt;/li>&lt;li>&lt;p>If the exec already would have run, has a &lt;tt>refresh&lt;/tt> command, and receives an event, it will run its normal command, then run its &lt;tt>refresh&lt;/tt> command (as long as any &lt;tt>onlyif&lt;/tt>, &lt;tt>unless&lt;/tt>, or &lt;tt>creates&lt;/tt> conditions are still met after the normal command finishes).&lt;/p>&lt;/li>&lt;li>&lt;p>If the exec would &lt;strong>not&lt;/strong> have run (due to an &lt;tt>onlyif&lt;/tt>, &lt;tt>unless&lt;/tt>, or &lt;tt>creates&lt;/tt> attribute) and receives an event, it still will not run.&lt;/p>&lt;/li>&lt;li>&lt;p>If the exec has &lt;tt>noop => true&lt;/tt>, would otherwise have run, and receives an event from a non-noop resource, it will run once (or run its &lt;tt>refresh&lt;/tt> command instead, if it has one).&lt;/p>&lt;/li>&lt;/ul>&lt;p>In short: If there's a possibility of your exec receiving refresh events, it becomes doubly important to make sure the run conditions are restricted.&lt;/p>&lt;p>&lt;strong>Autorequires:&lt;/strong> If Puppet is managing an exec's cwd or the executable file used in an exec's command, the exec resource will autorequire those files. If Puppet is managing the user that an exec should run as, the exec resource will autorequire that user.&lt;/p>">
<properties name="returns" documentation="&lt;p>The expected exit code(s). An error will be returned if the executed command has some other exit code. Defaults to 0. Can be specified as an array of acceptable exit codes or a single value.&lt;/p>&lt;p>On POSIX systems, exit codes are always integers between 0 and 255.&lt;/p>&lt;p>On Windows, &lt;strong>most&lt;/strong> exit codes should be integers between 0 and 2147483647.&lt;/p>&lt;p>Larger exit codes on Windows can behave inconsistently across different tools. The Win32 APIs define exit codes as 32-bit unsigned integers, but both the cmd.exe shell and the .NET runtime cast them to signed integers. This means some tools will report negative numbers for exit codes above 2147483647. (For example, cmd.exe reports 4294967295 as -1.) Since Puppet uses the plain Win32 APIs, it will report the very large number instead of the negative number, which might not be what you expect if you got the exit code from a cmd.exe session.&lt;/p>&lt;p>Microsoft recommends against using negative/very large exit codes, and you should avoid them when possible. To convert a negative exit code to the positive one Puppet will use, add it to 4294967296.&lt;/p>"/>
<parameters name="logoutput" documentation="&lt;p>Whether to log command output in addition to logging the exit code. Defaults to &lt;tt>on_failure&lt;/tt>, which only logs the output when the command has an exit code that does not match any value specified by the &lt;tt>returns&lt;/tt> attribute. As with any resource type, the log level can be controlled with the &lt;tt>loglevel&lt;/tt> metaparameter.&lt;/p>"/>
<parameters name="umask" documentation="&lt;p>Sets the umask to be used while executing this command&lt;/p>"/>
<parameters name="onlyif" documentation="&lt;p>If this parameter is set, then this &lt;tt>exec&lt;/tt> will only run if the command has an exit code of 0. For example:&lt;/p>&lt;pre> exec { &quot;logrotate&quot;:&#xA; path => &quot;/usr/bin:/usr/sbin:/bin&quot;,&#xA; onlyif => &quot;test `du /var/log/messages | cut -f1` -gt 100000&quot;&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>This would run &lt;tt>logrotate&lt;/tt> only if that test returned true.&lt;/p>&lt;p>Note that this command follows the same rules as the main command, which is to say that it must be fully qualified if the path is not set. It also uses the same provider as the main command, so any behavior that differs by provider will match.&lt;/p>&lt;p>Also note that onlyif can take an array as its value, e.g.:&lt;/p>&lt;pre> onlyif => [&quot;test -f /tmp/file1&quot;, &quot;test -f /tmp/file2&quot;]&#xA;&#xA;&lt;/pre>&lt;p>This will only run the exec if &lt;i>all&lt;/i> conditions in the array return true.&lt;/p>"/>
<parameters name="cwd" documentation="&lt;p>The directory from which to run the command. If this directory does not exist, the command will fail.&lt;/p>"/>
<parameters name="creates" documentation="&lt;p>A file to look for before running the command. The command will only run if the file &lt;strong>doesn't exist.&lt;/strong>&lt;/p>&lt;p>This parameter doesn't cause Puppet to create a file; it is only useful if &lt;strong>the command itself&lt;/strong> creates a file.&lt;/p>&lt;pre> exec { &quot;tar -xf /Volumes/nfs02/important.tar&quot;:&#xA; cwd => &quot;/var/tmp&quot;,&#xA; creates => &quot;/var/tmp/myfile&quot;,&#xA; path => [&quot;/usr/bin&quot;, &quot;/usr/sbin&quot;]&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>In this example, &lt;tt>myfile&lt;/tt> is assumed to be a file inside &lt;tt>important.tar&lt;/tt>. If it is ever deleted, the exec will bring it back by re-extracting the tarball. If &lt;tt>important.tar&lt;/tt> does &lt;strong>not&lt;/strong> actually contain &lt;tt>myfile&lt;/tt>, the exec will keep running every time Puppet runs.&lt;/p>"/>
<parameters name="refreshonly" documentation="&lt;p>The command should only be run as a refresh mechanism for when a dependent object is changed. It only makes sense to use this option when this command depends on some other object; it is useful for triggering an action:&lt;/p>&lt;pre> # Pull down the main aliases file&#xA; file { &quot;/etc/aliases&quot;:&#xA; source => &quot;puppet://server/module/aliases&quot;&#xA; }&#xA;&#xA; # Rebuild the database, but only when the file changes&#xA; exec { newaliases:&#xA; path => [&quot;/usr/bin&quot;, &quot;/usr/sbin&quot;],&#xA; subscribe => File[&quot;/etc/aliases&quot;],&#xA; refreshonly => true&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>Note that only &lt;tt>subscribe&lt;/tt> and &lt;tt>notify&lt;/tt> can trigger actions, not &lt;tt>require&lt;/tt>, so it only makes sense to use &lt;tt>refreshonly&lt;/tt> with &lt;tt>subscribe&lt;/tt> or &lt;tt>notify&lt;/tt>.&lt;/p>"/>
<parameters name="environment" documentation="&lt;p>Any additional environment variables you want to set for a command. Note that if you use this to set PATH, it will override the &lt;tt>path&lt;/tt> attribute. Multiple environment variables should be specified as an array.&lt;/p>"/>
<parameters name="unless" documentation="&lt;p>If this parameter is set, then this &lt;tt>exec&lt;/tt> will run unless the command has an exit code of 0. For example:&lt;/p>&lt;pre> exec { &quot;/bin/echo root >> /usr/lib/cron/cron.allow&quot;:&#xA; path => &quot;/usr/bin:/usr/sbin:/bin&quot;,&#xA; unless => &quot;grep root /usr/lib/cron/cron.allow 2>/dev/null&quot;&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>This would add &lt;tt>root&lt;/tt> to the cron.allow file (on Solaris) unless &lt;tt>grep&lt;/tt> determines it's already there.&lt;/p>&lt;p>Note that this command follows the same rules as the main command, which is to say that it must be fully qualified if the path is not set. It also uses the same provider as the main command, so any behavior that differs by provider will match.&lt;/p>"/>
<parameters name="try_sleep" documentation="&lt;p>The time to sleep in seconds between 'tries'.&lt;/p>"/>
<parameters name="command" documentation="&lt;p>The actual command to execute. Must either be fully qualified or a search path for the command must be provided. If the command succeeds, any output produced will be logged at the instance's normal log level (usually &lt;tt>notice&lt;/tt>), but if the command fails (meaning its return code does not match the specified code) then any output is logged at the &lt;tt>err&lt;/tt> log level.&lt;/p>" namevar="true"/>
<parameters name="path" documentation=""/>
<parameters name="tries" documentation="&lt;p>The number of times execution of the command should be tried. Defaults to '1'. This many attempts will be made to execute the command until an acceptable return code is returned. Note that the timeout paramater applies to each try rather than to the complete set of tries.&lt;/p>"/>
<parameters name="group" documentation="&lt;p>The group to run the command as. This seems to work quite haphazardly on different platforms -- it is a platform issue not a Ruby or Puppet one, since the same variety exists when running commands as different users in the shell.&lt;/p>"/>
<parameters name="user" documentation="&lt;p>The user to run the command as. Note that if you use this then any error output is not currently captured. This is because of a bug within Ruby. If you are using Puppet to create this user, the exec will automatically require the user, as long as it is specified by name.&lt;/p>&lt;p>Please note that the $HOME environment variable is not automatically set when using this attribute.&lt;/p>"/>
<parameters name="refresh" documentation="&lt;p>How to refresh this command. By default, the exec is just called again when it receives an event from another resource, but this parameter allows you to define a different command for refreshing.&lt;/p>"/>
<parameters name="timeout" documentation="&lt;p>The maximum time the command should take. If the command takes longer than the timeout, the command is considered to have failed and will be stopped. The timeout is specified in seconds. The default timeout is 300 seconds and you can set it to 0 to disable the timeout.&lt;/p>"/>
</types>
<types name="package" documentation="&lt;p>Manage packages. There is a basic dichotomy in package support right now: Some package types (e.g., yum and apt) can retrieve their own package files, while others (e.g., rpm and sun) cannot. For those package formats that cannot retrieve their own files, you can use the &lt;tt>source&lt;/tt> parameter to point to the correct file.&lt;/p>&lt;p>Puppet will automatically guess the packaging format that you are using based on the platform you are on, but you can override it using the &lt;tt>provider&lt;/tt> parameter; each provider defines what it requires in order to function, and you must meet those requirements to use a given provider.&lt;/p>&lt;p>&lt;strong>Autorequires:&lt;/strong> If Puppet is managing the files specified as a package's &lt;tt>adminfile&lt;/tt>, &lt;tt>responsefile&lt;/tt>, or &lt;tt>source&lt;/tt>, the package resource will autorequire those files.&lt;/p>">
<properties name="package_settings" documentation="&lt;p>Settings that can change the contents or configuration of a package.&lt;/p>&lt;p>The formatting and effects of package_settings are provider-specific; any provider that implements them must explain how to use them in its documentation. (Our general expectation is that if a package is installed but its settings are out of sync, the provider should re-install that package with the desired settings.)&lt;/p>&lt;p>An example of how package_settings could be used is FreeBSD's port build options --- a future version of the provider could accept a hash of options, and would reinstall the port if the installed version lacked the correct settings.&lt;/p>&lt;pre> package { 'www/apache22':&#xA; package_settings => { 'SUEXEC' => false }&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>Again, check the documentation of your platform's package provider to see the actual usage.&lt;/p>"/>
<parameters name="platform" documentation="&lt;p>A read-only parameter set by the package.&lt;/p>"/>
<parameters name="status" documentation="&lt;p>A read-only parameter set by the package.&lt;/p>"/>
<parameters name="root" documentation="&lt;p>A read-only parameter set by the package.&lt;/p>"/>
<parameters name="vendor" documentation="&lt;p>A read-only parameter set by the package.&lt;/p>"/>
<parameters name="flavor" documentation="&lt;p>OpenBSD supports 'flavors', which are further specifications for which type of package you want.&lt;/p>"/>
<parameters name="allowcdrom" documentation="&lt;p>Tells apt to allow cdrom sources in the sources.list file. Normally apt will bail if you try this.&lt;/p>"/>
<parameters name="configfiles" documentation="&lt;p>Whether configfiles should be kept or replaced. Most packages types do not support this parameter. Defaults to &lt;tt>keep&lt;/tt>.&lt;/p>"/>
<parameters name="uninstall_options" documentation="&lt;p>An array of additional options to pass when uninstalling a package. These options are package-specific, and should be documented by the software vendor. For example:&lt;/p>&lt;pre> package { 'VMware Tools':&#xA; ensure => absent,&#xA; uninstall_options => [ { 'REMOVE' => 'Sync,VSS' } ],&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>Each option in the array can either be a string or a hash, where each key and value pair are interpreted in a provider specific way. Each option will automatically be quoted when passed to the uninstall command.&lt;/p>&lt;p>On Windows, this is the &lt;strong>only&lt;/strong> place in Puppet where backslash separators should be used. Note that backslashes in double-quoted strings &lt;i>must&lt;/i> be double-escaped and backslashes in single-quoted strings &lt;i>may&lt;/i> be double-escaped.&lt;/p>"/>
<parameters name="install_options" documentation="&lt;p>An array of additional options to pass when installing a package. These options are package-specific, and should be documented by the software vendor. One commonly implemented option is &lt;tt>INSTALLDIR&lt;/tt>:&lt;/p>&lt;pre> package { 'mysql':&#xA; ensure => installed,&#xA; source => 'N:/packages/mysql-5.5.16-winx64.msi',&#xA; install_options => [ '/S', { 'INSTALLDIR' => 'C:\mysql-5.5' } ],&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>Each option in the array can either be a string or a hash, where each key and value pair are interpreted in a provider specific way. Each option will automatically be quoted when passed to the install command.&lt;/p>&lt;p>On Windows, this is the &lt;strong>only&lt;/strong> place in Puppet where backslash separators should be used. Note that backslashes in double-quoted strings &lt;i>must&lt;/i> be double-escaped and backslashes in single-quoted strings &lt;i>may&lt;/i> be double-escaped.&lt;/p>"/>
<parameters name="category" documentation="&lt;p>A read-only parameter set by the package.&lt;/p>"/>
<parameters name="source" documentation="&lt;p>Where to find the actual package. This must be a local file (or on a network file system) or a URL that your specific packaging type understands; Puppet will not retrieve files for you, although you can manage packages as &lt;tt>file&lt;/tt> resources.&lt;/p>"/>
<parameters name="responsefile" documentation="&lt;p>A file containing any necessary answers to questions asked by the package. This is currently used on Solaris and Debian. The value will be validated according to system rules, but it should generally be a fully qualified path.&lt;/p>"/>
<parameters name="description" documentation="&lt;p>A read-only parameter set by the package.&lt;/p>"/>
<parameters name="allow_virtual" documentation="&lt;p>Specifies if virtual package names are allowed for install and uninstall.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The package name. This is the name that the packaging system uses internally, which is sometimes (especially on Solaris) a name that is basically useless to humans. If you want to abstract package installation, then you can use aliases to provide a common name to packages:&lt;/p>&lt;pre> # In the 'openssl' class&#xA; $ssl = $operatingsystem ? {&#xA; solaris => SMCossl,&#xA; default => openssl&#xA; }&#xA;&#xA; # It is not an error to set an alias to the same value as the&#xA; # object name.&#xA; package { $ssl:&#xA; ensure => installed,&#xA; alias => openssl&#xA; }&#xA;&#xA; . etc. .&#xA;&#xA; $ssh = $operatingsystem ? {&#xA; solaris => SMCossh,&#xA; default => openssh&#xA; }&#xA;&#xA; # Use the alias to specify a dependency, rather than&#xA; # having another selector to figure it out again.&#xA; package { $ssh:&#xA; ensure => installed,&#xA; alias => openssh,&#xA; require => Package[openssl]&#xA; }&#xA;&#xA;&#xA;&lt;/pre>" namevar="true"/>
<parameters name="instance" documentation="&lt;p>A read-only parameter set by the package.&lt;/p>"/>
<parameters name="adminfile" documentation="&lt;p>A file containing package defaults for installing packages. This is currently only used on Solaris. The value will be validated according to system rules, which in the case of Solaris means that it should either be a fully qualified path or it should be in &lt;tt>/var/sadm/install/admin&lt;/tt>.&lt;/p>"/>
<parameters name="ensure" documentation="&lt;p>What state the package should be in. On packaging systems that can retrieve new packages on their own, you can choose which package to retrieve by specifying a version number or &lt;tt>latest&lt;/tt> as the ensure value. On packaging systems that manage configuration files separately from &quot;normal&quot; system files, you can uninstall config files by specifying &lt;tt>purged&lt;/tt> as the ensure value. This defaults to &lt;tt>installed&lt;/tt>.&lt;/p>"/>
</types>
<types name="stage" documentation="">
<parameters name="name" documentation="&lt;p>The name of the stage. Use this as the value for the &lt;tt>stage&lt;/tt> metaparameter when assigning classes to this stage.&lt;/p>"/>
</types>
<types name="augeas" documentation="&lt;p>Apply a change or an array of changes to the filesystem using the augeas tool.&lt;/p>&lt;p>Requires:&lt;/p>&lt;ul>&lt;li>&lt;p>[Augeas](http://www.augeas.net)&lt;/p>&lt;/li>&lt;li>&lt;p>The ruby-augeas bindings&lt;/p>&lt;/li>&lt;/ul>&lt;p>Sample usage with a string:&lt;/p>&lt;pre> augeas{&quot;test1&quot; :&#xA; context => &quot;/files/etc/sysconfig/firstboot&quot;,&#xA; changes => &quot;set RUN_FIRSTBOOT YES&quot;,&#xA; onlyif => &quot;match other_value size > 0&quot;,&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>Sample usage with an array and custom lenses:&lt;/p>&lt;pre> augeas{&quot;jboss_conf&quot;:&#xA; context => &quot;/files&quot;,&#xA; changes => [&#xA; &quot;set etc/jbossas/jbossas.conf/JBOSS_IP $ipaddress&quot;,&#xA; &quot;set etc/jbossas/jbossas.conf/JAVA_HOME /usr&quot;,&#xA; ],&#xA; load_path => &quot;$/usr/share/jbossas/lenses&quot;,&#xA; }&#xA;&lt;/pre>">
<properties name="returns" documentation="&lt;p>The expected return code from the augeas command. Should not be set.&lt;/p>"/>
<parameters name="incl" documentation="&lt;p>Load only a specific file, e.g. &lt;tt>/etc/hosts&lt;/tt>. This can greatly speed up the execution the resource. When this parameter is set, you must also set the &lt;tt>lens&lt;/tt> parameter to indicate which lens to use.&lt;/p>"/>
<parameters name="show_diff" documentation="&lt;p>Whether to display differences when the file changes, defaulting to true. This parameter is useful for files that may contain passwords or other secret data, which might otherwise be included in Puppet reports or other insecure outputs. If the global &lt;tt>show_diff&lt;/tt> setting is false, then no diffs will be shown even if this parameter is true.&lt;/p>"/>
<parameters name="type_check" documentation="&lt;p>Whether augeas should perform typechecking. Defaults to false.&lt;/p>"/>
<parameters name="load_path" documentation="&lt;p>Optional colon-separated list or array of directories; these directories are searched for schema definitions. The agent's &lt;tt>$libdir/augeas/lenses&lt;/tt> path will always be added to support pluginsync.&lt;/p>"/>
<parameters name="root" documentation="&lt;p>A file system path; all files loaded by Augeas are loaded underneath &lt;tt>root&lt;/tt>.&lt;/p>"/>
<parameters name="onlyif" documentation="&lt;p>Optional augeas command and comparisons to control the execution of this type. Supported onlyif syntax:&lt;/p>&lt;ul>&lt;li>&lt;p>&lt;tt>get &lt;AUGEAS_PATH> &lt;COMPARATOR> &lt;STRING>&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>match &lt;MATCH_PATH> size &lt;COMPARATOR> &lt;INT>&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>match &lt;MATCH_PATH> include &lt;STRING>&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>match &lt;MATCH&lt;i>PATH> not&lt;/i>include &lt;STRING>&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>match &lt;MATCH&lt;i>PATH> == &lt;AN&lt;/i>ARRAY>&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>match &lt;MATCH&lt;i>PATH> != &lt;AN&lt;/i>ARRAY>&lt;/tt>&lt;/p>&lt;/li>&lt;/ul>&lt;p>where:&lt;/p>&lt;ul>&lt;li>&lt;p>&lt;tt>AUGEAS_PATH&lt;/tt> is a valid path scoped by the context&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>MATCH_PATH&lt;/tt> is a valid match syntax scoped by the context&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>COMPARATOR&lt;/tt> is one of &lt;tt>>, >=, !=, ==, &lt;=,&lt;/tt> or &lt;tt>&lt;&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>STRING&lt;/tt> is a string&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>INT&lt;/tt> is a number&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>AN_ARRAY&lt;/tt> is in the form &lt;tt>['a string', 'another']&lt;/tt>&lt;/p>&lt;/li>&lt;/ul>"/>
<parameters name="name" documentation="&lt;p>The name of this task. Used for uniqueness.&lt;/p>" namevar="true"/>
<parameters name="context" documentation="&lt;p>Optional context path. This value is prepended to the paths of all changes if the path is relative. If the &lt;tt>incl&lt;/tt> parameter is set, defaults to &lt;tt>/files + incl&lt;/tt>; otherwise, defaults to the empty string.&lt;/p>"/>
<parameters name="force" documentation="&lt;p>Optional command to force the augeas type to execute even if it thinks changes will not be made. This does not overide the &lt;tt>onlyif&lt;/tt> parameter.&lt;/p>"/>
<parameters name="lens" documentation="&lt;p>Use a specific lens, e.g. &lt;tt>Hosts.lns&lt;/tt>. When this parameter is set, you must also set the &lt;tt>incl&lt;/tt> parameter to indicate which file to load. The Augeas documentation includes [a list of available lenses](http://augeas.net/stock_lenses.html).&lt;/p>"/>
<parameters name="changes" documentation="&lt;p>The changes which should be applied to the filesystem. This can be a command or an array of commands. The following commands are supported:&lt;/p>&lt;ul>&lt;li>&lt;p>&lt;tt>set &lt;PATH> &lt;VALUE>&lt;/tt> --- Sets the value &lt;tt>VALUE&lt;/tt> at loction &lt;tt>PATH&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>setm &lt;PATH> &lt;SUB> &lt;VALUE>&lt;/tt> --- Sets multiple nodes (matching &lt;tt>SUB&lt;/tt> relative to &lt;tt>PATH&lt;/tt>) to &lt;tt>VALUE&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>rm &lt;PATH>&lt;/tt> --- Removes the node at location &lt;tt>PATH&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>remove &lt;PATH>&lt;/tt> --- Synonym for &lt;tt>rm&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>clear &lt;PATH>&lt;/tt> --- Sets the node at &lt;tt>PATH&lt;/tt> to &lt;tt>NULL&lt;/tt>, creating it if needed&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>clearm &lt;PATH> &lt;SUB>&lt;/tt> --- Sets multiple nodes (matching &lt;tt>SUB&lt;/tt> relative to &lt;tt>PATH&lt;/tt>) to &lt;tt>NULL&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>ins &lt;LABEL> (before|after) &lt;PATH>&lt;/tt> --- Inserts an empty node &lt;tt>LABEL&lt;/tt> either before or after &lt;tt>PATH&lt;/tt>.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>insert &lt;LABEL> &lt;WHERE> &lt;PATH>&lt;/tt> --- Synonym for &lt;tt>ins&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>mv &lt;PATH> &lt;OTHER PATH>&lt;/tt> --- Moves a node at &lt;tt>PATH&lt;/tt> to the new location &lt;tt>OTHER PATH&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>move &lt;PATH> &lt;OTHER PATH>&lt;/tt> --- Synonym for &lt;tt>mv&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>defvar &lt;NAME> &lt;PATH>&lt;/tt> --- Sets Augeas variable &lt;tt>$NAME&lt;/tt> to &lt;tt>PATH&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>defnode &lt;NAME> &lt;PATH> &lt;VALUE>&lt;/tt> --- Sets Augeas variable &lt;tt>$NAME&lt;/tt> to &lt;tt>PATH&lt;/tt>, creating it with &lt;tt>VALUE&lt;/tt> if needed&lt;/p>&lt;/li>&lt;/ul>&lt;p>If the &lt;tt>context&lt;/tt> parameter is set, that value is prepended to any relative &lt;tt>PATH&lt;/tt>s.&lt;/p>"/>
</types>
<types name="k5login" documentation="&lt;p>Manage the &lt;tt>.k5login&lt;/tt> file for a user. Specify the full path to the &lt;tt>.k5login&lt;/tt> file as the name, and an array of principals as the &lt;tt>principals&lt;/tt> attribute.&lt;/p>">
<properties name="principals" documentation="&lt;p>The principals present in the &lt;tt>.k5login&lt;/tt> file. This should be specified as an array.&lt;/p>"/>
<properties name="mode" documentation="&lt;p>The desired permissions mode of the &lt;tt>.k5login&lt;/tt> file. Defaults to &lt;tt>644&lt;/tt>.&lt;/p>"/>
<parameters name="path" documentation="&lt;p>The path to the &lt;tt>.k5login&lt;/tt> file to manage. Must be fully qualified.&lt;/p>" namevar="true"/>
<parameters name="ensure" documentation=""/>
</types>
<types name="mailalias" documentation="&lt;p>Creates an email alias in the local alias database.&lt;/p>">
<properties name="target" documentation="&lt;p>The file in which to store the aliases. Only used by those providers that write to disk.&lt;/p>"/>
<properties name="recipient" documentation="&lt;p>Where email should be sent. Multiple values should be specified as an array.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The alias name.&lt;/p>"/>
<parameters name="ensure" documentation=""/>
</types>
<types name="component" documentation="">
<parameters name="name" documentation="&lt;p>The name of the component. Generally optional.&lt;/p>" namevar="true"/>
</types>
<types name="scheduled_task" documentation="&lt;p>Installs and manages Windows Scheduled Tasks. All attributes except &lt;tt>name&lt;/tt>, &lt;tt>command&lt;/tt>, and &lt;tt>trigger&lt;/tt> are optional; see the description of the &lt;tt>trigger&lt;/tt> attribute for details on setting schedules.&lt;/p>">
<properties name="trigger" documentation="&lt;p>One or more triggers defining when the task should run. A single trigger is represented as a hash, and multiple triggers can be specified with an array of hashes.&lt;/p>&lt;p>A trigger can contain the following keys:&lt;/p>&lt;ul>&lt;li>&lt;p>For all triggers:&lt;pre>* `schedule` **(Required)** --- The schedule type. Valid values are&#xA; `daily`, `weekly`, `monthly`, or `once`.&#xA;* `start_time` **(Required)** --- The time of day when the trigger should&#xA; first become active. Several time formats will work, but we&#xA; suggest 24-hour time formatted as HH:MM.&#xA;* `start_date` --- The date when the trigger should first become active.&#xA; Defaults to the current date. You should format dates as YYYY-MM-DD,&#xA; although other date formats may work. (Under the hood, this uses `Date.parse`.)&#xA;&lt;/pre>&lt;/p>&lt;/li>&lt;li>&lt;p>For daily triggers:&lt;pre>* `every` --- How often the task should run, as a number of days. Defaults&#xA; to 1. (&quot;2&quot; means every other day, &quot;3&quot; means every three days, etc.)&#xA;&lt;/pre>&lt;/p>&lt;/li>&lt;li>&lt;p>For weekly triggers:&lt;pre>* `every` --- How often the task should run, as a number of weeks. Defaults&#xA; to 1. (&quot;2&quot; means every other week, &quot;3&quot; means every three weeks, etc.)&#xA;* `day_of_week` --- Which days of the week the task should run, as an array.&#xA; Defaults to all days. Each day must be one of `mon`, `tues`,&#xA; `wed`, `thurs`, `fri`, `sat`, `sun`, or `all`.&#xA;&lt;/pre>&lt;/p>&lt;/li>&lt;li>&lt;p>For monthly-by-date triggers:&lt;pre>* `months` --- Which months the task should run, as an array. Defaults to&#xA; all months. Each month must be an integer between 1 and 12.&#xA;* `on` **(Required)** --- Which days of the month the task should run,&#xA; as an array. Each day must beeither an integer between 1 and 31,&#xA; or the special value `last,` which is always the last day of the month.&#xA;&lt;/pre>&lt;/p>&lt;/li>&lt;li>&lt;p>For monthly-by-weekday triggers:&lt;pre>* `months` --- Which months the task should run, as an array. Defaults to&#xA; all months. Each month must be an integer between 1 and 12.&#xA;* `day_of_week` **(Required)** --- Which day of the week the task should&#xA; run, as an array with only one element. Each day must be one of `mon`,&#xA; `tues`, `wed`, `thurs`, `fri`, `sat`, `sun`, or `all`.&#xA;* `which_occurrence` **(Required)** --- The occurrence of the chosen weekday&#xA; when the task should run. Must be one of `first`, `second`, `third`,&#xA; `fourth`, `fifth`, or `last`.&#xA;&#xA;&lt;/pre>&lt;/p>&lt;/li>&lt;/ul>&lt;p>Examples:&lt;/p>&lt;pre> # Run at 8am on the 1st, 15th, and last day of the month in January, March,&#xA; # May, July, September, and November, starting after August 31st, 2011.&#xA; trigger => {&#xA; schedule => monthly,&#xA; start_date => '2011-08-31', # Defaults to current date&#xA; start_time => '08:00', # Must be specified&#xA; months => [1,3,5,7,9,11], # Defaults to all&#xA; on => [1, 15, last], # Must be specified&#xA; }&#xA;&#xA; # Run at 8am on the first Monday of the month for January, March, and May,&#xA; # starting after August 31st, 2011.&#xA; trigger => {&#xA; schedule => monthly,&#xA; start_date => '2011-08-31', # Defaults to current date&#xA; start_time => '08:00', # Must be specified&#xA; months => [1,3,5], # Defaults to all&#xA; which_occurrence => first, # Must be specified&#xA; day_of_week => [mon], # Must be specified&#xA; }&#xA;&lt;/pre>"/>
<properties name="enabled" documentation="&lt;p>Whether the triggers for this task should be enabled. This attribute affects every trigger for the task; triggers cannot be enabled or disabled individually.&lt;/p>"/>
<properties name="arguments" documentation="&lt;p>Any arguments or flags that should be passed to the command. Multiple arguments should be specified as a space-separated string.&lt;/p>"/>
<properties name="command" documentation="&lt;p>The full path to the application to run, without any arguments.&lt;/p>"/>
<properties name="working_dir" documentation="&lt;p>The full path of the directory in which to start the command.&lt;/p>"/>
<properties name="user" documentation="&lt;p>The user to run the scheduled task as. Please note that not all security configurations will allow running a scheduled task as 'SYSTEM', and saving the scheduled task under these conditions will fail with a reported error of 'The operation completed successfully'. It is recommended that you either choose another user to run the scheduled task, or alter the security policy to allow v1 scheduled tasks to run as the 'SYSTEM' account. Defaults to 'SYSTEM'.&lt;/p>&lt;p>Please also note that Puppet must be running as a privileged user in order to manage &lt;tt>scheduled_task&lt;/tt> resources. Running as an unprivileged user will result in 'access denied' errors.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The name assigned to the scheduled task. This will uniquely identify the task on the system.&lt;/p>" namevar="true"/>
<parameters name="password" documentation="&lt;p>The password for the user specified in the 'user' attribute. This is only used if specifying a user other than 'SYSTEM'. Since there is no way to retrieve the password used to set the account information for a task, this parameter will not be used to determine if a scheduled task is in sync or not.&lt;/p>"/>
<parameters name="ensure" documentation=""/>
</types>
<types name="macauthorization" documentation="&lt;p>Manage the Mac OS X authorization database. See the [Apple developer site](http://developer.apple.com/documentation/Security/Conceptual/Security&lt;i>Overview/Security&lt;/i>Services/chapter&lt;i>4&lt;/i>section_5.html) for more information.&lt;/p>&lt;p>Note that authorization store directives with hyphens in their names have been renamed to use underscores, as Puppet does not react well to hyphens in identifiers.&lt;/p>&lt;p>&lt;strong>Autorequires:&lt;/strong> If Puppet is managing the &lt;tt>/etc/authorization&lt;/tt> file, each macauthorization resource will autorequire it.&lt;/p>">
<properties name="shared" documentation="&lt;p>Whether the Security Server should mark the credentials used to gain this right as shared. The Security Server may use any shared credentials to authorize this right. For maximum security, set sharing to false so credentials stored by the Security Server for one application may not be used by another application.&lt;/p>"/>
<properties name="session_owner" documentation="&lt;p>Whether the session owner automatically matches this rule or right. Corresponds to &lt;tt>session-owner&lt;/tt> in the authorization store.&lt;/p>"/>
<properties name="allow_root" documentation="&lt;p>Corresponds to &lt;tt>allow-root&lt;/tt> in the authorization store. Specifies whether a right should be allowed automatically if the requesting process is running with &lt;tt>uid == 0&lt;/tt>. AuthorizationServices defaults this attribute to false if not specified.&lt;/p>"/>
<properties name="k_of_n" documentation="&lt;p>How large a subset of rule mechanisms must succeed for successful authentication. If there are 'n' mechanisms, then 'k' (the integer value of this parameter) mechanisms must succeed. The most common setting for this parameter is &lt;tt>1&lt;/tt>. If &lt;tt>k-of-n&lt;/tt> is not set, then every mechanism --- that is, 'n-of-n' --- must succeed.&lt;/p>"/>
<properties name="authenticate_user" documentation="&lt;p>Corresponds to &lt;tt>authenticate-user&lt;/tt> in the authorization store.&lt;/p>"/>
<properties name="auth_class" documentation="&lt;p>Corresponds to &lt;tt>class&lt;/tt> in the authorization store; renamed due to 'class' being a reserved word in Puppet.&lt;/p>"/>
<properties name="auth_type" documentation="&lt;p>Type --- this can be a &lt;tt>right&lt;/tt> or a &lt;tt>rule&lt;/tt>. The &lt;tt>comment&lt;/tt> type has not yet been implemented.&lt;/p>"/>
<properties name="rule" documentation="&lt;p>The rule(s) that this right refers to.&lt;/p>"/>
<properties name="tries" documentation="&lt;p>The number of tries allowed.&lt;/p>"/>
<properties name="group" documentation="&lt;p>A group which the user must authenticate as a member of. This must be a single group.&lt;/p>"/>
<properties name="comment" documentation="&lt;p>The &lt;tt>comment&lt;/tt> attribute for authorization resources.&lt;/p>"/>
<properties name="mechanisms" documentation="&lt;p>An array of suitable mechanisms.&lt;/p>"/>
<properties name="timeout" documentation="&lt;p>The number of seconds in which the credential used by this rule will expire. For maximum security where the user must authenticate every time, set the timeout to 0. For minimum security, remove the timeout attribute so the user authenticates only once per session.&lt;/p>"/>
<parameters name="name" documentation="&lt;p>The name of the right or rule to be managed. Corresponds to &lt;tt>key&lt;/tt> in Authorization Services. The key is the name of a rule. A key uses the same naming conventions as a right. The Security Server uses a rule's key to match the rule with a right. Wildcard keys end with a '.'. The generic rule has an empty key value. Any rights that do not match a specific rule use the generic rule.&lt;/p>" namevar="true"/>
<parameters name="ensure" documentation=""/>
</types>
<types name="filebucket" documentation="&lt;p>A repository for storing and retrieving file content by MD5 checksum. Can be local to each agent node, or centralized on a puppet master server. All puppet masters provide a filebucket service that agent nodes can access via HTTP, but you must declare a filebucket resource before any agents will do so.&lt;/p>&lt;p>Filebuckets are used for the following features:&lt;/p>&lt;ul>&lt;li>&lt;p>&lt;strong>Content backups.&lt;/strong> If the &lt;tt>file&lt;/tt> type's &lt;tt>backup&lt;/tt> attribute is set to the name of a filebucket, Puppet will back up the &lt;i>old&lt;/i> content whenever it rewrites a file; see the documentation for the &lt;tt>file&lt;/tt> type for more details. These backups can be used for manual recovery of content, but are more commonly used to display changes and differences in a tool like Puppet Dashboard.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;strong>Content distribution.&lt;/strong> The optional static compiler populates the puppet master's filebucket with the &lt;i>desired&lt;/i> content for each file, then instructs the agent to retrieve the content for a specific checksum. For more details, [see the &lt;tt>static_compiler&lt;/tt> section in the catalog indirection docs](http://docs.puppetlabs.com/references/latest/indirection.html#catalog).&lt;/p>&lt;/li>&lt;/ul>&lt;p>To use a central filebucket for backups, you will usually want to declare a filebucket resource and a resource default for the &lt;tt>backup&lt;/tt> attribute in site.pp:&lt;/p>&lt;pre> # /etc/puppet/manifests/site.pp&#xA; filebucket { 'main':&#xA; path => false, # This is required for remote filebuckets.&#xA; server => 'puppet.example.com', # Optional; defaults to the configured puppet master.&#xA; }&#xA;&#xA; File { backup => main, }&#xA;&#xA;&lt;/pre>&lt;p>Puppet master servers automatically provide the filebucket service, so this will work in a default configuration. If you have a heavily restricted &lt;tt>auth.conf&lt;/tt> file, you may need to allow access to the &lt;tt>file&lt;i>bucket&lt;/i>file&lt;/tt> endpoint.&lt;/p>">
<parameters name="port" documentation=""/>
<parameters name="name" documentation="&lt;p>The name of the filebucket.&lt;/p>" namevar="true"/>
<parameters name="path" documentation="&lt;p>The path to the &lt;i>local&lt;/i> filebucket; defaults to the value of the &lt;tt>clientbucketdir&lt;/tt> setting. To use a remote filebucket, you &lt;i>must&lt;/i> set this attribute to &lt;tt>false&lt;/tt>.&lt;/p>"/>
<parameters name="server" documentation="&lt;p>The server providing the remote filebucket service. Defaults to the value of the &lt;tt>server&lt;/tt> setting (that is, the currently configured puppet master server).&lt;/p>&lt;p>This setting is &lt;i>only&lt;/i> consulted if the &lt;tt>path&lt;/tt> attribute is set to &lt;tt>false&lt;/tt>.&lt;/p>"/>
</types>
<types name="nagios_host" documentation="">
<parameters name="notification_period" documentation=""/>
<parameters name="icon_image" documentation=""/>
<parameters name="check_interval" documentation=""/>
<parameters name="max_check_attempts" documentation=""/>
<parameters name="contacts" documentation=""/>
<parameters name="passive_checks_enabled" documentation=""/>
<parameters name="realm" documentation=""/>
<parameters name="check_freshness" documentation=""/>
<parameters name="action_url" documentation=""/>
<parameters name="event_handler_enabled" documentation=""/>
<parameters name="stalking_options" documentation=""/>
<parameters name="3d_coords" documentation=""/>
<parameters name="retry_interval" documentation=""/>
<parameters name="first_notification_delay" documentation=""/>
<parameters name="display_name" documentation=""/>
<parameters name="initial_state" documentation=""/>
<parameters name="retain_nonstatus_information" documentation=""/>
<parameters name="check_command" documentation=""/>
<parameters name="parents" documentation=""/>
<parameters name="process_perf_data" documentation=""/>
<parameters name="vrml_image" documentation=""/>
<parameters name="use" documentation=""/>
<parameters name="obsess_over_host" documentation=""/>
<parameters name="poller_tag" documentation=""/>
<parameters name="freshness_threshold" documentation=""/>
<parameters name="failure_prediction_enabled" documentation=""/>
<parameters name="notes_url" documentation=""/>
<parameters name="high_flap_threshold" documentation=""/>
<parameters name="active_checks_enabled" documentation=""/>
<parameters name="notifications_enabled" documentation=""/>
<parameters name="hostgroups" documentation=""/>
<parameters name="flap_detection_enabled" documentation=""/>
<parameters name="2d_coords" documentation=""/>
<parameters name="icon_image_alt" documentation=""/>
<parameters name="notification_options" documentation=""/>
<parameters name="notification_interval" documentation=""/>
<parameters name="ensure" documentation=""/>
<parameters name="statusmap_image" documentation=""/>
<parameters name="low_flap_threshold" documentation=""/>
<parameters name="business_impact" documentation=""/>
<parameters name="alias" documentation=""/>
<parameters name="flap_detection_options" documentation=""/>
<parameters name="check_period" documentation=""/>
<parameters name="host_name" documentation=""/>
<parameters name="register" documentation=""/>
<parameters name="address" documentation=""/>
<parameters name="event_handler" documentation=""/>
<parameters name="target" documentation=""/>
<parameters name="retain_status_information" documentation=""/>
<parameters name="notes" documentation=""/>
<parameters name="contact_groups" documentation=""/>
</types>
<types name="nagios_hostgroup" documentation="">
<parameters name="register" documentation=""/>
<parameters name="notes_url" documentation=""/>
<parameters name="realm" documentation=""/>
<parameters name="alias" documentation=""/>
<parameters name="target" documentation=""/>
<parameters name="use" documentation=""/>
<parameters name="hostgroup_members" documentation=""/>
<parameters name="notes" documentation=""/>
<parameters name="action_url" documentation=""/>
<parameters name="members" documentation=""/>
<parameters name="hostgroup_name" documentation=""/>
<parameters name="ensure" documentation=""/>
</types>
<types name="nagios_service" documentation="">
<parameters name="notification_period" documentation=""/>
<parameters name="servicegroups" documentation=""/>
<parameters name="icon_image" documentation=""/>
<parameters name="check_interval" documentation=""/>
<parameters name="max_check_attempts" documentation=""/>
<parameters name="contacts" documentation=""/>
<parameters name="passive_checks_enabled" documentation=""/>
<parameters name="check_freshness" documentation=""/>
<parameters name="action_url" documentation=""/>
<parameters name="event_handler_enabled" documentation=""/>
<parameters name="stalking_options" documentation=""/>
<parameters name="_naginator_name" documentation=""/>
<parameters name="retry_interval" documentation=""/>
<parameters name="first_notification_delay" documentation=""/>
<parameters name="display_name" documentation=""/>
<parameters name="initial_state" documentation=""/>
<parameters name="retain_nonstatus_information" documentation=""/>
<parameters name="check_command" documentation=""/>
<parameters name="process_perf_data" documentation=""/>
<parameters name="use" documentation=""/>
<parameters name="poller_tag" documentation=""/>
<parameters name="freshness_threshold" documentation=""/>
<parameters name="failure_prediction_enabled" documentation=""/>
<parameters name="hostgroup_name" documentation=""/>
<parameters name="notes_url" documentation=""/>
<parameters name="active_checks_enabled" documentation=""/>
<parameters name="normal_check_interval" documentation=""/>
<parameters name="is_volatile" documentation=""/>
<parameters name="high_flap_threshold" documentation=""/>
<parameters name="notifications_enabled" documentation=""/>
<parameters name="obsess_over_service" documentation=""/>
<parameters name="flap_detection_enabled" documentation=""/>
<parameters name="icon_image_alt" documentation=""/>
<parameters name="notification_options" documentation=""/>
<parameters name="notification_interval" documentation=""/>
<parameters name="ensure" documentation=""/>
<parameters name="low_flap_threshold" documentation=""/>
<parameters name="business_impact" documentation=""/>
<parameters name="retry_check_interval" documentation=""/>
<parameters name="flap_detection_options" documentation=""/>
<parameters name="check_period" documentation=""/>
<parameters name="host_name" documentation=""/>
<parameters name="parallelize_check" documentation=""/>
<parameters name="register" documentation=""/>
<parameters name="event_handler" documentation=""/>
<parameters name="target" documentation=""/>
<parameters name="retain_status_information" documentation=""/>
<parameters name="notes" documentation=""/>
<parameters name="service_description" documentation=""/>
<parameters name="contact_groups" documentation=""/>
</types>
<types name="nagios_servicegroup" documentation="">
<parameters name="register" documentation=""/>
<parameters name="notes_url" documentation=""/>
<parameters name="alias" documentation=""/>
<parameters name="servicegroup_members" documentation=""/>
<parameters name="servicegroup_name" documentation=""/>
<parameters name="target" documentation=""/>
<parameters name="use" documentation=""/>
<parameters name="notes" documentation=""/>
<parameters name="action_url" documentation=""/>
<parameters name="members" documentation=""/>
<parameters name="ensure" documentation=""/>
</types>
<types name="nagios_contact" documentation="">
<parameters name="host_notification_period" documentation=""/>
<parameters name="host_notification_commands" documentation=""/>
<parameters name="service_notification_period" documentation=""/>
<parameters name="use" documentation=""/>
<parameters name="address1" documentation=""/>
<parameters name="address2" documentation=""/>
<parameters name="address3" documentation=""/>
<parameters name="contact_name" documentation=""/>
<parameters name="service_notifications_enabled" documentation=""/>
<parameters name="contactgroups" documentation=""/>
<parameters name="ensure" documentation=""/>
<parameters name="pager" documentation=""/>
<parameters name="host_notification_options" documentation=""/>
<parameters name="alias" documentation=""/>
<parameters name="service_notification_options" documentation=""/>
<parameters name="register" documentation=""/>
<parameters name="address6" documentation=""/>
<parameters name="host_notifications_enabled" documentation=""/>
<parameters name="address5" documentation=""/>
<parameters name="service_notification_commands" documentation=""/>
<parameters name="address4" documentation=""/>
<parameters name="email" documentation=""/>
<parameters name="target" documentation=""/>
<parameters name="retain_nonstatus_information" documentation=""/>
<parameters name="retain_status_information" documentation=""/>
<parameters name="can_submit_commands" documentation=""/>
</types>
<types name="nagios_contactgroup" documentation="">
<parameters name="register" documentation=""/>
<parameters name="contactgroup_members" documentation=""/>
<parameters name="alias" documentation=""/>
<parameters name="target" documentation=""/>
<parameters name="use" documentation=""/>
<parameters name="members" documentation=""/>
<parameters name="contactgroup_name" documentation=""/>
<parameters name="ensure" documentation=""/>
</types>
<types name="nagios_timeperiod" documentation="">
<parameters name="register" documentation=""/>
<parameters name="timeperiod_name" documentation=""/>
<parameters name="wednesday" documentation=""/>
<parameters name="alias" documentation=""/>
<parameters name="thursday" documentation=""/>
<parameters name="monday" documentation=""/>
<parameters name="sunday" documentation=""/>
<parameters name="target" documentation=""/>
<parameters name="use" documentation=""/>
<parameters name="exclude" documentation=""/>
<parameters name="saturday" documentation=""/>
<parameters name="friday" documentation=""/>
<parameters name="tuesday" documentation=""/>
<parameters name="ensure" documentation=""/>
</types>
<types name="nagios_command" documentation="">
<parameters name="command_name" documentation=""/>
<parameters name="target" documentation=""/>
<parameters name="poller_tag" documentation=""/>
<parameters name="command_line" documentation=""/>
<parameters name="ensure" documentation=""/>
</types>
<types name="nagios_servicedependency" documentation="">
<parameters name="_naginator_name" documentation=""/>
<parameters name="inherits_parent" documentation=""/>
<parameters name="notification_failure_criteria" documentation=""/>
<parameters name="use" documentation=""/>
<parameters name="host_name" documentation=""/>
<parameters name="hostgroup_name" documentation=""/>
<parameters name="register" documentation=""/>
<parameters name="dependent_service_description" documentation=""/>
<parameters name="dependent_host_name" documentation=""/>
<parameters name="execution_failure_criteria" documentation=""/>
<parameters name="target" documentation=""/>
<parameters name="dependency_period" documentation=""/>
<parameters name="service_description" documentation=""/>
<parameters name="dependent_hostgroup_name" documentation=""/>
<parameters name="ensure" documentation=""/>
</types>
<types name="nagios_serviceescalation" documentation="">
<parameters name="escalation_options" documentation=""/>
<parameters name="first_notification" documentation=""/>
<parameters name="_naginator_name" documentation=""/>
<parameters name="servicegroup_name" documentation=""/>
<parameters name="use" documentation=""/>
<parameters name="host_name" documentation=""/>
<parameters name="hostgroup_name" documentation=""/>
<parameters name="contacts" documentation=""/>
<parameters name="register" documentation=""/>
<parameters name="escalation_period" documentation=""/>
<parameters name="target" documentation=""/>
<parameters name="service_description" documentation=""/>
<parameters name="last_notification" documentation=""/>
<parameters name="notification_interval" documentation=""/>
<parameters name="ensure" documentation=""/>
<parameters name="contact_groups" documentation=""/>
</types>
<types name="nagios_hostdependency" documentation="">
<parameters name="register" documentation=""/>
<parameters name="dependent_host_name" documentation=""/>
<parameters name="_naginator_name" documentation=""/>
<parameters name="notification_failure_criteria" documentation=""/>
<parameters name="execution_failure_criteria" documentation=""/>
<parameters name="inherits_parent" documentation=""/>
<parameters name="dependency_period" documentation=""/>
<parameters name="target" documentation=""/>
<parameters name="use" documentation=""/>
<parameters name="host_name" documentation=""/>
<parameters name="dependent_hostgroup_name" documentation=""/>
<parameters name="hostgroup_name" documentation=""/>
<parameters name="ensure" documentation=""/>
</types>
<types name="nagios_hostescalation" documentation="">
<parameters name="register" documentation=""/>
<parameters name="escalation_options" documentation=""/>
<parameters name="first_notification" documentation=""/>
<parameters name="_naginator_name" documentation=""/>
<parameters name="escalation_period" documentation=""/>
<parameters name="target" documentation=""/>
<parameters name="use" documentation=""/>
<parameters name="host_name" documentation=""/>
<parameters name="last_notification" documentation=""/>
<parameters name="notification_interval" documentation=""/>
<parameters name="contact_groups" documentation=""/>
<parameters name="contacts" documentation=""/>
<parameters name="hostgroup_name" documentation=""/>
<parameters name="ensure" documentation=""/>
</types>
<types name="nagios_hostextinfo" documentation="">
<parameters name="statusmap_image" documentation=""/>
<parameters name="icon_image" documentation=""/>
<parameters name="vrml_image" documentation=""/>
<parameters name="use" documentation=""/>
<parameters name="3d_coords" documentation=""/>
<parameters name="host_name" documentation=""/>
<parameters name="notes_url" documentation=""/>
<parameters name="register" documentation=""/>
<parameters name="target" documentation=""/>
<parameters name="2d_coords" documentation=""/>
<parameters name="icon_image_alt" documentation=""/>
<parameters name="notes" documentation=""/>
<parameters name="ensure" documentation=""/>
</types>
<types name="nagios_serviceextinfo" documentation="">
<parameters name="register" documentation=""/>
<parameters name="notes_url" documentation=""/>
<parameters name="_naginator_name" documentation=""/>
<parameters name="icon_image" documentation=""/>
<parameters name="target" documentation=""/>
<parameters name="use" documentation=""/>
<parameters name="icon_image_alt" documentation=""/>
<parameters name="notes" documentation=""/>
<parameters name="host_name" documentation=""/>
<parameters name="service_description" documentation=""/>
<parameters name="action_url" documentation=""/>
<parameters name="ensure" documentation=""/>
</types>
<typeFragments name="file">
<properties name="owner" documentation="&lt;p>The user to whom the file should belong. Argument can be a user name or a user ID.&lt;/p>&lt;p>On Windows, a group (such as &quot;Administrators&quot;) can be set as a file's owner and a user (such as &quot;Administrator&quot;) can be set as a file's group; however, a file's owner and group shouldn't be the same. (If the owner is also the group, files with modes like &lt;tt>0640&lt;/tt> will cause log churn, as they will always appear out of sync.)&lt;/p>"/>
</typeFragments>
<typeFragments name="file">
<parameters name="checksum" documentation="&lt;p>The checksum type to use when determining whether to replace a file's contents.&lt;/p>&lt;p>The default checksum type is md5.&lt;/p>"/>
</typeFragments>
<typeFragments name="file">
<properties name="content" documentation="&lt;p>The desired contents of a file, as a string. This attribute is mutually exclusive with &lt;tt>source&lt;/tt> and &lt;tt>target&lt;/tt>.&lt;/p>&lt;p>Newlines and tabs can be specified in double-quoted strings using standard escaped syntax --- \n for a newline, and \t for a tab.&lt;/p>&lt;p>With very small files, you can construct content strings directly in the manifest...&lt;/p>&lt;pre> define resolve(nameserver1, nameserver2, domain, search) {&#xA; $str = &quot;search $search&#xA; domain $domain&#xA; nameserver $nameserver1&#xA; nameserver $nameserver2&#xA; &quot;&#xA;&#xA; file { &quot;/etc/resolv.conf&quot;:&#xA; content => &quot;$str&quot;,&#xA; }&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>...but for larger files, this attribute is more useful when combined with the [template](http://docs.puppetlabs.com/references/latest/function.html#template) or [file](http://docs.puppetlabs.com/references/latest/function.html#file) function.&lt;/p>"/>
</typeFragments>
<typeFragments name="file">
<properties name="ctime" documentation="&lt;p>A read-only state to check the file ctime. On most modern \*nix-like systems, this is the time of the most recent change to the owner, group, permissions, or content of the file.&lt;/p>"/>
</typeFragments>
<typeFragments name="file">
<parameters name="source" documentation="&lt;p>A source file, which will be copied into place on the local system. Values can be URIs pointing to remote files, or fully qualified paths to files available on the local system (including files on NFS shares or Windows mapped drives). This attribute is mutually exclusive with &lt;tt>content&lt;/tt> and &lt;tt>target&lt;/tt>.&lt;/p>&lt;p>The available URI schemes are &lt;b>puppet&lt;/b> and &lt;b>file&lt;/b>. &lt;b>Puppet&lt;/b> URIs will retrieve files from Puppet's built-in file server, and are usually formatted as:&lt;/p>&lt;p>&lt;tt>puppet:///modules/name&lt;i>of&lt;/i>module/filename&lt;/tt>&lt;/p>&lt;p>This will fetch a file from a module on the puppet master (or from a local module when using puppet apply). Given a &lt;tt>modulepath&lt;/tt> of &lt;tt>/etc/puppetlabs/puppet/modules&lt;/tt>, the example above would resolve to &lt;tt>/etc/puppetlabs/puppet/modules/name&lt;i>of&lt;/i>module/files/filename&lt;/tt>.&lt;/p>&lt;p>Unlike &lt;tt>content&lt;/tt>, the &lt;tt>source&lt;/tt> attribute can be used to recursively copy directories if the &lt;tt>recurse&lt;/tt> attribute is set to &lt;tt>true&lt;/tt> or &lt;tt>remote&lt;/tt>. If a source directory contains symlinks, use the &lt;tt>links&lt;/tt> attribute to specify whether to recreate links or follow them.&lt;/p>&lt;p>Multiple &lt;tt>source&lt;/tt> values can be specified as an array, and Puppet will use the first source that exists. This can be used to serve different files to different system types:&lt;/p>&lt;pre> file { &quot;/etc/nfs.conf&quot;:&#xA; source => [&#xA; &quot;puppet:///modules/nfs/conf.$host&quot;,&#xA; &quot;puppet:///modules/nfs/conf.$operatingsystem&quot;,&#xA; &quot;puppet:///modules/nfs/conf&quot;&#xA; ]&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>Alternately, when serving directories recursively, multiple sources can be combined by setting the &lt;tt>sourceselect&lt;/tt> attribute to &lt;tt>all&lt;/tt>.&lt;/p>"/>
</typeFragments>
<typeFragments name="file">
<parameters name="source_permissions" documentation="&lt;p>Whether (and how) Puppet should copy owner, group, and mode permissions from the &lt;tt>source&lt;/tt> to &lt;tt>file&lt;/tt> resources when the permissions are not explicitly specified. (In all cases, explicit permissions will take precedence.) Valid values are &lt;tt>use&lt;/tt>, &lt;tt>use&lt;i>when&lt;/i>creating&lt;/tt>, and &lt;tt>ignore&lt;/tt>:&lt;/p>&lt;ul>&lt;li>&lt;p>&lt;tt>use&lt;/tt> (the default) will cause Puppet to apply the owner, group, and mode from the &lt;tt>source&lt;/tt> to any files it is managing.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>use&lt;i>when&lt;/i>creating&lt;/tt> will only apply the owner, group, and mode from the &lt;tt>source&lt;/tt> when creating a file; existing files will not have their permissions overwritten.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>ignore&lt;/tt> will never apply the owner, group, or mode from the &lt;tt>source&lt;/tt> when managing a file. When creating new files without explicit permissions, the permissions they receive will depend on platform-specific behavior. On POSIX, Puppet will use the umask of the user it is running as. On Windows, Puppet will use the default DACL associated with the user it is running as.&lt;/p>&lt;/li>&lt;/ul>"/>
</typeFragments>
<typeFragments name="file">
<properties name="group" documentation="&lt;p>Which group should own the file. Argument can be either a group name or a group ID.&lt;/p>&lt;p>On Windows, a user (such as &quot;Administrator&quot;) can be set as a file's group and a group (such as &quot;Administrators&quot;) can be set as a file's owner; however, a file's owner and group shouldn't be the same. (If the owner is also the group, files with modes like &lt;tt>0640&lt;/tt> will cause log churn, as they will always appear out of sync.)&lt;/p>"/>
</typeFragments>
<typeFragments name="file">
<parameters name="selinux_ignore_defaults" documentation="&lt;p>If this is set then Puppet will not ask SELinux (via matchpathcon) to supply defaults for the SELinux attributes (seluser, selrole, seltype, and selrange). In general, you should leave this set at its default and only set it to true when you need Puppet to not try to fix SELinux labels automatically.&lt;/p>"/>
</typeFragments>
<typeFragments name="file">
<properties name="seluser" documentation="&lt;p>What the SELinux user component of the context of the file should be. Any valid SELinux user component is accepted. For example &lt;tt>user_u&lt;/tt>. If not specified it defaults to the value returned by matchpathcon for the file, if any exists. Only valid on systems with SELinux support enabled.&lt;/p>"/>
</typeFragments>
<typeFragments name="file">
<properties name="selrole" documentation="&lt;p>What the SELinux role component of the context of the file should be. Any valid SELinux role component is accepted. For example &lt;tt>role_r&lt;/tt>. If not specified it defaults to the value returned by matchpathcon for the file, if any exists. Only valid on systems with SELinux support enabled.&lt;/p>"/>
</typeFragments>
<typeFragments name="file">
<properties name="seltype" documentation="&lt;p>What the SELinux type component of the context of the file should be. Any valid SELinux type component is accepted. For example &lt;tt>tmp_t&lt;/tt>. If not specified it defaults to the value returned by matchpathcon for the file, if any exists. Only valid on systems with SELinux support enabled.&lt;/p>"/>
</typeFragments>
<typeFragments name="file">
<properties name="selrange" documentation="&lt;p>What the SELinux range component of the context of the file should be. Any valid SELinux range component is accepted. For example &lt;tt>s0&lt;/tt> or &lt;tt>SystemHigh&lt;/tt>. If not specified it defaults to the value returned by matchpathcon for the file, if any exists. Only valid on systems with SELinux support enabled and that have support for MCS (Multi-Category Security).&lt;/p>"/>
</typeFragments>
<typeFragments name="file">
<properties name="mode" documentation="&lt;p>The desired permissions mode for the file, in symbolic or numeric notation. This value should be specified as a quoted string; do not use un-quoted numbers to represent file modes.&lt;/p>&lt;p>The &lt;tt>file&lt;/tt> type uses traditional Unix permission schemes and translates them to equivalent permissions for systems which represent permissions differently, including Windows. For detailed ACL controls on Windows, you can leave &lt;tt>mode&lt;/tt> unmanaged and use [the puppetlabs/acl module.](https://forge.puppetlabs.com/puppetlabs/acl)&lt;/p>&lt;p>Numeric modes should use the standard four-digit octal notation of &lt;tt>&lt;setuid/setgid/sticky>&lt;owner>&lt;group>&lt;other>&lt;/tt> (e.g. 0644). Each of the &quot;owner,&quot; &quot;group,&quot; and &quot;other&quot; digits should be a sum of the permissions for that class of users, where read = 4, write = 2, and execute/search = 1. When setting numeric permissions for directories, Puppet sets the search permission wherever the read permission is set.&lt;/p>&lt;p>Symbolic modes should be represented as a string of comma-separated permission clauses, in the form &lt;tt>&lt;who>&lt;op>&lt;perm>&lt;/tt>:&lt;/p>&lt;ul>&lt;li>&lt;p>&quot;Who&quot; should be u (user), g (group), o (other), and/or a (all)&lt;/p>&lt;/li>&lt;li>&lt;p>&quot;Op&quot; should be = (set exact permissions), + (add select permissions), or - (remove select permissions)&lt;/p>&lt;/li>&lt;li>&lt;p>&quot;Perm&quot; should be one or more of:&lt;pre>* r (read)&#xA;* w (write)&#xA;* x (execute/search)&#xA;* t (sticky)&#xA;* s (setuid/setgid)&#xA;* X (execute/search if directory or if any one user can execute)&#xA;* u (user's current permissions)&#xA;* g (group's current permissions)&#xA;* o (other's current permissions)&#xA;&#xA;&lt;/pre>&lt;/p>&lt;/li>&lt;/ul>&lt;p>Thus, mode &lt;tt>0664&lt;/tt> could be represented symbolically as either &lt;tt>a=r,ug&lt;tt>w&lt;/tt> or &lt;tt>ug=rw,o=r&lt;/tt>. However, symbolic modes are more expressive than numeric modes: a mode only affects the specified bits, so &lt;tt>mode => 'ug&lt;/tt>w'&lt;/tt> will set the user and group write bits, without affecting any other bits.&lt;/p>&lt;p>See the manual page for GNU or BSD &lt;tt>chmod&lt;/tt> for more details on numeric and symbolic modes.&lt;/p>&lt;p>On Windows, permissions are translated as follows:&lt;/p>&lt;ul>&lt;li>&lt;p>Owner and group names are mapped to Windows SIDs&lt;/p>&lt;/li>&lt;li>&lt;p>The &quot;other&quot; class of users maps to the &quot;Everyone&quot; SID&lt;/p>&lt;/li>&lt;li>&lt;p>The read/write/execute permissions map to the &lt;tt>FILE&lt;i>GENERIC&lt;/i>READ&lt;/tt>, &lt;tt>FILE&lt;i>GENERIC&lt;/i>WRITE&lt;/tt>, and &lt;tt>FILE&lt;i>GENERIC&lt;/i>EXECUTE&lt;/tt> access rights; a file's owner always has the &lt;tt>FULL_CONTROL&lt;/tt> right&lt;/p>&lt;/li>&lt;li>&lt;p>&quot;Other&quot; users can't have any permissions a file's group lacks, and its group can't have any permissions its owner lacks; that is, 0644 is an acceptable mode, but 0464 is not.&lt;/p>&lt;/li>&lt;/ul>"/>
</typeFragments>
<typeFragments name="file">
<properties name="type" documentation="&lt;p>A read-only state to check the file type.&lt;/p>"/>
</typeFragments>
<typeFragments name="file">
<properties name="ensure" documentation="&lt;p>Whether the file should exist, and if so what kind of file it should be. Possible values are &lt;tt>present&lt;/tt>, &lt;tt>absent&lt;/tt>, &lt;tt>file&lt;/tt>, &lt;tt>directory&lt;/tt>, and &lt;tt>link&lt;/tt>.&lt;/p>&lt;ul>&lt;li>&lt;p>&lt;tt>present&lt;/tt> will accept any form of file existence, and will create a normal file if the file is missing. (The file will have no content unless the &lt;tt>content&lt;/tt> or &lt;tt>source&lt;/tt> attribute is used.)&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>absent&lt;/tt> will make sure the file doesn't exist, deleting it if necessary.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>file&lt;/tt> will make sure it's a normal file, and enables use of the &lt;tt>content&lt;/tt> or &lt;tt>source&lt;/tt> attribute.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>directory&lt;/tt> will make sure it's a directory, and enables use of the &lt;tt>source&lt;/tt>, &lt;tt>recurse&lt;/tt>, &lt;tt>recurselimit&lt;/tt>, &lt;tt>ignore&lt;/tt>, and &lt;tt>purge&lt;/tt> attributes.&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>link&lt;/tt> will make sure the file is a symlink, and &lt;strong>requires&lt;/strong> that you also set the &lt;tt>target&lt;/tt> attribute. Symlinks are supported on all Posix systems and on Windows Vista / 2008 and higher. On Windows, managing symlinks requires puppet agent's user account to have the &quot;Create Symbolic Links&quot; privilege; this can be configured in the &quot;User Rights Assignment&quot; section in the Windows policy editor. By default, puppet agent runs as the Administrator account, which does have this privilege.&lt;/p>&lt;/li>&lt;/ul>&lt;p>Puppet avoids destroying directories unless the &lt;tt>force&lt;/tt> attribute is set to &lt;tt>true&lt;/tt>. This means that if a file is currently a directory, setting &lt;tt>ensure&lt;/tt> to anything but &lt;tt>directory&lt;/tt> or &lt;tt>present&lt;/tt> will cause Puppet to skip managing the resource and log either a notice or an error.&lt;/p>&lt;p>There is one other non-standard value for &lt;tt>ensure&lt;/tt>. If you specify the path to another file as the ensure value, it is equivalent to specifying &lt;tt>link&lt;/tt> and using that path as the &lt;tt>target&lt;/tt>:&lt;/p>&lt;pre> # Equivalent resources:&#xA;&#xA; file { &quot;/etc/inetd.conf&quot;:&#xA; ensure => &quot;/etc/inet/inetd.conf&quot;,&#xA; }&#xA;&#xA; file { &quot;/etc/inetd.conf&quot;:&#xA; ensure => link,&#xA; target => &quot;/etc/inet/inetd.conf&quot;,&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>However, we recommend using &lt;tt>link&lt;/tt> and &lt;tt>target&lt;/tt> explicitly, since this behavior can be harder to read.&lt;/p>"/>
</typeFragments>
<typeFragments name="file">
<properties name="target" documentation="&lt;p>The target for creating a link. Currently, symlinks are the only type supported. This attribute is mutually exclusive with &lt;tt>source&lt;/tt> and &lt;tt>content&lt;/tt>.&lt;/p>&lt;p>Symlink targets can be relative, as well as absolute:&lt;/p>&lt;pre> # (Useful on Solaris)&#xA; file { &quot;/etc/inetd.conf&quot;:&#xA; ensure => link,&#xA; target => &quot;inet/inetd.conf&quot;,&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>Directories of symlinks can be served recursively by instead using the &lt;tt>source&lt;/tt> attribute, setting &lt;tt>ensure&lt;/tt> to &lt;tt>directory&lt;/tt>, and setting the &lt;tt>links&lt;/tt> attribute to &lt;tt>manage&lt;/tt>.&lt;/p>"/>
</typeFragments>
<typeFragments name="file">
<properties name="mtime" documentation="&lt;p>A read-only state to check the file mtime. On \*nix-like systems, this is the time of the most recent change to the content of the file.&lt;/p>"/>
</typeFragments>
<metaType name="Type" documentation="">
<parameters name="loglevel" documentation="&lt;p>Sets the level that information will be logged. The log levels have the biggest impact when logs are sent to syslog (which is currently the default).&lt;/p>&lt;p>The order of the log levels, in decreasing priority, is:&lt;/p>&lt;ul>&lt;li>&lt;p>&lt;tt>crit&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>emerg&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>alert&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>err&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>warning&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>notice&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>info&lt;/tt> / &lt;tt>verbose&lt;/tt>&lt;/p>&lt;/li>&lt;li>&lt;p>&lt;tt>debug&lt;/tt>&lt;/p>&lt;/li>&lt;/ul>"/>
<parameters name="schedule" documentation="&lt;p>A schedule to govern when Puppet is allowed to manage this resource. The value of this metaparameter must be the &lt;tt>name&lt;/tt> of a &lt;tt>schedule&lt;/tt> resource. This means you must declare a schedule resource, then refer to it by name; see [the docs for the &lt;tt>schedule&lt;/tt> type](http://docs.puppetlabs.com/references/latest/type.html#schedule) for more info.&lt;/p>&lt;pre> schedule { 'everyday':&#xA; period => daily,&#xA; range => &quot;2-4&quot;&#xA; }&#xA;&#xA; exec { &quot;/usr/bin/apt-get update&quot;:&#xA; schedule => 'everyday'&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>Note that you can declare the schedule resource anywhere in your manifests, as long as it ends up in the final compiled catalog.&lt;/p>"/>
<parameters name="subscribe" documentation="&lt;p>One or more resources that this resource depends on, expressed as [resource references](http://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#resource-references). Multiple resources can be specified as an array of references. When this attribute is present:&lt;/p>&lt;ul>&lt;li>&lt;p>The subscribed resource(s) will be applied &lt;i>before&lt;/i> this resource.&lt;/p>&lt;/li>&lt;li>&lt;p>If Puppet makes changes to any of the subscribed resources, it will cause this resource to &lt;i>refresh.&lt;/i> (Refresh behavior varies by resource type: services will restart, mounts will unmount and re-mount, etc. Not all types can refresh.)&lt;/p>&lt;/li>&lt;/ul>&lt;p>This is one of the four relationship metaparameters, along with &lt;tt>before&lt;/tt>, &lt;tt>require&lt;/tt>, and &lt;tt>notify&lt;/tt>. For more context, including the alternate chaining arrow (&lt;tt>->&lt;/tt> and &lt;tt>~>&lt;/tt>) syntax, see [the language page on relationships](http://docs.puppetlabs.com/puppet/latest/reference/lang_relationships.html).&lt;/p>"/>
<parameters name="alias" documentation="&lt;p>Creates an alias for the resource. Puppet uses this internally when you provide a symbolic title and an explicit namevar value:&lt;/p>&lt;pre> file { 'sshdconfig':&#xA; path => $operatingsystem ? {&#xA; solaris => '/usr/local/etc/ssh/sshd_config',&#xA; default => '/etc/ssh/sshd_config',&#xA; },&#xA; source => '...'&#xA; }&#xA;&#xA; service { 'sshd':&#xA; subscribe => File['sshdconfig'],&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>When you use this feature, the parser sets &lt;tt>sshdconfig&lt;/tt> as the title, and the library sets that as an alias for the file so the dependency lookup in &lt;tt>Service['sshd']&lt;/tt> works. You can use this metaparameter yourself, but note that aliases generally only work for creating relationships; anything else that refers to an existing resource (such as amending or overriding resource attributes in an inherited class) must use the resource's exact title. For example, the following code will not work:&lt;/p>&lt;pre> file { '/etc/ssh/sshd_config':&#xA; owner => root,&#xA; group => root,&#xA; alias => 'sshdconfig',&#xA; }&#xA;&#xA; File['sshdconfig'] {&#xA; mode => 644,&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>There's no way here for the Puppet parser to know that these two stanzas should be affecting the same file.&lt;/p>"/>
<parameters name="before" documentation="&lt;p>One or more resources that depend on this resource, expressed as [resource references](http://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#resource-references). Multiple resources can be specified as an array of references. When this attribute is present:&lt;/p>&lt;ul>&lt;li>&lt;p>This resource will be applied &lt;i>before&lt;/i> the dependent resource(s).&lt;/p>&lt;/li>&lt;/ul>&lt;p>This is one of the four relationship metaparameters, along with &lt;tt>require&lt;/tt>, &lt;tt>notify&lt;/tt>, and &lt;tt>subscribe&lt;/tt>. For more context, including the alternate chaining arrow (&lt;tt>->&lt;/tt> and &lt;tt>~>&lt;/tt>) syntax, see [the language page on relationships](http://docs.puppetlabs.com/puppet/latest/reference/lang_relationships.html).&lt;/p>"/>
<parameters name="tag" documentation="&lt;p>Add the specified tags to the associated resource. While all resources are automatically tagged with as much information as possible (e.g., each class and definition containing the resource), it can be useful to add your own tags to a given resource.&lt;/p>&lt;p>Multiple tags can be specified as an array:&lt;/p>&lt;pre> file {'/etc/hosts':&#xA; ensure => file,&#xA; source => 'puppet:///modules/site/hosts',&#xA; mode => 0644,&#xA; tag => ['bootstrap', 'minimumrun', 'mediumrun'],&#xA; }&#xA;&#xA;&lt;/pre>&lt;p>Tags are useful for things like applying a subset of a host's configuration with [the &lt;tt>tags&lt;/tt> setting](/references/latest/configuration.html#tags) (e.g. &lt;tt>puppet agent --test --tags bootstrap&lt;/tt>) or filtering alerts with [the &lt;tt>tagmail&lt;/tt> report processor](http://docs.puppetlabs.com/references/latest/report.html#tagmail).&lt;/p>"/>
<parameters name="noop" documentation="&lt;p>Whether to apply this resource in noop mode.&lt;/p>&lt;p>When applying a resource in noop mode, Puppet will check whether it is in sync, like it does when running normally. However, if a resource attribute is not in the desired state (as declared in the catalog), Puppet will take no action, and will instead report the changes it &lt;i>would&lt;/i> have made. These simulated changes will appear in the report sent to the puppet master, or be shown on the console if running puppet agent or puppet apply in the foreground. The simulated changes will not send refresh events to any subscribing or notified resources, although Puppet will log that a refresh event &lt;i>would&lt;/i> have been sent.&lt;/p>&lt;p>&lt;strong>Important note:&lt;/strong> [The &lt;tt>noop&lt;/tt> setting](http://docs.puppetlabs.com/references/latest/configuration.html#noop) allows you to globally enable or disable noop mode, but it will &lt;i>not&lt;/i> override the &lt;tt>noop&lt;/tt> metaparameter on individual resources. That is, the value of the global &lt;tt>noop&lt;/tt> setting will &lt;i>only&lt;/i> affect resources that do not have an explicit value set for their &lt;tt>noop&lt;/tt> attribute.&lt;/p>"/>
<parameters name="notify" documentation="&lt;p>One or more resources that depend on this resource, expressed as [resource references](http://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#resource-references). Multiple resources can be specified as an array of references. When this attribute is present:&lt;/p>&lt;ul>&lt;li>&lt;p>This resource will be applied &lt;i>before&lt;/i> the notified resource(s).&lt;/p>&lt;/li>&lt;li>&lt;p>If Puppet makes changes to this resource, it will cause all of the notified resources to &lt;i>refresh.&lt;/i> (Refresh behavior varies by resource type: services will restart, mounts will unmount and re-mount, etc. Not all types can refresh.)&lt;/p>&lt;/li>&lt;/ul>&lt;p>This is one of the four relationship metaparameters, along with &lt;tt>before&lt;/tt>, &lt;tt>require&lt;/tt>, and &lt;tt>subscribe&lt;/tt>. For more context, including the alternate chaining arrow (&lt;tt>->&lt;/tt> and &lt;tt>~>&lt;/tt>) syntax, see [the language page on relationships](http://docs.puppetlabs.com/puppet/latest/reference/lang_relationships.html).&lt;/p>"/>
<parameters name="audit" documentation="&lt;p>Marks a subset of this resource's unmanaged attributes for auditing. Accepts an attribute name, an array of attribute names, or &lt;tt>all&lt;/tt>.&lt;/p>&lt;p>Auditing a resource attribute has two effects: First, whenever a catalog is applied with puppet apply or puppet agent, Puppet will check whether that attribute of the resource has been modified, comparing its current value to the previous run; any change will be logged alongside any actions performed by Puppet while applying the catalog.&lt;/p>&lt;p>Secondly, marking a resource attribute for auditing will include that attribute in inspection reports generated by puppet inspect; see the puppet inspect documentation for more details.&lt;/p>&lt;p>Managed attributes for a resource can also be audited, but note that changes made by Puppet will be logged as additional modifications. (I.e. if a user manually edits a file whose contents are audited and managed, puppet agent's next two runs will both log an audit notice: the first run will log the user's edit and then revert the file to the desired state, and the second run will log the edit made by Puppet.)&lt;/p>"/>
<parameters name="require" documentation="&lt;p>One or more resources that this resource depends on, expressed as [resource references](http://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#resource-references). Multiple resources can be specified as an array of references. When this attribute is present:&lt;/p>&lt;ul>&lt;li>&lt;p>The required resource(s) will be applied &lt;strong>before&lt;/strong> this resource.&lt;/p>&lt;/li>&lt;/ul>&lt;p>This is one of the four relationship metaparameters, along with &lt;tt>before&lt;/tt>, &lt;tt>notify&lt;/tt>, and &lt;tt>subscribe&lt;/tt>. For more context, including the alternate chaining arrow (&lt;tt>->&lt;/tt> and &lt;tt>~>&lt;/tt>) syntax, see [the language page on relationships](http://docs.puppetlabs.com/puppet/latest/reference/lang_relationships.html).&lt;/p>"/>
<parameters name="stage" documentation="&lt;p>Which run stage this class should reside in.&lt;/p>&lt;p>&lt;strong>Note: This metaparameter can only be used on classes,&lt;/strong> and only when declaring them with the resource-like syntax. It cannot be used on normal resources or on classes declared with &lt;tt>include&lt;/tt>.&lt;/p>&lt;p>By default, all classes are declared in the &lt;tt>main&lt;/tt> stage. To assign a class to a different stage, you must:&lt;/p>&lt;ul>&lt;li>&lt;p>Declare the new stage as a [&lt;tt>stage&lt;/tt> resource](http://docs.puppetlabs.com/references/latest/type.html#stage).&lt;/p>&lt;/li>&lt;li>&lt;p>Declare an order relationship between the new stage and the &lt;tt>main&lt;/tt> stage.&lt;/p>&lt;/li>&lt;li>&lt;p>Use the resource-like syntax to declare the class, and set the &lt;tt>stage&lt;/tt> metaparameter to the name of the desired stage.&lt;/p>&lt;/li>&lt;/ul>&lt;p>For example:&lt;/p>&lt;pre> stage { 'pre':&#xA; before => Stage['main'],&#xA; }&#xA;&#xA; class { 'apt-updates':&#xA; stage => 'pre',&#xA; }&#xA;&#xA;&lt;/pre>"/>
<parameters name="provider" documentation=""/>
</metaType>
<metaVariables name="name" documentation=""/>
<metaVariables name="title" documentation=""/>
<metaVariables name="module_name" documentation="&lt;p>The name of the containing module&lt;/p>"/>
<metaVariables name="caller_module_name" documentation="&lt;p>The name of the calling module&lt;/p>"/>
</pptp:PuppetDistribution>