-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for foreman_virt_who_configure
This allows installing the core plugin and the hammer plugin.
- Loading branch information
Showing
4 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# = Hammer Virt Who Configure plugin | ||
# | ||
# This installs the Virt Who Configure plugin for Hammer CLI | ||
# | ||
# === Parameters: | ||
# | ||
class foreman::cli::virt_who_configure { | ||
foreman::cli::plugin { 'foreman_virt_who_configure': | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Installs foreman_virt_who_configure plugin | ||
class foreman::plugin::virt_who_configure { | ||
foreman::plugin { 'virt_who_configure': | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
require 'spec_helper' | ||
|
||
describe 'foreman::cli::virt_who_configure' do | ||
context 'on redhat-7-x86_64' do | ||
let(:facts) do | ||
on_supported_os['redhat-7-x86_64'] | ||
end | ||
|
||
let(:pre_condition) { 'include foreman::cli' } | ||
|
||
it { should contain_package('tfm-rubygem-hammer_cli_foreman_virt_who_configure') } | ||
end | ||
|
||
context 'on debian-9-x86_64' do | ||
let(:facts) do | ||
on_supported_os['debian-9-x86_64'] | ||
end | ||
|
||
let(:pre_condition) { 'include foreman::cli' } | ||
|
||
it { should contain_package('ruby-hammer-cli-foreman-virt-who-configure') } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require 'spec_helper' | ||
|
||
describe 'foreman::plugin::virt_who_configure' do | ||
include_examples 'basic foreman plugin tests', 'virt_who_configure' | ||
end |