File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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' ]}
Original file line number Diff line number Diff line change 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' :
Original file line number Diff line number Diff line change 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 ) \
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' ) \
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
You can’t perform that action at this time.
0 commit comments