Currently, the 'cpdb' script combines database creation and the initial migration in one command. A user should be able to handle the database creation through other configuration tool such as puppet and still perform the initial database migration. Currently, the way the database creation is handled requires complicating the Postgresql setup to account for the 'createdb' command in order to get at the call to the initial migration. Thus, it would be highly beneficial to allow the initial migration to be run directly via cpdb.
Pull Request submitted and waiting for review: https://github.com/candlepin/candlepin/pull/467
Added --schema-only option to cpsetup/cpdb. When using this option with the create action, skip db creation step and only load the schema. Available in: candlepin-0.9.2-1+
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions
Moving to closed per the updated candlepin process for bugs that have been merged or have been taken care of.