diff --git a/manifests/cli/host_reports.pp b/manifests/cli/host_reports.pp new file mode 100644 index 000000000..fed1c84a7 --- /dev/null +++ b/manifests/cli/host_reports.pp @@ -0,0 +1,10 @@ +# = Hammer Host Reports plugin +# +# This installs the Host Reports plugin for Hammer CLI +# +# === Parameters: +# +class foreman::cli::host_reports { + foreman::cli::plugin { 'foreman_host_reports': + } +} diff --git a/spec/acceptance/foreman_cli_plugins_spec.rb b/spec/acceptance/foreman_cli_plugins_spec.rb index 3ea6c60cc..c77bff1c5 100644 --- a/spec/acceptance/foreman_cli_plugins_spec.rb +++ b/spec/acceptance/foreman_cli_plugins_spec.rb @@ -21,6 +21,7 @@ class { 'foreman::cli': include foreman::cli::azure } include foreman::cli::discovery + include foreman::cli::host_reports include foreman::cli::remote_execution include foreman::cli::tasks include foreman::cli::templates @@ -32,7 +33,7 @@ class { 'foreman::cli': it_behaves_like 'hammer' - ['discovery', 'remote_execution', 'tasks', 'templates', 'webhooks', 'puppet'].each do |plugin| + ['discovery', 'host_reports', 'remote_execution', 'tasks', 'templates', 'webhooks', 'puppet'].each do |plugin| package_name = case fact('os.family') when 'RedHat' "#{package_prefix}rubygem-hammer_cli_foreman_#{plugin}" diff --git a/spec/classes/cli_plugins_spec.rb b/spec/classes/cli_plugins_spec.rb index 70c1e323d..1ec004087 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', 'tasks', 'templates', 'virt_who_configure', 'webhooks', 'puppet'].each do |plugin| +['ansible', 'azure', 'discovery', 'host_reports', 'katello', 'kubevirt', 'openscap', 'remote_execution', 'tasks', 'templates', 'virt_who_configure', 'webhooks', 'puppet'].each do |plugin| describe "foreman::cli::#{plugin}" do supported.each do |os, os_facts| context "on #{os}" do