-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove previously privisioned Pulp resources
- Loading branch information
1 parent
50ff7fa
commit 2824251
Showing
2 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -375,6 +375,70 @@ | |
end | ||
|
||
|
||
# TODO: Start of pulp cleanup to remove in next major release. | ||
node['ros_buildfarm']['rpm_repos'].keys.each do |dist| | ||
dist_dir = "/var/repos/#{dist}_pulp" | ||
directory dist_dir do | ||
action :delete | ||
recursive true | ||
end | ||
end | ||
|
||
0.upto(10) do |i| | ||
service "pulp-worker@#{i}" do | ||
action [:stop, :disable] | ||
only_if { File.exist?("/etc/systemd/system/[email protected]") } | ||
end | ||
end | ||
file "/etc/systemd/system/[email protected]" do | ||
action :delete | ||
end | ||
%w(pulp-api-endpoint pulp-content-endpoint pulp-resource-manager pulp-rsync-endpoint).each do |service_name| | ||
service service_name do | ||
action [:stop, :disable] | ||
only_if { File.exist?("/etc/systemd/system/#{service_name}.service") } | ||
end | ||
file "/etc/systemd/system/#{service_name}.service" do | ||
action :delete | ||
end | ||
end | ||
|
||
file '/usr/local/bin/systemd-docker' do | ||
action :delete | ||
end | ||
|
||
service 'postgresql' do | ||
action [:stop, :disable] | ||
only_if { File.exist?('/lib/systemd/system/postgresql.service') } | ||
end | ||
package 'postgresql' do | ||
action :remove | ||
end | ||
|
||
service 'redis' do | ||
action [:stop, :disable] | ||
only_if { File.exist?('/lib/systemd/system/redis.service') } | ||
end | ||
package 'redis' do | ||
action :remove | ||
end | ||
|
||
pulp_data_directory = '/var/repos/.pulp' | ||
directory pulp_data_directory do | ||
action :delete | ||
recursive true | ||
end | ||
|
||
user 'pulp' do | ||
action :remove | ||
end | ||
directory '/home/pulp' do | ||
action :delete | ||
recursive true | ||
end | ||
# TODO: End of pulp cleanup to remove in next major release. | ||
|
||
|
||
package 'nginx' | ||
service 'nginx' do | ||
action [:start, :enable] | ||
|