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

Bootstrap without Chef-Client Run #25

Closed
sawanoboly opened this issue Apr 2, 2015 · 8 comments
Closed

Bootstrap without Chef-Client Run #25

sawanoboly opened this issue Apr 2, 2015 · 8 comments

Comments

@sawanoboly
Copy link
Member

UseCase: http://qiita.com/sawanoboly/items/4f363909615d8a76e9e5#comment-dc7a0303492056b66ca8

@sawanoboly
Copy link
Member Author

あー、-W (wry-run)つけてbootstrapすれば一応同じことできるわ。

@patcon
Copy link
Contributor

patcon commented Jun 13, 2015

@sawanoboly
Copy link
Member Author

Thanks,
This feature is assuming the update client.rb only.

sawanoboly added a commit that referenced this issue Jun 14, 2015
@patcon
Copy link
Contributor

patcon commented Jun 14, 2015

👍

@patcon
Copy link
Contributor

patcon commented Jun 14, 2015

Oh hey, I think the more common flag name would be skip_chef_run, but in chef world, it seems the "no-" form is preferred.

What about a --[no-]converge flag for only the knife zero bootstrap command with an underlying var of :bootstrap_converge, that defaults to true? (underlying var differs only so that reading knife.rb is clear.) This would follow how :use_sudo works.

# .chef/knife.rb
knife[:bootstrap_converge] = false
# Does bootstrap without chef run
knife zero bootstrap foo.example.com

# Does bootstrap with chef run turned back on
knife zero bootstrap bar.example.com --converge

@sawanoboly
Copy link
Member Author

OK, --[no-]converge and bootstrap_converge is not bad.

@sawanoboly
Copy link
Member Author

I changed to knife[:bootstrap_converge] and --[no-]converge. And released as v1.7.1

@patcon
Copy link
Contributor

patcon commented Jun 14, 2015

You're awesome, @sawanoboly!

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

No branches or pull requests

2 participants