This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Chef-Repo\chef-repo>knife bootstrap 52.90.148.59 -x ec2-user -i ./.chef/houam | |
i.pem --sudo -p 22 -N "try_1" | |
Creating new client for try_1 | |
Creating new node for try_1 | |
Connecting to 52.90.148.59 | |
Failed to authenticate ec2-user - trying password auth | |
Enter your password: | |
ERROR: Net::SSH::AuthenticationFailed: Authentication failed for user ec2-user@5 | |
[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Chef-Repo\chef-repo\cookbooks\motd\templates>knife node run_list add 52.90.14 | |
8.59 "recipe[motd]" | |
ERROR: The object you are looking for could not be found | |
Response: node '52.90.148.59' not found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user@ip-172-31-12-212 ~]$ chef-client | |
Starting Chef Client, version 12.16.42 | |
[2016-11-15T02:39:54+00:00] WARN: Failed to read the private key /etc/chef/client.pem: #<Errno::EACCES: Permission denied @ rb_sysopen - /etc/chef/client.pem> | |
================================================================================ | |
Chef encountered an error attempting to create the client "try_2_pemchange" | |
================================================================================ | |
Private Key Not Found: | |
---------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Chef-Repo\chef-repo\.chef>knife node run_list add 54.210.178.200 try_2_pemcha | |
nge "recipe[motd]" | |
ERROR: The object you are looking for could not be found | |
Response: node '54.210.178.200' not found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See http://docs.chef.io/config_rb_knife.html for more information on knife configuration options | |
current_dir = File.dirname(__FILE__) | |
log_level :info | |
log_location STDOUT | |
node_name "houami" | |
client_key "#{current_dir}/houami.pem" | |
chef_server_url "https://api.chef.io:443/organizations/v4architects" | |
cookbook_path ["#{current_dir}/../cookbooks"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Chef-Repo\chef-repo\.chef>knife node run_list add ip-172-31-12-212.ec2.intern | |
al "recipe[motd]" | |
ERROR: The object you are looking for could not be found | |
Response: node 'ip-172-31-12-212.ec2.internal' not found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See http://docs.chef.io/config_rb_knife.html for more information on knife configuration options | |
current_dir = File.dirname(__FILE__) | |
log_level :info | |
log_location STDOUT | |
node_name "houami" | |
client_key "#{current_dir}/houami.pem" | |
chef_server_url "https://ip-172-31-12-212.ec2.internal/organizations/v4architects" | |
cookbook_path ["#{current_dir}/../cookbooks"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log_level :info | |
log_location STDOUT | |
chef_server_url 'https://api.chef.io:443/organizations/v4architects' | |
validation_client_name 'chef-validator' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user@ip-172-31-12-212 ~]$ sudo chef-client | |
Starting Chef Client, version 12.16.42 | |
resolving cookbooks for run list: ["motd"] | |
Synchronizing Cookbooks: | |
- motd (0.1.0) | |
Installing Cookbook Gems: | |
Compiling Cookbooks... | |
Converging 1 resources | |
Recipe: motd::default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user@ip-172-31-12-212 ~]$ sudo chef-client | |
Starting Chef Client, version 12.16.42 | |
resolving cookbooks for run list: ["motd"] | |
Synchronizing Cookbooks: | |
- motd (0.1.0) | |
Installing Cookbook Gems: | |
Compiling Cookbooks... | |
Converging 1 resources | |
Recipe: motd::default |
OlderNewer