chef-provisioning-aws icon indicating copy to clipboard operation
chef-provisioning-aws copied to clipboard

Need clarification on 'machine/machine_batch' option 'actions' to avoid WinRM connection

Open r4hulgupta opened this issue 8 years ago • 0 comments

Ohai,

So I am trying to figure out how to avoid bootstrapping the nodes when using machine/machine_batch resource. I want it to create EC2 instances, check for the 'Windows is ready' message from AWS and then gracefully end. I tried using options: [1]

machine_batch
  action :allocate
    machine ...
      converge false

[2]

machine_batch
  action :ready
   machine ...
     converge false

[1] option creates the EC2 instance and then exits without waiting for 'Windows is ready' message from AWS. [2] option creates the EC2 instance and then waits for 'Windows is ready' message but then also tries to connect to the instance (which I don't want it to do).

From the definition in Chef docs here, I believe action :ready should do what I want but it doesn't do it. Any other option or combination that I should use apart from the above? Or is there any way to accomplish what I want here?

The overall idea is to not allow WinRM connection from provisioner node to the provisioned node which happens as part of machine convergence and then use AMIs with pre installed and configured chef-client.

Please let me know if more clarification or information is needed.

Thanks!

r4hulgupta avatar Nov 23 '16 01:11 r4hulgupta