diff --git a/manifests/init.pp b/manifests/init.pp index 705c884d..5403c1d5 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -649,10 +649,9 @@ class tempest( command => ['tempest', 'init', $tempest_workspace], path => ['/bin', '/usr/bin'], refreshonly => true, - require => Package['tempest'], + subscribe => Package['tempest'], } Package<| tag == 'tempest-package' |> -> Exec['tempest-workspace'] - Package['tempest'] ~> Exec['tempest-workspace'] Exec['tempest-workspace'] -> Tempest_config<||> $tempest_conf = "${tempest_workspace}/etc/tempest.conf" diff --git a/spec/classes/tempest_init_spec.rb b/spec/classes/tempest_init_spec.rb index a6c0671b..2589ce6b 100644 --- a/spec/classes/tempest_init_spec.rb +++ b/spec/classes/tempest_init_spec.rb @@ -445,7 +445,7 @@ describe 'tempest' do :command => ['tempest', 'init', '/var/lib/tempest'], :path => ['/bin', '/usr/bin'], :refreshonly => true, - :require => 'Package[tempest]' + :subscribe => 'Package[tempest]' ) end end