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..e9226bcbb 100644 --- a/spec/acceptance/foreman_cli_plugins_spec.rb +++ b/spec/acceptance/foreman_cli_plugins_spec.rb @@ -28,13 +28,14 @@ class { 'foreman::cli': include foreman::cli::tasks include foreman::cli::templates include foreman::cli::webhooks + include foreman::cli::rh_cloud PUPPET end end it_behaves_like 'hammer' - ['ansible', 'discovery', 'google', 'puppet', 'remote_execution', 'ssh', 'tasks', 'templates', 'webhooks'].each do |plugin| + ['ansible', 'discovery', 'google', 'puppet', 'remote_execution', 'ssh', 'tasks', 'templates', 'webhooks', 'rh_cloud'].each do |plugin| package_name = case fact('os.family') when 'RedHat' "rubygem-hammer_cli_foreman_#{plugin}" 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