Skip to content

Commit

Permalink
Ensure repo is managed before package installation
Browse files Browse the repository at this point in the history
Fixes dgolja#56
  • Loading branch information
Nick Irvine committed Oct 31, 2016
1 parent 76c31ef commit c1c1f44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion manifests/server/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
}

if $influxdb::server::manage_repos {
class { 'influxdb::repo': }
class { 'influxdb::repo':
before => Package['influxdb'],
}
}

if $influxdb::server::manage_install {
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/influxdb_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
facts
end
it { should contain_class('influxdb::server::install') }
it { should contain_class('influxdb::repo') }
it { should contain_class('influxdb::repo').that_comes_before('Package[influxdb]') }
it { should contain_class('influxdb::server::config') }
it { should contain_class('influxdb::server::service') }
case facts[:osfamily]
Expand Down

0 comments on commit c1c1f44

Please sign in to comment.