Default series "precise"
John Arbash Meinel
john at arbash-meinel.com
Wed Mar 20 11:05:27 UTC 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Currently we have this code in environs/config/config.go:
var defaults = schema.Defaults{
"default-series": version.Current.Series,
...
This means that when doing 'juju bootstrap', if you don't have
'default-series' set in your config file, it defaults to your current
series. (Quantal/Raring, etc).
This makes less sense on other systems (non Ubuntu for starters, but
certainly Windows/Mac). Further, because of the LTS ecosystem, it is
arguable if people would actually want to default to the platform they
are developing on. (You develop on tip, but deploy production on
stable LTS machines.)
A minimal patch that could work, is to do something like:
func defaultSeries(series string) string {
if series == "" or series == "unknown" {
return "precise"
}
return series
}
var defaults = schema.Defaults{
"default-series": defaultSeries(version.Current.Series),
However it would be far easier to just do:
var defaults = schema.Defaults{
"default-series": "precise",
I know that we want to override the series when '--upload-tools' is
supplied. But outside of that, can we have the discussion about
whether the default series should be an LTS vs 'current'?
Thanks,
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlFJl/cACgkQJdeBCYSNAANsyACfZlgQN20EQztIkXvI4lP1dFLH
nlUAn2S3QX77BunFNouLPiY1vHLGvjwb
=MFpf
-----END PGP SIGNATURE-----
More information about the Juju-dev
mailing list