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 plugin for ssh #1076

Merged
merged 1 commit into from
Aug 25, 2022
Merged
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
10 changes: 10 additions & 0 deletions manifests/cli/ssh.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# = Hammer SSH plugin
#
# This installs the SSH plugin for Hammer CLI
#
# === Parameters:
#
class foreman::cli::ssh {
foreman::cli::plugin { 'foreman_ssh':
}
}
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 @@ -21,6 +21,7 @@ class { 'foreman::cli':
include foreman::cli::discovery
include foreman::cli::host_reports
include foreman::cli::remote_execution
include foreman::cli::ssh
include foreman::cli::tasks
include foreman::cli::templates
include foreman::cli::webhooks
Expand All @@ -31,7 +32,7 @@ class { 'foreman::cli':

it_behaves_like 'hammer'

['discovery', 'host_reports', 'remote_execution', 'tasks', 'templates', 'webhooks', 'puppet'].each do |plugin|
['discovery', 'host_reports', 'remote_execution', 'ssh', 'tasks', 'templates', 'webhooks', 'puppet'].each do |plugin|
package_name = case fact('os.family')
when 'RedHat'
"rubygem-hammer_cli_foreman_#{plugin}"
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 @@ -2,7 +2,7 @@

supported = on_supported_os

['ansible', 'azure', 'discovery', 'host_reports', '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', 'ssh', '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
Expand Down