Resource Type: git_config

Defined in:
lib/puppet/type/git_config.rb
Providers:
git_config

Overview

Used to configure git

Examples

git_config { 'user.name':
  value => 'John Doe',
}

git_config { 'user.email':
  value => 'john.doe@example.com',
}

git_config { 'user.name':
  value   => 'Mike Color',
  user    => 'vagrant',
  require => Class['git'],
}

git_config { 'http.sslCAInfo':
  value   => $companyCAroot,
  user    => 'root',
  scope   => 'system',
  require => Company::Certificate['companyCAroot'],
}

Properties

  • value

    The config value. Example Mike Color or john.doe@example.com

Parameters

  • key

    The configuration key. Example: user.email.

  • name (namevar)

    The name of the config

  • provider

    The specific backend to use for this ‘git_config` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.

  • scope (defaults to: global)

    The scope of the configuration, can be system or global. Default value: global

  • section (defaults to: "")

    Deprecated: the configuration section. For example, to set user.email, use section => "user", key => "email".

  • user (defaults to: root)

    The user for which the config will be set. Default value: root