File tree Expand file tree Collapse file tree 5 files changed +8
-11
lines changed Expand file tree Collapse file tree 5 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 11---
22fixtures :
33 repositories :
4- stdlib : " git://github.com/puppetlabs/puppetlabs-stdlib"
54 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) {
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 {
Original file line number Diff line number Diff line change 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
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 ,
Original file line number Diff line number Diff line change 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" :
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments