Puppet Class: etckeeper

Defined in:
manifests/init.pp

Overview

Installs etckeeper.

Examples:

Declaring the class

include etckeeper

Choosing a specific VCS instead of the default

class { 'etckeeper':
  vcs => 'bzr',
}

Forcing the user name & email for commits

class { 'etckeeper':
  vcs            => 'git',
  vcs_user_name  => 'Alice',
  vcs_user_email => 'alice@example.com',
}

Parameters:

  • avoid_commit_before_install (Optional[Boolean])
  • avoid_daily_autocommits (Optional[Boolean])
  • avoid_special_file_warning (Optional[Boolean])
  • bzr_commit_options (Optional[String])
  • conf_dir (Stdlib::Absolutepath)

    Top-level configuration directory, usually /etc/etckeeper.

  • darcs_commit_options (Optional[String])
  • git_commit_options (Optional[String])
  • hg_commit_options (Optional[String])
  • highlevel_package_manager (Etckeeper::PackageManager::HighLevel)
  • lowlevel_package_manager (Etckeeper::PackageManager::LowLevel)
  • manage_vcs_package (Boolean)
  • package_name (String)

    The name of the package.

  • push_remotes (Optional[Array[String, 1]])
  • vcs (Etckeeper::VCS)
  • vcs_packages (Hash[Etckeeper::VCS, String])

    Hash of VCS to the package that provides it.

  • vcs_user_email (Optional[String[1]])
  • vcs_user_name (Optional[String[1]])

See Also:

Since:

  • 1.0.0



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'manifests/init.pp', line 39

class etckeeper (
  Optional[Boolean]                    $avoid_commit_before_install,
  Optional[Boolean]                    $avoid_daily_autocommits,
  Optional[Boolean]                    $avoid_special_file_warning,
  Optional[String]                     $bzr_commit_options,
  Stdlib::Absolutepath                 $conf_dir,
  Optional[String]                     $darcs_commit_options,
  Optional[String]                     $git_commit_options,
  Optional[String]                     $hg_commit_options,
  Etckeeper::PackageManager::HighLevel $highlevel_package_manager,
  Etckeeper::PackageManager::LowLevel  $lowlevel_package_manager,
  Boolean                              $manage_vcs_package,
  String                               $package_name,
  Optional[Array[String, 1]]           $push_remotes,
  Etckeeper::VCS                       $vcs,
  Hash[Etckeeper::VCS, String]         $vcs_packages,
  Optional[String[1]]                  $vcs_user_email,
  Optional[String[1]]                  $vcs_user_name,
) {

  contain etckeeper::install
  contain etckeeper::config

  Class['etckeeper::install'] -> Class['etckeeper::config']
}