Skip to content

Commit 92ce7c5

Browse files
committed
ensure config notifies mosquitto
it contains certs and stuff
1 parent 96eab5e commit 92ce7c5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

manifests/plugin/remote_execution/script.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,6 @@
7878
ssl_key => $foreman_proxy::ssl_key,
7979
}
8080

81+
Class['foreman_proxy::config'] ~> Class['foreman_proxy::plugin::remote_execution::mosquitto']
82+
8183
}

spec/classes/foreman_proxy__plugin__remote_execution__script_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
:ensure => 'absent',
3838
})
3939
end
40+
41+
it 'should configure before mosquitto' do
42+
should contain_class('foreman_proxy::config').that_notifies('Class[foreman_proxy::plugin::remote_execution::mosquitto]')
43+
end
4044
end
4145

4246
describe 'with override parameters' do
@@ -115,6 +119,10 @@
115119
:ensure => 'present',
116120
})
117121
end
122+
123+
it 'should configure before mosquitto' do
124+
should contain_class('foreman_proxy::config').that_notifies('Class[foreman_proxy::plugin::remote_execution::mosquitto]')
125+
end
118126
end
119127
end
120128
end

0 commit comments

Comments
 (0)