-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
49 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,27 @@ | ||
# = Foreman Proxy ACD plugin | ||
# | ||
# This class installs the ACD plugin | ||
# | ||
# === Parameters: | ||
# | ||
# === Advanced parameters: | ||
# | ||
# $enabled:: enables/disables the acd plugin | ||
# | ||
# $listen_on:: proxy feature listens on http, https, or both | ||
# | ||
# $version:: plugin package version, it's passed to ensure parameter of package resource | ||
# can be set to specific version number, 'latest', 'present' etc. | ||
# | ||
class foreman_proxy::plugin::acd ( | ||
Optional[String] $version = undef, | ||
Boolean $enabled = true, | ||
Foreman_proxy::ListenOn $listen_on = 'https', | ||
) { | ||
foreman_proxy::plugin::module { 'acd': | ||
enabled => $enabled, | ||
feature => 'ACD', | ||
listen_on => $listen_on, | ||
version => $version, | ||
} | ||
} |
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,20 @@ | ||
require 'spec_helper' | ||
|
||
describe 'foreman_proxy::plugin::acd' do | ||
on_plugin_os.each do |os, os_facts| | ||
context "on #{os}" do | ||
let(:facts) { os_facts } | ||
let(:pre_condition) { 'include foreman_proxy' } | ||
|
||
describe 'with default settings' do | ||
it { should contain_foreman_proxy__plugin__module('acd') } | ||
it 'acd.yml should contain the correct configuration' do | ||
verify_exact_contents(catalogue, '/etc/foreman-proxy/settings.d/acd.yml', [ | ||
'---', | ||
':enabled: https', | ||
]) | ||
end | ||
end | ||
end | ||
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,2 @@ | ||
--- | ||
:enabled: <%= @module_enabled %> |