Skip to content

Commit

Permalink
archive install_method creates data_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
othalla committed Oct 28, 2018
1 parent e032add commit 13dcbfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
group => 'grafana',
}

file { "${::grafana::data_dir}/plugins":
file { [${::grafana::data_dir}, "${::grafana::data_dir}/plugins"]:
ensure => directory,
owner => 'grafana',
group => 'grafana',
Expand Down
4 changes: 4 additions & 0 deletions spec/classes/grafana_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@
it { is_expected.to contain_user('grafana').that_comes_before('File[/usr/share/grafana]') }
end

describe 'create data_dir' do
it { is_expected.to contain_file('/var/lib/grafana').with_ensure('directory') }
end

describe 'manage install_dir' do
it { is_expected.to contain_file(install_dir).with_ensure('directory') }
it { is_expected.to contain_file(install_dir).with_group('grafana').with_owner('grafana') }
Expand Down

0 comments on commit 13dcbfa

Please sign in to comment.