Move gitlab profile out to its own 'profile' module

Prior to this commit, there was a gitlab profile in the site dir
of this control-repo.

After this commit, the profile has been moved to it's own repo
where it can be used more generally and not tightly coupled to this
repository.

As a result, the gitlab role has been removed from this repository
as well.
This commit is contained in:
Nick Walker 2016-03-24 08:27:17 -07:00
parent 9503f54349
commit ff6f140529
3 changed files with 4 additions and 29 deletions

View File

@ -44,3 +44,7 @@ mod 'pltraining-rbac',
mod 'rampup_profile_puppetmaster', mod 'rampup_profile_puppetmaster',
:git => 'https://github.com/PuppetLabs-RampUpProgram/RampUp_profile_puppetmaster', :git => 'https://github.com/PuppetLabs-RampUpProgram/RampUp_profile_puppetmaster',
:branch => 'master' :branch => 'master'
mod 'rampup_profile_gitlab',
:git => 'https://github.com/PuppetLabs-RampUpProgram/RampUp_profile_gitlab',
:branch => 'master'

View File

@ -1,24 +0,0 @@
class profile::gitlab {
file { ['/etc/gitlab', '/etc/gitlab/ssl'] :
ensure => directory,
}
file { "/etc/gitlab/ssl/${::fqdn}.key" :
ensure => file,
source => "${::settings::privatekeydir}/${::trusted['certname']}.pem",
notify => Exec['gitlab_reconfigure'],
}
file { "/etc/gitlab/ssl/${::fqdn}.crt" :
ensure => file,
source => "${::settings::certdir}/${::trusted['certname']}.pem",
notify => Exec['gitlab_reconfigure'],
}
class { 'gitlab':
external_url => hiera( 'gms_server_url', "https://${::fqdn}") ,
require => File["/etc/gitlab/ssl/${::fqdn}.key", "/etc/gitlab/ssl/${::fqdn}.key"],
}
}

View File

@ -1,5 +0,0 @@
class role::gitlab {
include profile::gitlab
}