Module: ForemanMaintain::Concerns::PulpCommon

Defined in:
lib/foreman_maintain/concerns/pulp_common.rb

Instance Method Summary collapse

Instance Method Details

#exclude_from_backupObject



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/foreman_maintain/concerns/pulp_common.rb', line 8

def exclude_from_backup
  # For pulp2:
  # Exclude /var/lib/pulp/katello-export and /var/lib/pulp/cache
  # since the tar is run from /var/lib/pulp, list subdir paths only
  # For pulp3/pulpcore:
  pulp2_dirs = %w[katello-export cache]
  # For pulp3/pulpcore:
  # Only need to backup media directory of /var/lib/pulp
  # All below directories and their contents are regenerated on installer run
  pulpcore_dirs = %w[assets exports imports sync_imports tmp]
  pulp2_dirs + pulpcore_dirs
end

#pulp_data_dirObject



4
5
6
# File 'lib/foreman_maintain/concerns/pulp_common.rb', line 4

def pulp_data_dir
  '/var/lib/pulp'
end