diff --git a/manifests/plugin/openbolt.pp b/manifests/plugin/openbolt.pp new file mode 100644 index 000000000..088ceff02 --- /dev/null +++ b/manifests/plugin/openbolt.pp @@ -0,0 +1,9 @@ +# +# @summary Install the OpenBolt plugin +# +# @see https://github.com/overlookinfra/foreman_openbolt +# +class foreman::plugin::openbolt { + foreman::plugin { 'openbolt': + } +} diff --git a/spec/acceptance/foreman_openbolt_spec.rb b/spec/acceptance/foreman_openbolt_spec.rb new file mode 100644 index 000000000..72285ffc4 --- /dev/null +++ b/spec/acceptance/foreman_openbolt_spec.rb @@ -0,0 +1,21 @@ +require 'spec_helper_acceptance' + +describe 'Scenario: install foreman with openbolt' do + before(:context) { purge_foreman } + + it_behaves_like 'an idempotent resource' do + let(:manifest) do + <<-PUPPET + include foreman + include foreman::plugin::openbolt + PUPPET + end + end + + it_behaves_like 'the foreman application' + + describe curl_command("https://admin:changeme@#{host_inventory['fqdn']}/api/plugins", cacert: '/etc/foreman-certs/certificate.pem') do + its(:stdout) { should include('foreman_openbolt') } + its(:exit_status) { should eq 0 } + end +end diff --git a/spec/classes/plugin/openbolt_spec.rb b/spec/classes/plugin/openbolt_spec.rb new file mode 100644 index 000000000..dea696827 --- /dev/null +++ b/spec/classes/plugin/openbolt_spec.rb @@ -0,0 +1,5 @@ +require 'spec_helper' + +describe 'foreman::plugin::openbolt' do + include_examples 'basic foreman plugin tests', 'openbolt' +end