Skip to content

Commit 659253d

Browse files
ekohlmmoll
authored andcommitted
Document classes and defines
1 parent f7377ad commit 659253d

File tree

19 files changed

+144
-50
lines changed

19 files changed

+144
-50
lines changed

manifests/agent.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Puppet agent
2+
# @api private
23
class puppet::agent {
34
contain puppet::agent::install
45
contain puppet::agent::config

manifests/agent/config.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Puppet agent configuration
2+
# @api private
23
class puppet::agent::config inherits puppet::config {
34
puppet::config::agent{
45
'classfile': value => $::puppet::classfile;

manifests/agent/install.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Install the puppet client installation
1+
# Install the puppet agent package
2+
# @api private
23
class puppet::agent::install(
34
$manage_packages = $::puppet::manage_packages,
45
$package_name = $::puppet::client_package,

manifests/agent/service.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Set up the puppet client as a service
1+
# Set up the puppet agent as a service
2+
# @api private
23
class puppet::agent::service {
34

45
case $::puppet::runmode {

manifests/agent/service/cron.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Set up running the agent via cron
2+
# @api private
13
class puppet::agent::service::cron (
24
Boolean $enabled = false,
35
) {

manifests/agent/service/daemon.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Set up running the agent as a daemon
2+
# @api private
13
class puppet::agent::service::daemon (
24
Boolean $enabled = false,
35
) {

manifests/agent/service/systemd.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Set up running the agent via a systemd timer
2+
# @api private
13
class puppet::agent::service::systemd (
24
Boolean $enabled = false,
35
) {

manifests/config.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Set up the puppet config
2+
# @api private
23
class puppet::config(
34
$allow_any_crl_auth = $::puppet::allow_any_crl_auth,
45
$auth_allowed = $::puppet::auth_allowed,

manifests/config/agent.pp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# Set a config entry in the [agent] section
2+
#
3+
# @param value
4+
# The value for the config entry
5+
# @param key
6+
# The key of the config entry
7+
# @param joiner
8+
# How to join an array value into a string
19
define puppet::config::agent (
210
Variant[Array[String], Boolean, String, Integer] $value,
311
String $key = $name,

manifests/config/entry.pp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# Set a config entry
2+
#
3+
# @param key
4+
# The key of the config entry
5+
# @param value
6+
# The value for the config entry
7+
# @param section
8+
# The section for the config entry
9+
# @param sectionorder
10+
# How to order the section. This is only used on the first definition of the
11+
# section via ensure_resource.
12+
# @param joiner
13+
# How to join an array value into a string
114
define puppet::config::entry (
215
String $key,
316
Variant[Array[String], Boolean, String, Integer] $value,

0 commit comments

Comments
 (0)