I have an bundle that will mostly be deployed to an openstack cloud environment, but one service needs to go to a maas system that will have to be manually added to the environment via juju add-machine.
My initial thought was to specify "to: ssh:ubuntu@maas-node-1" in my bundle but this was not possible. Failing that, I tried adding the machine, which got added as machine 1, and specifying "to: 1" but this generated an error as well. It looks like unit placement only allows machine 0.
Talking to hazmat on irc, he explained that this is because only machine 0 can be guaranteed to exist. The short-term recommendation was that there could be an option to disable this check and allow the user to target other machines.
This is particularly important when using HA for the bootstrap nodes - we can ensure, or at the very least assume, that there'll be 3 (or more) initial nodes, and without the ability to deploy to specific machine ids that aren't 0, it makes it very difficult to add extra things to these nodes.
I've worked around this by having to add a manual juju deploy and juju add-unit lines to our deployment here, but its definately suboptimal, I'd much prefer to be able to do the whole thing in juju-deployer.
Please let us know if you need any more details about this use case, or anything else.