Defined Type: git::config

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

Overview

git::config

Generate a git configuration file based on a hash of gitconfig values.

The file will be owned by root since it is fully managed by puppet.

Parameters:

[*title*]
  Full path to the file to be managed.
[*settings*]
  Hash of gitconfig section name, each should be in turn a hash
  of configuration name => value.

Parameters:



14
15
16
17
18
19
20
21
22
23
24
# File 'modules/git/manifests/config.pp', line 14

define git::config(Hash[String, Hash[String, String]] $settings) {

  file { $title:
    ensure  => present,
    owner   => 'root',
    group   => 'root',
    mode    => '0444',
    content => template( 'git/gitconfig.erb' ),
  }

}