Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 2780594

Browse files
author
suckatrash
committed
remove puppet_metrics_dashboard::telegraf::install class
1 parent 3e486f2 commit 2780594

File tree

5 files changed

+2
-19
lines changed

5 files changed

+2
-19
lines changed

Diff for: REFERENCE.md

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
* `puppet_metrics_dashboard::service`: Manages services
2424
* `puppet_metrics_dashboard::telegraf`: Install and configure Telegraf
2525
* `puppet_metrics_dashboard::telegraf::config`: Configures Telegraf
26-
* `puppet_metrics_dashboard::telegraf::install`: Installs Telegraf
2726
* `puppet_metrics_dashboard::telegraf::service`: Manages the Telegraf service
2827

2928
## Defined types

Diff for: manifests/telegraf.pp

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@
1111
}
1212

1313
if $_enable_telegraf {
14-
contain puppet_metrics_dashboard::telegraf::install
1514
contain puppet_metrics_dashboard::telegraf::config
1615
contain puppet_metrics_dashboard::telegraf::service
1716

18-
Class['puppet_metrics_dashboard::telegraf::install']
19-
-> Class['puppet_metrics_dashboard::telegraf::config']
17+
Class['puppet_metrics_dashboard::telegraf::config']
2018
-> Class['puppet_metrics_dashboard::telegraf::service']
2119
}
2220
}

Diff for: manifests/telegraf/install.pp

-12
This file was deleted.

Diff for: spec/classes/telegraf/install_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'spec_helper'
22

3-
describe 'puppet_metrics_dashboard::telegraf::install' do
3+
describe 'puppet_metrics_dashboard::telegraf::configure' do
44
on_supported_os(facterversion: '3.7').each do |os, facts|
55
context "with facter 3.7 on #{os}" do
66
let(:node) do

Diff for: spec/classes/telegraf_spec.rb

-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
PRE_COND
1919
end
2020

21-
it { is_expected.to contain_class('puppet_metrics_dashboard::telegraf::install') }
2221
it { is_expected.to contain_class('puppet_metrics_dashboard::telegraf::config') }
2322
it { is_expected.to contain_class('puppet_metrics_dashboard::telegraf::service') }
2423
end
@@ -33,7 +32,6 @@ class {'puppet_metrics_dashboard':
3332
PRE_COND
3433
end
3534

36-
it { is_expected.not_to contain_class('puppet_metrics_dashboard::telegraf::install') }
3735
it { is_expected.not_to contain_class('puppet_metrics_dashboard::telegraf::config') }
3836
it { is_expected.not_to contain_class('puppet_metrics_dashboard::telegraf::service') }
3937
end

0 commit comments

Comments
 (0)