Skip to content

Commit

Permalink
Merge pull request voxpupuli#252 from LongLiveCHIEF/remove-params-man…
Browse files Browse the repository at this point in the history
…ifest

removed params.pp in accordance with module best practices design
  • Loading branch information
LongLiveCHIEF authored Jul 8, 2018
2 parents 0103a00 + 214058e commit b9cb5b7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 23 deletions.
1 change: 1 addition & 0 deletions data/RedHat/6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gitlab::service_enable: false
2 changes: 2 additions & 0 deletions hiera.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ defaults:
data_hash: yaml_data

hierarchy:
- name: 'OS Major Release Overrides'
path: "%{facts.os.family}/%{facts.os.release.major}.yaml"
- name: 'Operating System Family'
path: "%{facts.os.family}.yaml"
- name: 'Defaults'
Expand Down
6 changes: 3 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,13 @@
String $service_user = 'root',
String $service_group = 'root',
# gitlab specific
String $rake_exec = $::gitlab::params::rake_exec,
String $rake_exec = '/usr/bin/gitlab-rake',
Optional[Hash] $ci_redis = undef,
Optional[Hash] $ci_unicorn = undef,
Boolean $config_manage = true,
Stdlib::Absolutepath $config_file = '/etc/gitlab/gitlab.rb',
Optional[String] $custom_hooks_dir = undef,
Stdlib::Httpurl $external_url = $::gitlab::params::external_url,
Stdlib::Httpurl $external_url = "http://${facts['networking']['fqdn']}",
Optional[Integer[1, 65565]] $external_port = undef,
Optional[Hash] $geo_postgresql = undef,
Boolean $geo_primary_role = false,
Expand Down Expand Up @@ -401,7 +401,7 @@
Array $backup_cron_skips = [],
Hash $custom_hooks = {},
Hash $global_hooks = {},
) inherits gitlab::params {
) {

include gitlab::omnibus_package_repository

Expand Down
19 changes: 0 additions & 19 deletions manifests/params.pp

This file was deleted.

1 change: 0 additions & 1 deletion spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
end

context 'with default params' do
it { is_expected.to contain_class('gitlab::params') }
it { is_expected.to contain_class('gitlab::host_config').that_comes_before('Class[gitlab::install]') }
it { is_expected.to contain_class('gitlab::omnibus_config').that_comes_before('Class[gitlab::install]') }
it { is_expected.to contain_class('gitlab::install').that_comes_before('Class[gitlab::service]') }
Expand Down

0 comments on commit b9cb5b7

Please sign in to comment.