Coder Social home page Coder Social logo

Comments (8)

sawanoboly avatar sawanoboly commented on June 22, 2024

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

from knife-zero.

patcon avatar patcon commented on June 22, 2024

Could override this in our bootstrap context if we felt like it:
https://github.com/chef/chef/blob/d8172e646d9fbf43e57bca5e20d0ac352ba9a66a/lib/chef/knife/core/bootstrap_context.rb#L126-L133

from knife-zero.

sawanoboly avatar sawanoboly commented on June 22, 2024

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

from knife-zero.

patcon avatar patcon commented on June 22, 2024

👍

from knife-zero.

patcon avatar patcon commented on June 22, 2024

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

from knife-zero.

sawanoboly avatar sawanoboly commented on June 22, 2024

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

from knife-zero.

sawanoboly avatar sawanoboly commented on June 22, 2024

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

from knife-zero.

patcon avatar patcon commented on June 22, 2024

You're awesome, @sawanoboly!

from knife-zero.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.