2017-08-12 18:47:17 +01:00
|
|
|
class config::git {
|
2017-10-17 09:41:56 +01:00
|
|
|
$global_gitignore = '/home/jake/.config/.gitignore'
|
|
|
|
|
|
|
|
file { $global_gitignore:
|
2017-08-12 18:47:17 +01:00
|
|
|
ensure => file,
|
2017-10-08 18:52:37 +01:00
|
|
|
mode => '0644',
|
2017-08-12 18:47:17 +01:00
|
|
|
source => 'puppet:///modules/config/gitignore_global'
|
|
|
|
}
|
|
|
|
|
2017-10-17 09:41:56 +01:00
|
|
|
-> exec { "install global git config":
|
|
|
|
command => "git config --global core.excludesfile '$global_gitignore'",
|
|
|
|
user => 'jake',
|
|
|
|
unless => 'git config --global core.excludesfile'
|
2017-08-12 18:47:17 +01:00
|
|
|
}
|
|
|
|
}
|