The not_if gaurd seems to the failing to return the correct status when checking to see if Nexpose has already been installed. This causes a chef to fail to converge properly.
==> default: Chef 11.12.2 Omnibus package is already installed.
==> default: Running provisioner: chef_solo...
Generating chef JSON and uploading...
Running chef-solo...
stdin: is not a tty
[2014-04-28T21:21:34+00:00] INFO: Forking chef instance to converge...
[2014-04-28T21:21:34+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
To check your SSL configuration, or troubleshoot errors, you can use the
`knife ssl check` command like so:
knife ssl check -c /tmp/vagrant-chef-1/solo.rb
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
[2014-04-28T21:21:34+00:00] INFO: *** Chef 11.12.2 ***
[2014-04-28T21:21:34+00:00] INFO: Chef-client pid: 2794
[2014-04-28T21:21:36+00:00] INFO: Setting the run_list to ["recipe[nexpose::default]"] from CLI options
[2014-04-28T21:21:36+00:00] INFO: Run List is [recipe[nexpose::default]]
[2014-04-28T21:21:36+00:00] INFO: Run List expands to [nexpose::default]
[2014-04-28T21:21:36+00:00] INFO: Starting Chef Run for nexpose-berkshelf
[2014-04-28T21:21:36+00:00] INFO: Running start handlers
[2014-04-28T21:21:36+00:00] INFO: Start handlers complete.
[2014-04-28T21:21:36+00:00] INFO: WindowsPackage light-weight resource already initialized -- overriding!
================================================================================
Error executing action `run` on resource 'execute[install-nexpose]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /var/chef/cache/NeXposeSetup-Linux64.bin -q -dir /opt/rapid7/nexpose -Dinstall4j.suppressUnattendedReboot=true -varfile /var/chef/cache/response.varfile ----
STDOUT: Unpacking JRE ...
Starting Installer ...
Finishing installation...
STDERR: Apr 28, 2014 9:21:44 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created system preferences directory in java.home.
---- End output of /var/chef/cache/NeXposeSetup-Linux64.bin -q -dir /opt/rapid7/nexpose -Dinstall4j.suppressUnattendedReboot=true -varfile /var/chef/cache/response.varfile ----
Ran /var/chef/cache/NeXposeSetup-Linux64.bin -q -dir /opt/rapid7/nexpose -Dinstall4j.suppressUnattendedReboot=true -varfile /var/chef/cache/response.varfile returned 1
The not_if gaurd seems to the failing to return the correct status when checking to see if Nexpose has already been installed. This causes a chef to fail to converge properly.
Verify all HTTPS connections (recommended)
ssl_verify_mode :verify_peer
OR, Verify only connections to chef-server
verify_api_cert true
knife ssl check -c /tmp/vagrant-chef-1/solo.rb