diff --git a/puppet/modules/secretsgit/files/gitconfig b/puppet/modules/secretsgit/files/gitconfig new file mode 100644 index 000000000..e853fd6f8 --- /dev/null +++ b/puppet/modules/secretsgit/files/gitconfig @@ -0,0 +1,2 @@ +[safe] + directory = * diff --git a/puppet/modules/secretsgit/manifests/init.pp b/puppet/modules/secretsgit/manifests/init.pp index acc68875c..1c79113d2 100644 --- a/puppet/modules/secretsgit/manifests/init.pp +++ b/puppet/modules/secretsgit/manifests/init.pp @@ -16,6 +16,14 @@ Stdlib::Absolutepath $path = '/srv/secretsgit', Array[String] $users = [], ) { + file { '/etc/gitconfig': + ensure => file, + owner => 'root', + group => 'root', + mode => '0644', + content => file('secretsgit/gitconfig'), + } + group { $group: ensure => present, }