From 3b337ab27f2fc4cbd9f41ceec453e1cdc5258b55 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 12 Jul 2012 10:23:37 -0700 Subject: [PATCH] Add .gitconfig for jenkins user. Change-Id: I2f873eb15eb58f3193cec508c610540f3cc26845 --- modules/jenkins_slave/files/gitconfig | 3 +++ modules/jenkins_slave/manifests/jenkinsuser.pp | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 modules/jenkins_slave/files/gitconfig diff --git a/modules/jenkins_slave/files/gitconfig b/modules/jenkins_slave/files/gitconfig new file mode 100644 index 0000000000..a6f99e8aee --- /dev/null +++ b/modules/jenkins_slave/files/gitconfig @@ -0,0 +1,3 @@ +[user] + name = OpenStack Jenkins + email = jenkins@openstack.org diff --git a/modules/jenkins_slave/manifests/jenkinsuser.pp b/modules/jenkins_slave/manifests/jenkinsuser.pp index 54a4e77ca0..3d4618277e 100644 --- a/modules/jenkins_slave/manifests/jenkinsuser.pp +++ b/modules/jenkins_slave/manifests/jenkinsuser.pp @@ -53,6 +53,16 @@ define jenkinsuser($ensure = present, $sudo = false, $ssh_key) { ensure => 'absent', require => File['jenkinshome'], } + + file { 'jenkinsgitconfig': + name => '/home/jenkins/.gitconfig', + owner => 'jenkins', + group => 'jenkins', + mode => 640, + ensure => 'present', + source => "puppet:///modules/jenkins_slave/gitconfig", + require => File['jenkinshome'], + } file { 'jenkinssshdir': name => '/home/jenkins/.ssh',