Skip to content

Commit 03cf2c7

Browse files
committed
[agent6][yum] no ensure on yumrepo -> use datadog repo definition for both beta and stable.
1 parent 5afc6e2 commit 03cf2c7

3 files changed

Lines changed: 4 additions & 17 deletions

File tree

manifests/redhat.pp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,13 @@
4242
require => Remote_file['DATADOG_RPM_KEY.public'],
4343
}
4444

45-
yumrepo {'datadog-beta':
46-
ensure => absent
47-
}
48-
4945
yumrepo {'datadog':
5046
enabled => 1,
5147
gpgcheck => 1,
5248
gpgkey => 'https://yum.datadoghq.com/DATADOG_RPM_KEY.public',
5349
descr => 'Datadog, Inc.',
5450
baseurl => $baseurl,
55-
require => [Exec['install-gpg-key'], Yumrepo['datadog-beta']],
51+
require => Exec['install-gpg-key'],
5652
}
5753

5854
Package { require => Yumrepo['datadog']}

manifests/redhat/agent6.pp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,15 @@
3232
}
3333

3434
yumrepo {'datadog':
35-
ensure => absent
36-
}
37-
38-
yumrepo {'datadog-beta':
3935
enabled => 1,
4036
gpgcheck => 1,
4137
gpgkey => 'https://yum.datadoghq.com/DATADOG_RPM_KEY.public',
4238
descr => 'Datadog, Inc.',
4339
baseurl => $baseurl,
44-
require => [Exec['install-gpg-key'], Yumrepo['datadog']],
40+
require => Exec['install-gpg-key'],
4541
}
4642

47-
Package { require => Yumrepo['datadog-beta']}
43+
Package { require => Yumrepo['datadog']}
4844
}
4945

5046
package { 'datadog-agent-base':

spec/classes/datadog_agent_redhat_spec.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
context 'with manage_repo => true' do
1414
let(:params){ {:manage_repo => true} }
1515
it do
16-
should contain_yumrepo('datadog-beta')
17-
.with_ensure('absent')
1816
should contain_yumrepo('datadog')
1917
.with_enabled(1)\
2018
.with_gpgcheck(1)\
@@ -62,8 +60,6 @@
6260
let(:params){ {:manage_repo => true} }
6361
it do
6462
should contain_yumrepo('datadog')
65-
.with_ensure('absent')
66-
should contain_yumrepo('datadog-beta')
6763
.with_enabled(1)\
6864
.with_gpgcheck(1)\
6965
.with_gpgkey('https://yum.datadoghq.com/DATADOG_RPM_KEY.public')\
@@ -73,8 +69,7 @@
7369
context 'with manage_repo => false' do
7470
let(:params){ {:manage_repo => false} }
7571
it do
76-
should_not contain_yumrepo('datadog-beta')
77-
should_not contain_yumrepo('datadog-beta')
72+
should_not contain_yumrepo('datadog')
7873
end
7974
end
8075

0 commit comments

Comments
 (0)