Hi,
I am getting following error when bootstrapping a node with knife:
knife bootstrap centos8.foo.bar -U root -P 'foobar' -N centos8 -r 'recipe[ssh_authorized_keys]'
Connecting to centos8.foo.bar using ssh
The authenticity of host 'centos8.foo.bar (192.168.158.140)' can't be established.
fingerprint is SHA256:hY24Y9NG8npDSVhT19FpG6a7feNpn8dVIV1grYQy2pE.
Are you sure you want to continue connecting
? (Y/N) Y
Connecting to centos8.foo.bar using ssh
Node centos8 exists, overwrite it? (Y/N) Y
Client centos8 exists, overwrite it? (Y/N) Y
Creating new client for centos8
Creating new node for centos8
Bootstrapping centos8.foo.bar
[centos8.foo.bar] -----> Existing Chef Infra Client installation detected
[centos8.foo.bar] Starting the first Chef Infra Client Client run...
[centos8.foo.bar] Starting Chef Infra Client, version 16.6.14
Patents: https://www.chef.io/patents
[centos8.foo.bar] resolving cookbooks for run list: ["ssh_authorized_keys"]
[centos8.foo.bar] Synchronizing Cookbooks:
[centos8.foo.bar] - ssh_authorized_keys (1.0.0)
[centos8.foo.bar] Installing Cookbook Gems:
Compiling Cookbooks...
[centos8.foo.bar]
Recipe Compile Error
Chef::Exceptions::RecipeNotFound
could not find recipe default for cookbook ssh_authorized_keys
Running handlers:
[2020-10-17T08:01:31+02:00] ERROR: Running exception handlers
Running handlers complete
[2020-10-17T08:01:31+02:00] ERROR: Exception handlers complete
Chef Infra Client failed. 0 resources updated in 02 seconds
[2020-10-17T08:01:31+02:00] FATAL: Stacktrace dumped to /Users/wbrodkorb/.chef/cache/chef-stacktrace.out
[2020-10-17T08:01:31+02:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2020-10-17T08:01:31+02:00] FATAL: Chef::Exceptions::RecipeNotFound: could not find recipe default for cookbook ssh_authorized_keys
ERROR: The following error occurred on centos8.foo.bar:
ERROR:
Is this cookbook not compatible with my chef-server version 14.0.58?
I am a chef newbie, so don't be to crude with your answer ;)
Okay, the docs seems not to be clear about that the default.rb file must be created by the user.
With this added the cookbook works now for me. So the docs might need a small update to make it clear for newbies.
Hi, I am getting following error when bootstrapping a node with knife:
knife bootstrap centos8.foo.bar -U root -P 'foobar' -N centos8 -r 'recipe[ssh_authorized_keys]' Connecting to centos8.foo.bar using ssh The authenticity of host 'centos8.foo.bar (192.168.158.140)' can't be established. fingerprint is SHA256:hY24Y9NG8npDSVhT19FpG6a7feNpn8dVIV1grYQy2pE.
Are you sure you want to continue connecting ? (Y/N) Y Connecting to centos8.foo.bar using ssh Node centos8 exists, overwrite it? (Y/N) Y Client centos8 exists, overwrite it? (Y/N) Y Creating new client for centos8 Creating new node for centos8 Bootstrapping centos8.foo.bar [centos8.foo.bar] -----> Existing Chef Infra Client installation detected [centos8.foo.bar] Starting the first Chef Infra Client Client run... [centos8.foo.bar] Starting Chef Infra Client, version 16.6.14 Patents: https://www.chef.io/patents [centos8.foo.bar] resolving cookbooks for run list: ["ssh_authorized_keys"] [centos8.foo.bar] Synchronizing Cookbooks: [centos8.foo.bar] - ssh_authorized_keys (1.0.0) [centos8.foo.bar] Installing Cookbook Gems: Compiling Cookbooks... [centos8.foo.bar]
Recipe Compile Error
Chef::Exceptions::RecipeNotFound
could not find recipe default for cookbook ssh_authorized_keys
System Info:
chef_version=16.6.14 platform=centos platform_version=8.2.2004 ruby=ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux] program_name=/usr/bin/chef-client executable=/opt/chef/bin/chef-client
Running handlers: [2020-10-17T08:01:31+02:00] ERROR: Running exception handlers Running handlers complete [2020-10-17T08:01:31+02:00] ERROR: Exception handlers complete Chef Infra Client failed. 0 resources updated in 02 seconds [2020-10-17T08:01:31+02:00] FATAL: Stacktrace dumped to /Users/wbrodkorb/.chef/cache/chef-stacktrace.out [2020-10-17T08:01:31+02:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report [2020-10-17T08:01:31+02:00] FATAL: Chef::Exceptions::RecipeNotFound: could not find recipe default for cookbook ssh_authorized_keys ERROR: The following error occurred on centos8.foo.bar: ERROR:
Is this cookbook not compatible with my chef-server version 14.0.58? I am a chef newbie, so don't be to crude with your answer ;)
best regards Waldemar