Commit e80487f7369ef15bc2343500f8e47295ccbd6797
Exists in
master
and in
2 other branches
Merge branch 'remove_chef_repo' into 'master'
Remove chef repo See merge request !249
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
cookbooks/basics/recipes/default.rb
| 1 | 1 | |
| 2 | 2 | # our custom repositories |
| 3 | 3 | if node['platform'] == 'centos' |
| 4 | + | |
| 5 | + # Removing the old repo of chef for centos systems | |
| 6 | + file '/etc/yum.repos.d/chef.repo' do | |
| 7 | + action :delete | |
| 8 | + end | |
| 9 | + file '/etc/yum.repos.d/chef.key' do | |
| 10 | + action :delete | |
| 11 | + end | |
| 12 | + | |
| 4 | 13 | cookbook_file '/etc/yum.repos.d/softwarepublico.key' do |
| 5 | 14 | owner 'root' |
| 6 | 15 | mode 0644 |
| 7 | 16 | end |
| 17 | + | |
| 8 | 18 | template '/etc/yum.repos.d/softwarepublico.repo' do |
| 9 | 19 | owner 'root' |
| 10 | 20 | mode 0644 | ... | ... |