Currently the puppet-gitlab has a dependency on
puppetlabs/git
however if you use
class { 'git': }
before calling the puppet-gitlab module you will install git 1.7.1 (when using centos 6) which is not compatible with gitlab
To install git 1.7.10:
class {'repoforge' :
enabled => ['rpmforge', 'extras'],
}
package { 'git-1.7.10.4-1.el6.rfx.x86_64':
ensure => 'installed',
provider => 'yum',
require => Class['repoforge']
}
To install git 1.8.3
exec { 'download IUS Community repo':
command => 'wget -O /etc/yum.repos.d/PUIAS_6_computational.repo https://gitlab.com/gitlab-org/gitlab-recipes/raw/master/install/centos/PUIAS_6_computational.repo',
timeout => 0,
}
exec { 'download IUS Community repo key':
command => 'wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-puias http://springdale.math.ias.edu/data/puias/6/x86_64/os/RPM-GPG-KEY-puias',
timeout => 0,
require => Exec['download IUS Community repo'],
}
exec { 'install IUS Community repo':
command => 'rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-puias',
timeout => 0,
require => Exec['download IUS Community repo key'],
}
package { 'git.x86_64':
ensure => 'installed',
provider => 'yum',
require => Exec['install IUS Community repo']
}
I good enhancement to the the puppet-gitlab would be to do a
git --version and check that it is greater or equal to 1.7.10
Hopefully on centos 7 the default git installed from yum with be a higher version.
Currently the puppet-gitlab has a dependency on
puppetlabs/git
however if you use
class { 'git': }
before calling the puppet-gitlab module you will install git 1.7.1 (when using centos 6) which is not compatible with gitlab
To install git 1.7.10:
class {'repoforge' :
enabled => ['rpmforge', 'extras'],
}
package { 'git-1.7.10.4-1.el6.rfx.x86_64':
ensure => 'installed',
provider => 'yum',
require => Class['repoforge']
}
To install git 1.8.3
exec { 'download IUS Community repo':
command => 'wget -O /etc/yum.repos.d/PUIAS_6_computational.repo https://gitlab.com/gitlab-org/gitlab-recipes/raw/master/install/centos/PUIAS_6_computational.repo',
timeout => 0,
}
exec { 'download IUS Community repo key':
command => 'wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-puias http://springdale.math.ias.edu/data/puias/6/x86_64/os/RPM-GPG-KEY-puias',
timeout => 0,
require => Exec['download IUS Community repo'],
}
exec { 'install IUS Community repo':
command => 'rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-puias',
timeout => 0,
require => Exec['download IUS Community repo key'],
}
package { 'git.x86_64':
ensure => 'installed',
provider => 'yum',
require => Exec['install IUS Community repo']
}
I good enhancement to the the puppet-gitlab would be to do a
git --version and check that it is greater or equal to 1.7.10
Hopefully on centos 7 the default git installed from yum with be a higher version.