dotfiles/modules/config/manifests/git.pp

15 lines
403 B
Puppet

class config::git {
$global_gitignore = '/home/jake/.config/.gitignore'
file { $global_gitignore:
ensure => file,
mode => '0644',
source => 'puppet:///modules/config/gitignore_global'
}
-> exec { "install global git config":
command => "git config --global core.excludesfile '$global_gitignore'",
user => 'jake',
unless => 'git config --global core.excludesfile'
}
}