Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
r4hulgupta opened this issue Nov 23, 2016 · 0 comments

Comments

@r4hulgupta
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant