Skip to content

Commit

Permalink
only reset pulp data if explicitly asked for
Browse files Browse the repository at this point in the history
Fixes: #291
  • Loading branch information
evgeni committed Mar 7, 2022
1 parent 0660210 commit 6c21aa7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/satellite-clone/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ skip_satellite_rpm_check: False
overwrite_etc_hosts: True
check_networking_interfaces: True
selinux_packages: []
reset_pulp_data: False
2 changes: 2 additions & 0 deletions roles/satellite-clone/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,14 @@

- include_tasks: reset_pulp_data.yml
when:
- reset_pulp_data
- not clone_pulp_data_exists
- not online_backup
- satellite_version in ["6.6", "6.7", "6.8", "6.9"]

- include_tasks: reset_pulpcore_data.yml
when:
- reset_pulp_data
- not clone_pulp_data_exists
- not online_backup
- satellite_version not in ["6.6", "6.7", "6.8", "6.9"]
Expand Down
4 changes: 4 additions & 0 deletions satellite-clone-vars.sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,7 @@

# Disable checking interfaces setup for DHCP and DNS match the interfaces on the target server. (defaults to true)
#check_networking_interfaces: true

# Reset Pulp data, useful for cases where you need to restore a system, but don't have access to the old /var/lib/pulp content.
# Don't enable if you want a 1:1 clone with data. Only for support / development!
#reset_pulp_data: false

0 comments on commit 6c21aa7

Please sign in to comment.