diff --git a/manifests/cli/rh_cloud.pp b/manifests/cli/rh_cloud.pp new file mode 100644 index 000000000..c639c7a1b --- /dev/null +++ b/manifests/cli/rh_cloud.pp @@ -0,0 +1,10 @@ +# = Hammer foreman_rh_cloud plugin +# +# This installs the foreman_rh_cloud plugin for Hammer CLI +# +# === Parameters: +# +class foreman::cli::rh_cloud { + foreman::cli::plugin { 'foreman_rh_cloud': + } +} diff --git a/spec/acceptance/foreman_cli_plugins_spec.rb b/spec/acceptance/foreman_cli_plugins_spec.rb index 71c754e17..1f8ec0701 100644 --- a/spec/acceptance/foreman_cli_plugins_spec.rb +++ b/spec/acceptance/foreman_cli_plugins_spec.rb @@ -84,6 +84,7 @@ class { 'foreman::cli': include foreman::cli::katello include foreman::cli::virt_who_configure + include foreman::cli::rh_cloud Yumrepo['katello'] -> Class['foreman::cli::katello'] PUPPET @@ -92,7 +93,7 @@ class { 'foreman::cli': it_behaves_like 'hammer' - ['katello', 'foreman_virt_who_configure'].each do |plugin| + ['katello', 'foreman_virt_who_configure', 'foreman_rh_cloud'].each do |plugin| describe package("rubygem-hammer_cli_#{plugin}") do it { is_expected.to be_installed } end diff --git a/spec/classes/cli_plugins_spec.rb b/spec/classes/cli_plugins_spec.rb index 6fcee11d5..3a501bcc9 100644 --- a/spec/classes/cli_plugins_spec.rb +++ b/spec/classes/cli_plugins_spec.rb @@ -2,7 +2,7 @@ supported = on_supported_os -['ansible', 'azure', 'discovery', 'katello', 'kubevirt', 'openscap', 'remote_execution', 'ssh', 'tasks', 'templates', 'virt_who_configure', 'webhooks', 'puppet', 'google'].each do |plugin| +['ansible', 'azure', 'discovery', 'katello', 'kubevirt', 'openscap', 'remote_execution', '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