Puppet Class: git::globalconfig

Defined in:
modules/git/manifests/globalconfig.pp

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'modules/git/manifests/globalconfig.pp', line 1

class git::globalconfig {
  file { '/etc/gitconfig.d':
    ensure  => directory,
    owner   => 'root',
    group   => 'root',
    mode    => '0555',
    recurse => true,
    purge   => true,
  }

  file { '/etc/gitconfig.d/00-header.gitconfig':
      ensure  => file,
      content => "# vim: set ts=4 sw=4 et:\n# This file is managed by Puppet\n",
      owner   => 'root',
      group   => 'root',
      mode    => '0444',
      notify  => Exec['update-gitconfig'],
  }

  exec { 'update-gitconfig':
      command     => '/bin/cat /etc/gitconfig.d/*.gitconfig > /etc/gitconfig',
      refreshonly => true,
  }
}