1.0 Debian packages upgrade guide

Hi all,

The time has come - the new 1.0 Debian packages will be hitting the
repositories tonight. This email is to give you all a heads up on what
to expect.

Upgrading from 0.4.2 to 1.0 (stable upgrade)

··· ---

This should “just work”. We’ve tested it on a Debian 6 (32 and 64bit)
and all seems well. The packages include a db:migrate, so your
database will be migrated too. However, please note the new
split-package architecture - you may want to run “apt-cache search
foreman” and see if any of the new dependencies fit your usecase.

This will be added to the wiki later today.


Upgrading from testing to 1.0

Firstly thanks to all the people that have used testing in the last
few weeks - it’s been really valuable!. There’s a few issues with
testing, and if you can afford to do so, you might be better building
a fresh Foreman stable server. If that’s not possible, I recommend the
following process:

apt-get update
cd /usr/share/foreman
rm -rf .bundle/config # Unless you modified this yourself, in which
case you need to remove the lines which make bundler write to vendor/
apt-get upgrade

It’s possible that Apt will think that 1.0 is older than 1.0rc5 - I
misread the versioning guidelines. In this case you can downgrade the
package:

apt-get install foreman=1.0-3


Downgrading from nightly

Nightly is using the new packaging format already, and should be
trivial to downgrade, but I wouldn’t recommend it. It’s quite possible
that your database will be wrong due to newer migrations being
applied. You can try it if you must, and I’ll be on IRC if you need me
:slight_smile:


New bits and pieces

There are sample database files in the mysql, mysql2, and postgresql
packages to help you get started. The sqlite3 package installs a
working database file if you don’t already have one, so a simple
working install is “apt-get install foreman foreman-sqlite3”. Look in
/etc/foreman for these files. The new ENC script for your
puppetmasters can be found in /etc/foreman as well

The packages will be pushed to stable tonight, after I’ve had a chance
to update the Debian install wiki. Fingers crossed :slight_smile:

Cheers,
Greg

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

··· On 08/02/2012 11:18 AM, Greg Sutcliffe wrote: > Hi all, > > The time has come - the new 1.0 Debian packages will be hitting the > repositories tonight. This email is to give you all a heads up on what > to expect. > > Upgrading from 0.4.2 to 1.0 (stable upgrade) > --- > > This should "just work". We've tested it on a Debian 6 (32 and 64bit) > and all seems well. The packages include a db:migrate, so your > database will be migrated too. However, please note the new > split-package architecture - you may want to run "apt-cache search > foreman" and see if any of the new dependencies fit your usecase. > > This will be added to the wiki later today. > > --- > Upgrading from testing to 1.0 > --- > > Firstly thanks to all the people that have used testing in the last > few weeks - it's been really valuable!. There's a few issues with > testing, and if you can afford to do so, you might be better building > a fresh Foreman stable server. If that's not possible, I recommend the > following process: > > apt-get update > cd /usr/share/foreman > rm -rf .bundle/config # Unless you modified this yourself, in which > case you need to remove the lines which make bundler write to vendor/ > apt-get upgrade > > It's possible that Apt will think that 1.0 is older than 1.0rc5 - I > misread the versioning guidelines. In this case you can downgrade the > package: > > apt-get install foreman=1.0-3 > > --- > Downgrading from nightly > --- > > Nightly is using the new packaging format already, and should be > trivial to downgrade, but I wouldn't recommend it. It's quite possible > that your database will be wrong due to newer migrations being > applied. You can try it if you must, and I'll be on IRC if you need me > :) > > --- > New bits and pieces > --- > > There are sample database files in the mysql, mysql2, and postgresql > packages to help you get started. The sqlite3 package installs a > working database file if you don't already have one, so a simple > working install is "apt-get install foreman foreman-sqlite3". Look in > /etc/foreman for these files. The new ENC script for your > puppetmasters can be found in /etc/foreman as well > > The packages will be pushed to stable tonight, after I've had a chance > to update the Debian install wiki. Fingers crossed :) > > Cheers, > Greg Awesome work, Greg! I know tons of users are looking forward to this :)

Let me know if you need any help documenting the changes.

  • -Sam

1.0 debs are now in stable and testing. Enjoy!

Greg

··· On 2 August 2012 16:18, Greg Sutcliffe wrote: > The time has come - the new 1.0 Debian packages will be hitting the > repositories tonight.

Hi all,

We have identified some issues with the new Debian packages on Ubuntu
(many thanks to user FriedBob on IRC for the testing). 64-bit Ubuntu
should now be fine, but you may have to downgrade some packages.
32-bit Ubuntu has bigger problems due to some unresolved issues with
how the native-library packages are built. A workaround is now on the
wiki[1]

Sorry for the inconvenience,
Greg

[1] Debian-Ubuntu installation by packages - Foreman