Puppet Class: dotfiles

Inherits:
dotfiles::params
Defined in:
manifests/init.pp

Overview

Parameters:

  • dotfiles_install_path (Any) (defaults to: $dotfiles::params::dotfiles_install_path)
  • dotfiles_install_script (Any) (defaults to: $dotfiles::params::dotfiles_install_script)
  • dotfiles_repository_url (Any) (defaults to: $dotfiles::params::dotfiles_repository_url)
  • epel_release_source (Any) (defaults to: $dotfiles::params::epel_release_source)
  • github_ssh_key (Any) (defaults to: $dotfiles::params::github_ssh_key)
  • ssh_config_dir (Any) (defaults to: $dotfiles::params::ssh_config_dir)
  • ssh_known_hosts_file_path (Any) (defaults to: $dotfiles::params::ssh_known_hosts_file_path)
  • use_ssh_key (Any) (defaults to: $dotfiles::params::use_ssh_key)


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'manifests/init.pp', line 3

class dotfiles (

  $dotfiles_install_path     = $dotfiles::params::dotfiles_install_path,
  $dotfiles_install_script   = $dotfiles::params::dotfiles_install_script,
  $dotfiles_repository_url   = $dotfiles::params::dotfiles_repository_url,
  $epel_release_source       = $dotfiles::params::epel_release_source,
  $github_ssh_key            = $dotfiles::params::github_ssh_key,
  $ssh_config_dir            = $dotfiles::params::ssh_config_dir,
  $ssh_known_hosts_file_path = $dotfiles::params::ssh_known_hosts_file_path,
  $use_ssh_key               = $dotfiles::params::use_ssh_key,

) inherits dotfiles::params {

  validate_string($dotfiles_install_path)
  validate_string($dotfiles_install_script)
  validate_string($dotfiles_repository_url)
  validate_string($github_ssh_key)
  validate_string($epel_release_source)
  validate_string($ssh_config_dir)
  validate_string($ssh_known_hosts_file_path)
  validate_bool($use_ssh_key)

  anchor { 'dotfiles::begin': }
  -> class { 'dotfiles::package':
    epel_release_source => $epel_release_source,
  }
  -> class { 'dotfiles::config':
    github_ssh_key            => $github_ssh_key,
    ssh_config_dir            => $ssh_config_dir,
    ssh_known_hosts_file_path => $ssh_known_hosts_file_path,
    use_ssh_key               => $use_ssh_key,
  }
  -> class { 'dotfiles::install':
    dotfiles_install_path   => $dotfiles_install_path,
    dotfiles_install_script => $dotfiles_install_script,
    dotfiles_repository_url => $dotfiles_repository_url,
    use_ssh_key             => $use_ssh_key,
  }
  -> anchor { 'dotfiles::end': }

}