Add main git config
This commit is contained in:
parent
3619274e5f
commit
b75af38998
2 changed files with 21 additions and 0 deletions
|
@ -50,6 +50,15 @@ class config {
|
||||||
source => 'puppet:///modules/config/gitignore_global'
|
source => 'puppet:///modules/config/gitignore_global'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { 'Git config':
|
||||||
|
ensure => file,
|
||||||
|
path => '/home/jake/.gitconfig',
|
||||||
|
mode => '0644',
|
||||||
|
owner => 'jake',
|
||||||
|
group => 'users',
|
||||||
|
content => template('config/gitconfig.conf.erb')
|
||||||
|
}
|
||||||
|
|
||||||
file { 'Rofi config directory':
|
file { 'Rofi config directory':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
|
|
12
modules/config/templates/gitconfig.conf.erb
Normal file
12
modules/config/templates/gitconfig.conf.erb
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[core]
|
||||||
|
excludesfile = ~/.config/.gitignore
|
||||||
|
|
||||||
|
[user]
|
||||||
|
name = Jake Howard
|
||||||
|
|
||||||
|
[include]
|
||||||
|
<% if @trusted['hostname'] == 'too-work' -%>
|
||||||
|
path = ~/.dotfiles/git/work.conf
|
||||||
|
<% else -%>
|
||||||
|
path = ~/.dotfiles/git/personal.conf
|
||||||
|
<% end -%>
|
Loading…
Reference in a new issue