Showing with 16 additions and 13 deletions.
  1. +0 −1 .fixtures.yml
  2. +6 −0 CHANGELOG.md
  3. +1 −0 functions/hosts_with_pe_profile.pp
  4. +3 −3 manifests/pe_metric.pp
  5. +3 −1 manifests/system.pp
  6. +3 −8 metadata.json
1 change: 0 additions & 1 deletion .fixtures.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
fixtures:
repositories:
stdlib: "git://github.com/puppetlabs/puppetlabs-stdlib"
cron_core: "git://github.com/puppetlabs/puppetlabs-cron_core"
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Minor Release 6.5.0

## Changes:
- The `puppet_metrics_collector` can now be used without requiring the
installation of additional dependencies, such as `puppetlabs-stdlib`.

# Patch Release 6.4.1

## Changes:
Expand Down
1 change: 1 addition & 0 deletions functions/hosts_with_pe_profile.pp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function puppet_metrics_collector::hosts_with_pe_profile($profile) {
type = 'Class' and
title = 'Puppet_enterprise::Profile::${_profile}' and
nodes { deactivated is null and expired is null }
order by certname
}").map |$nodes| { $nodes['certname'] }
}
else {
Expand Down
6 changes: 3 additions & 3 deletions manifests/pe_metric.pp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

$_remote_metrics_enabled = if $remote_metrics_enabled =~ Boolean {
$remote_metrics_enabled
} elsif fact('pe_server_version') =~ NotUndef {
if versioncmp(fact('pe_server_version'), '2019.8.5') >= 0 {
} elsif $facts.dig('pe_server_version') =~ NotUndef {
if versioncmp($facts.dig('pe_server_version'), '2019.8.5') >= 0 {
true
} else {
false
Expand All @@ -47,7 +47,7 @@
'metrics_type' => $metrics_type,
'pe_version' => $facts['pe_server_version'],
'clientcert' => $::clientcert,
'hosts' => $hosts.sort(),
'hosts' => $hosts,
'metrics_port' => $metrics_port,
'ssl' => $ssl,
'excludes' => $excludes,
Expand Down
4 changes: 3 additions & 1 deletion manifests/system.pp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@

if $facts['virtual'] == 'vmware' {
if $manage_vmware_tools and ($system_metrics_ensure == 'present') {
ensure_packages([$vmware_tools_pkg])
package {$vmware_tools_pkg:
ensure => present,
}
}

file { "${scripts_dir}/vmware_metrics":
Expand Down
11 changes: 3 additions & 8 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
{
"name": "puppetlabs-puppet_metrics_collector",
"version": "6.4.1",
"author": "npwalker",
"version": "6.5.0",
"author": "puppetlabs",
"summary": "A Puppet module for gathering metrics from PE components",
"license": "Apache-2.0",
"source": "https://github.com/puppetlabs/puppetlabs-puppet_metrics_collector",
"project_page": "https://github.com/puppetlabs/puppetlabs-puppet_metrics_collector",
"issues_url": "https://github.com/puppetlabs/puppetlabs-puppet_metrics_collector/issues",
"dependencies": [
{
"name": "puppetlabs-stdlib",
"version_requirement": ">= 2.6.0 < 8.0.0"
}
],
"dependencies": [],
"operatingsystem_support": [
{
"operatingsystem": "RedHat",
Expand Down