Module: ForemanMaintain::Concerns::PulpCommon
- Defined in:
- lib/foreman_maintain/concerns/pulp_common.rb
Instance Method Summary collapse
Instance Method Details
#exclude_from_backup ⇒ Object
8 9 10 11 12 |
# File 'lib/foreman_maintain/concerns/pulp_common.rb', line 8 def exclude_from_backup # Only need to backup media directory of /var/lib/pulp # All below directories and their contents are regenerated on installer run %w[assets exports imports sync_imports tmp] end |
#pulp_data_dir ⇒ Object
4 5 6 |
# File 'lib/foreman_maintain/concerns/pulp_common.rb', line 4 def pulp_data_dir '/var/lib/pulp' end |
#pulpcore_manager(command) ⇒ Object
14 15 16 |
# File 'lib/foreman_maintain/concerns/pulp_common.rb', line 14 def pulpcore_manager(command) "PULP_SETTINGS=/etc/pulp/settings.py runuser -u pulp -- pulpcore-manager #{command}" end |