diff --git a/.fixtures.yml b/.fixtures.yml index 571994bd9..839fde418 100644 --- a/.fixtures.yml +++ b/.fixtures.yml @@ -3,9 +3,13 @@ fixtures: apache: 'https://github.com/puppetlabs/puppetlabs-apache' apt: 'https://github.com/puppetlabs/puppetlabs-apt' augeas_core: 'https://github.com/puppetlabs/puppetlabs-augeas_core' + certs: 'https://github.com/theforeman/puppet-certs' concat: 'https://github.com/puppetlabs/puppetlabs-concat' cron_core: 'https://github.com/puppetlabs/puppetlabs-cron_core' extlib: 'https://github.com/voxpupuli/puppet-extlib' + hashfile: 'https://github.com/southalc/hashfile' + iop_advisor_engine: 'https://github.com/theforeman/puppet-iop_advisor_engine' + podman: 'https://github.com/southalc/podman' postgresql: 'https://github.com/puppetlabs/puppetlabs-postgresql' puppet: 'https://github.com/theforeman/puppet-puppet' redis: 'https://github.com/voxpupuli/puppet-redis' diff --git a/manifests/plugin/rh_cloud.pp b/manifests/plugin/rh_cloud.pp index 08f6d5da6..17384900d 100644 --- a/manifests/plugin/rh_cloud.pp +++ b/manifests/plugin/rh_cloud.pp @@ -1,5 +1,15 @@ -# Installs rh_cloud plugin -class foreman::plugin::rh_cloud { +# @summary Installs rh_cloud plugin +# +# @param enable_iop_advisor_engine +# Enable iop-advisor-engine integration +# +class foreman::plugin::rh_cloud ( + Boolean $enable_iop_advisor_engine = false, +) { foreman::plugin { 'rh_cloud': } + + class { 'iop_advisor_engine': + ensure => bool2str($enable_iop_advisor_engine, 'present', 'absent'), + } } diff --git a/spec/acceptance/foreman_rh_cloud_spec.rb b/spec/acceptance/foreman_rh_cloud_spec.rb index ed9c17334..c53b18afe 100644 --- a/spec/acceptance/foreman_rh_cloud_spec.rb +++ b/spec/acceptance/foreman_rh_cloud_spec.rb @@ -6,6 +6,14 @@ it_behaves_like 'an idempotent resource' do let(:manifest) do <<-PUPPET + file { '/etc/foreman-proxy': + ensure => directory, + } + + group { 'foreman-proxy': + ensure => present, + } + include foreman include foreman::plugin::rh_cloud PUPPET