File tree 5 files changed +8
-11
lines changed
5 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
fixtures :
3
3
repositories :
4
- stdlib : " git://github.com/puppetlabs/puppetlabs-stdlib"
5
4
cron_core : " git://github.com/puppetlabs/puppetlabs-cron_core"
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ function puppet_metrics_collector::hosts_with_pe_profile($profile) {
22
22
type = 'Class' and
23
23
title = 'Puppet_enterprise::Profile::${_profile}' and
24
24
nodes { deactivated is null and expired is null }
25
+ order by certname
25
26
}" ).map |$nodes | { $nodes [' certname' ] }
26
27
}
27
28
else {
Original file line number Diff line number Diff line change 33
33
34
34
$_remote_metrics_enabled = if $remote_metrics_enabled =~ Boolean {
35
35
$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 {
38
38
true
39
39
} else {
40
40
false
47
47
' metrics_type' => $metrics_type ,
48
48
' pe_version' => $facts [' pe_server_version' ],
49
49
' clientcert' => $::clientcert ,
50
- ' hosts' => $hosts .sort() ,
50
+ ' hosts' => $hosts ,
51
51
' metrics_port' => $metrics_port ,
52
52
' ssl' => $ssl ,
53
53
' excludes' => $excludes ,
Original file line number Diff line number Diff line change 51
51
52
52
if $facts [' virtual' ] == ' vmware' {
53
53
if $manage_vmware_tools and ($system_metrics_ensure == ' present' ) {
54
- ensure_packages([$vmware_tools_pkg ])
54
+ package {$vmware_tools_pkg:
55
+ ensure => present ,
56
+ }
55
57
}
56
58
57
59
file { "${scripts_dir}/vmware_metrics" :
Original file line number Diff line number Diff line change 7
7
"source" : " https://github.com/puppetlabs/puppetlabs-puppet_metrics_collector" ,
8
8
"project_page" : " https://github.com/puppetlabs/puppetlabs-puppet_metrics_collector" ,
9
9
"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" : [],
16
11
"operatingsystem_support" : [
17
12
{
18
13
"operatingsystem" : " RedHat" ,
You can’t perform that action at this time.
0 commit comments