14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## [12.1.0](https://github.com/theforeman/puppet-foreman/tree/12.1.0) (2019-05-21)

[Full Changelog](https://github.com/theforeman/puppet-foreman/compare/12.0.0...12.1.0)

**Implemented enhancements:**

- Add hammer plugin for foreman\_kubevirt [\#733](https://github.com/theforeman/puppet-foreman/pull/733) ([shiramax](https://github.com/shiramax))
- Adding foreman\_kubevirt Plugin [\#730](https://github.com/theforeman/puppet-foreman/pull/730) ([masayag](https://github.com/masayag))
- allow puppetlabs-apt 7.x and puppetlabs-postgresql 7.x [\#728](https://github.com/theforeman/puppet-foreman/pull/728) ([mmoll](https://github.com/mmoll))

**Fixed bugs:**

- Fixes [\#26695](https://projects.theforeman.org/issues/26695) - remove puppetdb\_dashboard\_address [\#729](https://github.com/theforeman/puppet-foreman/pull/729) ([mmoll](https://github.com/mmoll))

## [12.0.0](https://github.com/theforeman/puppet-foreman/tree/12.0.0) (2019-04-18)

[Full Changelog](https://github.com/theforeman/puppet-foreman/compare/11.0.1...12.0.0)
Expand Down
10 changes: 10 additions & 0 deletions manifests/cli/kubevirt.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# = Hammer KubeVirt plugin
#
# This installs the KubeVirt plugin for Hammer CLI
#
# === Parameters:
#
class foreman::cli::kubevirt {
foreman::cli::plugin { 'foreman_kubevirt':
}
}
5 changes: 5 additions & 0 deletions manifests/plugin/kubevirt.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Installs foreman_kubevirt plugin
class foreman::plugin::kubevirt {
foreman::plugin {'kubevirt':
}
}
8 changes: 1 addition & 7 deletions manifests/plugin/puppetdb.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
# $address:: Address of puppetdb API.
# Defaults to 'https://localhost:8081/pdb/cmd/v1'
#
# $dashboard_address:: Address of puppetdb dashboard.
# Defaults to 'http://localhost:8080/pdb/dashboard'
#
# $ssl_ca_file:: CA certificate file which will be used to connect to the PuppetDB API.
# Defaults to client_ssl_ca
#
Expand All @@ -23,10 +20,10 @@
#
# $api_version:: PuppetDB API version.
# Defaults to '4'
#
class foreman::plugin::puppetdb (
String $package = $::foreman::plugin::puppetdb::params::package,
Stdlib::HTTPUrl $address = $::foreman::plugin::puppetdb::params::address,
Stdlib::HTTPUrl $dashboard_address = $::foreman::plugin::puppetdb::params::dashboard_address,
String $ssl_ca_file = $::foreman::plugin::puppetdb::params::ssl_ca_file,
String $ssl_certificate = $::foreman::plugin::puppetdb::params::ssl_certificate,
String $ssl_private_key = $::foreman::plugin::puppetdb::params::ssl_private_key,
Expand All @@ -41,9 +38,6 @@
-> foreman_config_entry { 'puppetdb_address':
value => $address,
}
-> foreman_config_entry { 'puppetdb_dashboard_address':
value => $dashboard_address,
}
-> foreman_config_entry { 'puppetdb_ssl_ca_file':
value => $ssl_ca_file,
}
Expand Down
1 change: 0 additions & 1 deletion manifests/plugin/puppetdb/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
}
}
$address = 'https://localhost:8081/pdb/cmd/v1'
$dashboard_address = 'http://localhost:8080/pdb/dashboard'
$ssl_ca_file = $::foreman::params::client_ssl_ca
$ssl_certificate = $::foreman::params::client_ssl_cert
$ssl_private_key = $::foreman::params::client_ssl_key
Expand Down
6 changes: 3 additions & 3 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "theforeman-foreman",
"version": "12.0.0",
"version": "12.1.0",
"author": "theforeman",
"summary": "Foreman server configuration",
"license": "GPL-3.0+",
Expand All @@ -18,15 +18,15 @@
},
{
"name": "puppetlabs/apt",
"version_requirement": ">= 2.0.0 < 7.0.0"
"version_requirement": ">= 2.0.0 < 8.0.0"
},
{
"name": "puppetlabs/concat",
"version_requirement": ">= 1.0.0 < 6.0.0"
},
{
"name": "puppetlabs/postgresql",
"version_requirement": ">= 4.2.0 < 6.0.0"
"version_requirement": ">= 4.2.0 < 7.0.0"
},
{
"name": "puppetlabs/stdlib",
Expand Down
11 changes: 11 additions & 0 deletions spec/classes/foreman_cli_kubevirt_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'spec_helper'

describe 'foreman::cli::kubevirt' 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_kubevirt') }
end
5 changes: 5 additions & 0 deletions spec/classes/plugin/kubevirt_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require 'spec_helper'

describe 'foreman::plugin::kubevirt' do
include_examples 'basic foreman plugin tests', 'kubevirt'
end