Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hammer-cli-foreman-scc-manager package #1215

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions manifests/cli/scc_manager.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# = Hammer foreman_scc_manager plugin
#
# This installs the foreman_scc_manager plugin for Hammer CLI
#
class foreman::cli::scc_manager {
foreman::cli::plugin { 'foreman_scc_manager':
}
}
3 changes: 2 additions & 1 deletion spec/acceptance/foreman_cli_plugins_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class { 'foreman::cli':
include foreman::cli::kubevirt
include foreman::cli::openscap
include foreman::cli::resource_quota
include foreman::cli::scc_manager
}
include foreman::cli::ansible
include foreman::cli::bootdisk
Expand Down Expand Up @@ -52,7 +53,7 @@ class { 'foreman::cli':
end

if fact('os.family') == 'RedHat'
['azure_rm', 'kubevirt', 'openscap', 'resource_quota'].each do |plugin|
['azure_rm', 'kubevirt', 'openscap', 'resource_quota', 'scc_manager'].each do |plugin|
describe package("rubygem-hammer_cli_foreman_#{plugin}") do
it { is_expected.to be_installed }
end
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/cli_plugins_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
supported = on_supported_os

['ansible', 'azure', 'bootdisk', 'discovery', 'katello', 'kubevirt', 'openscap', 'remote_execution', 'resource_quota',
'ssh', 'tasks', 'templates', 'virt_who_configure', 'webhooks', 'puppet', 'google', 'rh_cloud'].each do |plugin|
'scc_manager', 'ssh', 'tasks', 'templates', 'virt_who_configure', 'webhooks', 'puppet', 'google', 'rh_cloud'].each do |plugin|
describe "foreman::cli::#{plugin}" do
supported.each do |os, os_facts|
context "on #{os}" do
Expand Down
Loading