Re: RFC "bootstrap --config" should be treated as "--model-default" and add "--model-config"
On Thu, Jan 26, 2017 at 9:16 PM Mark Shuttleworth wrote: > > Why do we have bootstrap-constraints as a weird and different constraint, > when we are intending to represent the controller services as apps with > endpoints in the controller model anyway? Surely these are normal > constraints on those apps? > bootstrap-constraints would apply to the controller only, within the controller model. When we do represent the controller as an app, it would make sense to store the constraints on that app. It's separate from --constraints because --constraints affects the default model's constraints. If you just want bigger controller instances without affecting anything else, that's when you pass --bootstrap-constraints. > > Mark > > > On 26/01/17 11:56, John Meinel wrote: > > So we know have "--bootstrap-constraints" to be very clear when you are > talking about the controller itself vs the other machines in the model. > > Entries in a "config:" section in ~/.local/share/juju/cloud.yaml (and I > believe controllers.yaml) would show up in model-defaults and apply to all > models on your controller. > > Given '--config' is what people are used to supplying, and is the wording > used in configuration files, it feels natural to use it on the command line > as well. > > I'm not 100% sure whether it should be --model-config to match 'juju > model-config' or --bootstrap-config to match --bootstrap-constraints to > make it clear that you are setting values for the controller model, and not > for all models that you will be creating thereafter. > > I'm pretty sure Michael Foord brought something like this up in the past, > and I'm realizing that it really does follow well from his proposal. I'd be > ok with leaving --model-default as a sort of alias/explicit request, but it > does feel like people using --config probably really do mean > --model-default. > > John > =:-> > > > > > -- > Juju-dev mailing list > Juju-dev@lists.ubuntu.com > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/juju-dev > -- Juju-dev mailing list Juju-dev@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju-dev
Re: RFC "bootstrap --config" should be treated as "--model-default" and add "--model-config"
Why do we have bootstrap-constraints as a weird and different constraint, when we are intending to represent the controller services as apps with endpoints in the controller model anyway? Surely these are normal constraints on those apps? Mark On 26/01/17 11:56, John Meinel wrote: > So we know have "--bootstrap-constraints" to be very clear when you > are talking about the controller itself vs the other machines in the > model. > > Entries in a "config:" section in ~/.local/share/juju/cloud.yaml (and > I believe controllers.yaml) would show up in model-defaults and apply > to all models on your controller. > > Given '--config' is what people are used to supplying, and is the > wording used in configuration files, it feels natural to use it on the > command line as well. > > I'm not 100% sure whether it should be --model-config to match 'juju > model-config' or --bootstrap-config to match --bootstrap-constraints > to make it clear that you are setting values for the controller model, > and not for all models that you will be creating thereafter. > > I'm pretty sure Michael Foord brought something like this up in the > past, and I'm realizing that it really does follow well from his > proposal. I'd be ok with leaving --model-default as a sort of > alias/explicit request, but it does feel like people using --config > probably really do mean --model-default. > > John > =:-> > > > -- Juju-dev mailing list Juju-dev@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju-dev
RFC "bootstrap --config" should be treated as "--model-default" and add "--model-config"
So we know have "--bootstrap-constraints" to be very clear when you are talking about the controller itself vs the other machines in the model. Entries in a "config:" section in ~/.local/share/juju/cloud.yaml (and I believe controllers.yaml) would show up in model-defaults and apply to all models on your controller. Given '--config' is what people are used to supplying, and is the wording used in configuration files, it feels natural to use it on the command line as well. I'm not 100% sure whether it should be --model-config to match 'juju model-config' or --bootstrap-config to match --bootstrap-constraints to make it clear that you are setting values for the controller model, and not for all models that you will be creating thereafter. I'm pretty sure Michael Foord brought something like this up in the past, and I'm realizing that it really does follow well from his proposal. I'd be ok with leaving --model-default as a sort of alias/explicit request, but it does feel like people using --config probably really do mean --model-default. John =:-> -- Juju-dev mailing list Juju-dev@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju-dev