Revision 4a1f028a
Added by Ewoud Kohl van Wijngaarden almost 6 years ago
manifests/cli/virt_who_configure.pp | ||
---|---|---|
# = 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':
|
||
}
|
||
}
|
manifests/plugin/virt_who_configure.pp | ||
---|---|---|
# Installs foreman_virt_who_configure plugin
|
||
class foreman::plugin::virt_who_configure {
|
||
foreman::plugin { 'virt_who_configure':
|
||
}
|
||
}
|
spec/classes/foreman_cli_virt_who_configure_spec.rb | ||
---|---|---|
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
|
spec/classes/plugin/virt_who_configure_spec.rb | ||
---|---|---|
require 'spec_helper'
|
||
|
||
describe 'foreman::plugin::virt_who_configure' do
|
||
include_examples 'basic foreman plugin tests', 'virt_who_configure'
|
||
end
|
Also available in: Unified diff
Add support for foreman_virt_who_configure
This allows installing the core plugin and the hammer plugin.