Skip to content

Commit c74c2d7

Browse files
Bastian Schmidtevgeni
authored andcommitted
Add hammer-cli-foreman-scc-manager package
1 parent 1243e82 commit c74c2d7

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

manifests/cli/scc_manager.pp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# = Hammer foreman_scc_manager plugin
2+
#
3+
# This installs the foreman_scc_manager plugin for Hammer CLI
4+
#
5+
class foreman::cli::scc_manager {
6+
foreman::cli::plugin { 'foreman_scc_manager':
7+
}
8+
}

spec/acceptance/foreman_cli_plugins_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class { 'foreman::cli':
1919
include foreman::cli::kubevirt
2020
include foreman::cli::openscap
2121
include foreman::cli::resource_quota
22+
include foreman::cli::scc_manager
2223
}
2324
include foreman::cli::ansible
2425
include foreman::cli::bootdisk
@@ -53,7 +54,7 @@ class { 'foreman::cli':
5354
end
5455

5556
if fact('os.family') == 'RedHat'
56-
['azure_rm', 'kubevirt', 'openscap', 'resource_quota'].each do |plugin|
57+
['azure_rm', 'kubevirt', 'openscap', 'resource_quota', 'scc_manager'].each do |plugin|
5758
describe package("rubygem-hammer_cli_foreman_#{plugin}") do
5859
it { is_expected.to be_installed }
5960
end

spec/classes/cli_plugins_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
supported = on_supported_os
44

55
['ansible', 'azure', 'bootdisk', 'discovery', 'katello', 'kubevirt', 'openscap', 'remote_execution', 'resource_quota',
6-
'salt', 'ssh', 'tasks', 'templates', 'virt_who_configure', 'webhooks', 'puppet', 'google', 'rh_cloud'].each do |plugin|
6+
'scc_manager', 'salt', 'ssh', 'tasks', 'templates', 'virt_who_configure', 'webhooks', 'puppet', 'google', 'rh_cloud'].each do |plugin|
77
describe "foreman::cli::#{plugin}" do
88
supported.each do |os, os_facts|
99
context "on #{os}" do

0 commit comments

Comments
 (0)