This file contains hidden or 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 | |
* template[/etc/motd] action create[2016-11-15T18:57:44+00:00] WARN: File /etc/motd managed by template[/etc/motd] is really a symlink. Managing the source file instead. |
This file contains hidden or 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 node run_list add try_2 "recipe[apache2]" | |
ERROR: Failed to authenticate to https://api.chef.io:443/organizations/v4archite | |
cts as houami with key C:/Chef-Repo/chef-repo/.chef/houami.pem | |
Response: Invalid signature for user or client 'houami' | |
C:\Chef-Repo\chef-repo>knife node run_list add try_2 "recipe[apache]" | |
ERROR: Failed to authenticate to https://api.chef.io:443/organizations/v4archite | |
cts as houami with key C:/Chef-Repo/chef-repo/.chef/houami.pem | |
Response: Invalid signature for user or client 'houami' |
This file contains hidden or 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 exec | |
C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-dk-0.19.6/lib/chef-dk/c | |
ommand/exec.rb:30:in `exec': wrong number of arguments (given 0, expected 1+) (A | |
rgumentError) | |
from C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-dk-0.19.6/ | |
lib/chef-dk/command/exec.rb:30:in `run' | |
from C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-dk-0.19.6/ | |
lib/chef-dk/command/base.rb:58:in `run_with_default_options' | |
from C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-dk-0.19.6/ | |
lib/chef-dk/cli.rb:73:in `run' |
This file contains hidden or 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
PS C:\chef-repo> chef-client | |
[2016-11-18T08:37:31+05:30] WARN: ***************************************** | |
[2016-11-18T08:37:31+05:30] WARN: Did not find config file: C:/chef/client.rb, using command line options. | |
[2016-11-18T08:37:31+05:30] WARN: ***************************************** | |
Starting Chef Client, version 12.15.19 | |
Creating a new client identity for Admin using the validator key. | |
[2016-11-18T08:37:47+05:30] WARN: Failed to read the private key C:\chef\validation.pem: #<Errno::ENOENT: No such file o | |
r directory @ rb_sysopen - C:\chef\validation.pem> | |
================================================================================ |
This file contains hidden or 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-19T13:22:40+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 "room_linuxbox" | |
================================================================================ | |
Private Key Not Found: | |
---------------------- |
This file contains hidden or 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 etc]$ sudo knife node show room_linuxbox -a kernel | |
WARNING: No knife configuration file found | |
ERROR: ArgumentError: Cannot sign the request without a client name, check that :node_name is assigned | |
[ec2-user@ip-172-31-12-212 etc]$ sudo knife node show room_linuxbox -a httpd | |
WARNING: No knife configuration file found | |
ERROR: ArgumentError: Cannot sign the request without a client name, check that :node_name is assigned |
This file contains hidden or 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>knife search node 'platform:*' -a 'packages.httpd.version' | |
1 items found | |
room_linuxbox: | |
packages.httpd.version: 2.2.31 |
This file contains hidden or 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>knife node run_list add room_linuxbox -b 'recipe[apt]' 'recipe[apac | |
he]' | |
room_linuxbox: | |
run_list: | |
recipe[apache] | |
recipe[apt] | |
C:\chef-repo>knife node run_list add room_linuxbox -a 'recipe[apt]' 'recipe[apac | |
he]' | |
room_linuxbox: |
This file contains hidden or 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: ["apache", "apt"] | |
Synchronizing Cookbooks: | |
- apt (0.1.0) | |
- apache (0.1.0) | |
Installing Cookbook Gems: | |
Compiling Cookbooks... | |
Converging 4 resources | |
Recipe: apache::default |
This file contains hidden or 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
packagename='apache2' | |
servicename='apache2' | |
docroot='/var/www/' | |
if node['platform']=='amazon' | |
packagename = 'httpd' | |
servicename = 'httpd' | |
docroot= '/var/www/html' | |
end | |