Project

General

Profile

Actions

Bug #17982

open

Foreman should use Kafo reccomended migration file format

Added by Stephen Benjamin over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
foreman-installer script
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The Kafo README.md suggests:

It is recommended to prefix the migration names with date +%y%m%d%H%M%S to avoid migration ordering issues.

Likewise the examples show:

  cat <<EOF > "/etc/foreman/installer-scenarios.d/foreman-installer.migrations/`date +%y%m%d%H%M%S`-gutterball.rb" 

Foreman opted instead to use +Y and an _ to prefix a migration. It would be ideal if Foreman would adopt the Kafo reccomendation, it's harder to move migrations from Foreman to Katello with the way it is now.

The migrations would have to be renamed, and the .applied filed updated in a hook or RPM script.

No data to display

Actions

Also available in: Atom PDF