[vagrant
@192
chef-repo]$ knife solo cook vagrant
@192
.168.
1.110
Running Chef on
192.168
.
1.110
...
Checking Chef version...
Enter the password
for
vagrant
@192
.168.
1.110
:
Uploading the kitchen...
vagrant
@192
.168.
1.110
's password:
vagrant
@192
.168.
1.110
's password:
vagrant
@192
.168.
1.110
's password:
vagrant
@192
.168.
1.110
's password:
vagrant
@192
.168.
1.110
's password:
vagrant
@192
.168.
1.110
's password:
vagrant
@192
.168.
1.110
's password:
vagrant
@192
.168.
1.110
's password:
Generating solo config...
vagrant
@192
.168.
1.110
's password:
Running Chef...
[
2014
-
05
-17T00:
53
:
49
+
00
:
00
] WARN:
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
SSL validation of HTTPS requests is disabled. HTTPS connections are still
encrypted, but chef is not able to detect forged replies or man in the middle
attacks.
To fix
this
issue add an entry like
this
to your configuration file:
```
# Verify all HTTPS connections (recommended)
ssl_verify_mode :verify_peer
# OR, Verify only connections to chef-server
verify_api_cert
true
verify_api_cert
true
```
To check your SSL configuration, or troubleshoot errors, you can use the
`knife ssl check` command like so:
```
knife ssl check -c /home/vagrant/chef-solo/solo.rb
```
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Starting Chef Client, version
11.12
.
4
Compiling Cookbooks...
Converging
3
resources
Recipe: sample::
default
*
package
[httpd] action install
- install version
2.2
.
15
-
30
.el6.centos of
package
httpd
* service[httpd] action enable
- enable service service[httpd]
* service[httpd] action start
- start service service[httpd]
* cookbook_file[/var/www/html/index.html] action create
- create
new
file /var/www/html/index.html
- update content in file /var/www/html/index.html from none to 69c55a
--- /var/www/html/index.html
2014
-
05
-
17
00
:
54
:
00.052014612
+
0000
+++ /tmp/.index.html20140517-
7453
-saxrdh
2014
-
05
-
17
00
:
54
:
00.079014612
+
0000
@@ -
1
+
1
,
6
@@
+<html>
+<body>
+ <h1>Hello, world!</h1>
+</body>
+</html>
- change mode from
''
to
'0644'
- restore selinux security context
Running handlers:
Running handlers complete
Chef Client finished,
4
/
4
resources updated in
10.961148419
seconds