summaryrefslogtreecommitdiff
path: root/modules/profiles/manifests/common.pp
blob: ec7197ddd20dd513b391a45872016ee753131702 (plain)
1
2
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
class profiles::common {

  file_line { 'hosts ourself':
    ensure => present,
    line   => "::1\t${::fqdn}\t${facts['name']}",
    path   => '/etc/hosts',
  }

  # extlib__puppet_config contains our current settings.
  # This saves whatever was passed in the --server flag
  # to disk
  #   ini_setting { 'Puppet Server':
  #     ensure       => present,
  #     path         => '/etc/puppetlabs/puppet/puppet.conf',
  #     section      => 'main',
  #     setting      => 'server',
  #     indent_char  => ' ',
  #     indent_width => 4,
  #     value        => $facts['extlib__puppet_config']['main']['server'],
  #   }
  # 
  #   # Manage puppet manually, instead of through theforeman/puppet,
  #   # since they haven't bothered to document their module.
  #   service { 'puppet':
  #     ensure => running,
  #     enable => true,
  #   }
}