Comments (15)
あと、 knife[:client_version]
を入れてると、convergeのたびに、cincのダウンロードしちゃうっぽくて、バージョン取得がうまくできないとかそういうのも関連であるかもしれません。
from knife-zero.
bundle exec knife ssh --attribute ipaddress 'name:xxxx' 'sudo dpkg -r chef'
bundle exec knife zero bootstrap --sudo xxxx --node-name xxxx \
--alter-project cinc --no-converge \
--bootstrap-url https://omnitruck.cinc.sh/install.sh
bundle exec knife ssh --attribute ipaddress 'name:xxx'
僕のケースだとchefからの移行なのでなにか特殊かもしれませんが、とりあえず上記で動きました!
from knife-zero.
フィードバックありがとうございます! 該当箇所を見直してみますー
from knife-zero.
bootstrap urlは下記への書き換えでよさそうでした。
@config[:bootstrap_url] = 'https://omnitruck.cinc.sh/install.sh'
次バージョンで対応します。
ほか、ちょっとややこしいですが bootstrap時のバージョン指定はパラメータ別になっています。
knife[:bootstrap_version] = '16.12.3'
from knife-zero.
ははぁ、なるほど。
from knife-zero.
あと、 knife[:client_version] を入れてると、convergeのたびに、cincのダウンロードしちゃう
client_version
は更新用のオプションなので、一応現状としてはそういう仕様になっちゃいます。
基本的に bootstrap_version
で指定バージョンをインストールしつつ、一斉更新の際などに client_version を使うという運用でどうでしょうか。
from knife-zero.
とりいそぎ、bootstrap時に alter_project で bootstrap_urlが別途指定が必要だった件を修正した 2.4.1をリリースしましたー
from knife-zero.
client_version オプションがあるときの挙動は、下記のようにかなり強引に処理を突っ込んでいるため、現行のバージョンとかみておらんのです。
https://github.com/higanworks/knife-zero/blob/main/lib/knife-zero/bootstrap_ssh.rb#L47-L54
見るようにしてもいいのかなー。
from knife-zero.
ローカルのnodes/
にあるchef_packages を比較対象にすればスキップできるかもしれませんね。
from knife-zero.
あ、rubyに渡してるワンライナー内で頑張って Chef::Version と比較しちゃえばいいのか。
from knife-zero.
/opt/cinc/embedded/bin/ruby -rchef -ropen-uri -e 'if Chef::VERSION == "16.12.3" ; puts "/bin/true" ; else ; puts open("https://omnitruck.cinc.sh/install.sh").read ; end' | sh -s -- -v 16.12.3
こうかー。 なんかひどいw
from knife-zero.
基本的に bootstrap_version で指定バージョンをインストールしつつ、一斉更新の際などに client_version を使うという運用でどうでしょうか。
よさそうです!
from knife-zero.
とりあえず、knife.rbにchefのバージョン定義せずに必要なときに引数で渡せば良さそうってのがわかったから、都度インストールされちゃう問題は大丈夫そうです。
from knife-zero.
諒解です! 2.5.xに上げるころにもしかしたらバージョンチェックも入れるかもです。
このIssueはCloseでよいですか?
from knife-zero.
よいです!
from knife-zero.
Related Issues (20)
- Cannot bootstrap a new node (ssh authentication fails) HOT 2
- Dependabot can't resolve your Ruby dependency files
- knife zero converge not doing anything !? HOT 9
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Using MOSH for flaky internet connection HOT 2
- Chef dependency should be >= 17 for 2.4.x HOT 2
- knife zero converge "name:xxx-*" ERROR: Too many open files HOT 3
- knife zero converge command got sudo: chef-client: command not found error HOT 6
- knife zero converge - sudo: chef-client: command not found HOT 2
- Can't use with cinc
- Knife ignores ssh config file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knife-zero.