Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question is similar to Can juju add-machine be used to prepare a machine for service deployment?, with some differences; however. I am trying to find the fastest way of deploying juju bundles on target nodes. I suppose the proper way of doing so is to bring the required number of target nodes to "Ready" state, and while they are powered off, deploy the bundle, turn the nodes on and let them eventually get to "allocated" state. To speed up the process, I typically issue a number of "juju add-machine" to upload the desired image to the target nodes that are already in "Ready" state and let them get allocated. To allow for a bundle to provision existing machines, I then select the allocated nodes and stop them, from MAAS drop down menu. This puts the desired nodes in "Ready" state, once again, while powered on. Deploying a bundle will provision the nodes, and puts them in "allocated" state. This generally works well. The only snag is that upon reboot, target node goes through pxe boot again, wiping out all the charms and juju deamon. Is there a better way of doing this?

share|improve this question

1 Answer 1

You can use constraints in a bundle to limit the type of machine that each service (unit) gets deployed to, but options are somewhat limited. Telling Juju to co-locate two or more services on a given machine is definitely doable. I suggest taking a look at Juju Deployer's placement documentation to get an idea of what is possible, and how you can edit the bundle file.

share|improve this answer
    
So, to clarify: If I am to edit yaml file to target specific machines, it would imply that machines ought to have been assigned to a pool, already. (Correct?) Does this imply that the above procedure, for pool assignment, is proper? –  user281985 Jun 23 at 15:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.