Project

General

Profile

« Previous | Next » 

Revision 9584d7ba

Added by Stephen Benjamin almost 8 years ago

fixes #15014 - restore pulp db init flag (#145)

This brings back the init flag so that the puppet installer only
runs the migration once or when the user has run --reset (which
deletes the init.flag file).

View differences:

manifests/database.pp
}
exec { 'migrate_pulp_db':
command => 'pulp-manage-db',
path => '/bin:/usr/bin',
logoutput => 'on_failure',
user => 'apache',
refreshonly => true,
require => File['/etc/pulp/server.conf'],
command => 'pulp-manage-db && touch /var/lib/pulp/init.flag',
path => '/bin:/usr/bin',
logoutput => 'on_failure',
user => 'apache',
creates => '/var/lib/pulp/init.flag',
require => File['/etc/pulp/server.conf'],
}
Class['pulp::install'] ~> Exec['migrate_pulp_db'] ~> Class['pulp::service']

Also available in: Unified diff