Skip to content

Commit df0ddde

Browse files
Merge pull request #90 from jarretlavallee/fix/master/remove_stdlib
(PE-31763) Remove the dependency on stdlib
2 parents 7a04a4d + 2ead2fd commit df0ddde

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

.fixtures.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
22
fixtures:
33
repositories:
4-
stdlib: "git://github.com/puppetlabs/puppetlabs-stdlib"
54
cron_core: "git://github.com/puppetlabs/puppetlabs-cron_core"

functions/hosts_with_pe_profile.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ function puppet_metrics_collector::hosts_with_pe_profile($profile) {
2222
type = 'Class' and
2323
title = 'Puppet_enterprise::Profile::${_profile}' and
2424
nodes { deactivated is null and expired is null }
25+
order by certname
2526
}").map |$nodes| { $nodes['certname'] }
2627
}
2728
else {

manifests/pe_metric.pp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333

3434
$_remote_metrics_enabled = if $remote_metrics_enabled =~ Boolean {
3535
$remote_metrics_enabled
36-
} elsif fact('pe_server_version') =~ NotUndef {
37-
if versioncmp(fact('pe_server_version'), '2019.8.5') >= 0 {
36+
} elsif $facts.dig('pe_server_version') =~ NotUndef {
37+
if versioncmp($facts.dig('pe_server_version'), '2019.8.5') >= 0 {
3838
true
3939
} else {
4040
false
@@ -47,7 +47,7 @@
4747
'metrics_type' => $metrics_type,
4848
'pe_version' => $facts['pe_server_version'],
4949
'clientcert' => $::clientcert,
50-
'hosts' => $hosts.sort(),
50+
'hosts' => $hosts,
5151
'metrics_port' => $metrics_port,
5252
'ssl' => $ssl,
5353
'excludes' => $excludes,

manifests/system.pp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@
5151

5252
if $facts['virtual'] == 'vmware' {
5353
if $manage_vmware_tools and ($system_metrics_ensure == 'present') {
54-
ensure_packages([$vmware_tools_pkg])
54+
package {$vmware_tools_pkg:
55+
ensure => present,
56+
}
5557
}
5658

5759
file { "${scripts_dir}/vmware_metrics":

metadata.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@
77
"source": "https://github.com/puppetlabs/puppetlabs-puppet_metrics_collector",
88
"project_page": "https://github.com/puppetlabs/puppetlabs-puppet_metrics_collector",
99
"issues_url": "https://github.com/puppetlabs/puppetlabs-puppet_metrics_collector/issues",
10-
"dependencies": [
11-
{
12-
"name": "puppetlabs-stdlib",
13-
"version_requirement": ">= 2.6.0 < 8.0.0"
14-
}
15-
],
10+
"dependencies": [],
1611
"operatingsystem_support": [
1712
{
1813
"operatingsystem": "RedHat",

0 commit comments

Comments
 (0)