So I ran this...
PS E:\VagrantStuff\chef-repo> knife node show module3
Node Name: module3
Environment: _default
IP: 10.160.201.90
Run List: recipe[apache]
Roles:
Recipes: apache, apache::default
Platform: centos 6.4
Tags:
PS E:\VagrantStuff\chef-repo> knife node run list remove module3 "recipe[apache]"
module3:
run_list:
PS E:\VagrantStuff\chef-repo> knife node run list add module3 "role[webserver]"
module3:
run_list: recipe[roles]
then SSH'd into the server to run sudo chef client and got the error in the question title:
[root@CentOS63 ~]# sudo chef-client
[2014-06-03T14:24:50-04: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
```
To check your SSL configuration, or troubleshoot errors, you can use the
`knife ssl check` command like so:
```
knife ssl check -c /etc/chef/client.rb
```
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Starting Chef Client, version 11.12.2
resolving cookbooks for run list: ["roles"]
================================================================================
Error Resolving Cookbooks for Run List:
================================================================================
Missing Cookbooks:
------------------
The following cookbooks are required by the client but don't exist on the server:
* roles
Expanded Run List:
------------------
* roles
Running handlers:
[2014-06-03T14:24:54-04:00] ERROR: Running exception handlers
Running handlers complete
[2014-06-03T14:24:54-04:00] ERROR: Exception handlers complete
[2014-06-03T14:24:54-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 3.579825334 seconds
[2014-06-03T14:24:54-04:00] ERROR: 412 "Precondition Failed"
[2014-06-03T14:24:54-04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)