Skip to content

Commit 1bceeea

Browse files
committed
Add openbolt plugin support
1 parent 915cd91 commit 1bceeea

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

manifests/plugin/openbolt.pp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# @summary Install the OpenBolt plugin
3+
#
4+
# @see https://github.com/overlookinfra/foreman_openbolt
5+
#
6+
class foreman::plugin::openbolt {
7+
foreman::plugin { 'openbolt':
8+
}
9+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
require 'spec_helper_acceptance'
2+
3+
describe 'Scenario: install foreman with openbolt' do
4+
before(:context) { purge_foreman }
5+
6+
it_behaves_like 'an idempotent resource' do
7+
let(:manifest) do
8+
<<-PUPPET
9+
include foreman
10+
include foreman::plugin::openbolt
11+
PUPPET
12+
end
13+
end
14+
15+
it_behaves_like 'the foreman application'
16+
17+
describe command("curl --cacert /etc/foreman-certs/certificate.pem --user admin:changeme https://$(hostname -f)/api/plugins | jq -r .results[].id | grep foreman_openbolt") do
18+
its(:stdout) { should match('foreman_openbolt') }
19+
its(:exit_status) { should eq 0 }
20+
end
21+
end
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
require 'spec_helper'
2+
3+
describe 'foreman::plugin::openbolt' do
4+
include_examples 'basic foreman plugin tests', 'openbolt'
5+
end

0 commit comments

Comments
 (0)