Extract git to separate file
This commit is contained in:
parent
dc527c216b
commit
c5329aed95
2 changed files with 14 additions and 10 deletions
13
modules/config/manifests/git.pp
Normal file
13
modules/config/manifests/git.pp
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
class config::git {
|
||||||
|
file { '/home/jake/.gitignore_global':
|
||||||
|
ensure => file,
|
||||||
|
mode => "0644",
|
||||||
|
source => 'puppet:///modules/config/gitignore_global'
|
||||||
|
}
|
||||||
|
|
||||||
|
git::config { "global ignore" :
|
||||||
|
key => 'core.excludesfile',
|
||||||
|
value => '/home/jake/.gitignore_global',
|
||||||
|
user => "jake"
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
class config {
|
class config {
|
||||||
include 'config::vim'
|
include 'config::vim'
|
||||||
|
include 'config::git'
|
||||||
|
|
||||||
file { '/etc/libinput-gestures.conf':
|
file { '/etc/libinput-gestures.conf':
|
||||||
ensure => file,
|
ensure => file,
|
||||||
|
@ -19,15 +20,5 @@ class config {
|
||||||
source => 'puppet:///modules/config/uniemoji.json'
|
source => 'puppet:///modules/config/uniemoji.json'
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/home/jake/.gitignore_global':
|
|
||||||
ensure => file,
|
|
||||||
mode => "0644",
|
|
||||||
source => 'puppet:///modules/config/gitignore_global'
|
|
||||||
}
|
|
||||||
|
|
||||||
git::config { "global ignore" :
|
|
||||||
key => 'core.excludesfile',
|
|
||||||
value => '/home/jake/.gitignore_global',
|
|
||||||
user => "jake"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue