Monthly Archives: August 2014

Error provisioning VM with Vagrant

Problem:

Today I got following error while trying to provision a VM using Vagrant to test chef cookbooks

ishtiaqmedsmbp2:wmq Ishtiaq$ vagrant provision
[default] The cookbook path '/Users/Ishtiaq/chef-repo/cookbooks/wmq/cookbooks' doesn't exist. Ignoring...
[default] The cookbook path '/Users/Ishtiaq/chef-repo/cookbooks/wmq/roles' doesn't exist. Ignoring...
[default] The cookbook path '/Users/Ishtiaq/chef-repo/cookbooks/wmq/data_bags' doesn't exist. Ignoring...
[default] Running provisioner: chef_solo...
The chef binary (either `chef-solo` or `chef-client`) was not found on
the VM and is required for chef provisioning. Please verify that chef
is installed and that the binary is available on the PATH.

Fix:

vagrant plugin install vagrant-omnibus

Tried vagrant provision, resulted in another error

ishtiaqmedsmbp2:wmq Ishtiaq$ vagrant provision
There are errors in the configuration of this machine. Please fix
the following errors and try again:

Vagrant:
* Unknown configuration section 'omnibus'.

ishtiaqmedsmbp2:wmq Ishtiaq$

Install omnibus vagrant plugin

ishtiaqmedsmbp2:wmq Ishtiaq$ vagrant plugin install vagrant-omnibus
Installing the 'vagrant-omnibus' plugin. This can take a few minutes...
Installed the plugin 'vagrant-omnibus (1.4.1)'!

Run vagrant provision again

ishtiaqmedsmbp2:wmq Ishtiaq$ vagrant provision
[default] The cookbook path '/Users/Ishtiaq/chef-repo/cookbooks/wmq/cookbooks' doesn't exist. Ignoring...
[default] The cookbook path '/Users/Ishtiaq/chef-repo/cookbooks/wmq/roles' doesn't exist. Ignoring...
[default] The cookbook path '/Users/Ishtiaq/chef-repo/cookbooks/wmq/data_bags' doesn't exist. Ignoring...
[default] Installing Chef 11.14.2 Omnibus package...
[default] Downloading Chef 11.14.2 for el...
[default] downloading https://www.getchef.com/chef/metadata?v=11.14.2&prerelease=false&nightlies=false&p=el&pv=6&m=x86_64
[default]   to file /tmp/install.sh.2012/metadata.txt
[default] trying curl...
[default] url	https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-11.14.2-1.el6.x86_64.rpm
md5	ffeffb67c310e6f76bb5d90ee7e30a3f
sha256	840946bc5f7931346131c0c77f2f5bfd1328245189fc6c8173b01eb040ffb58b
[default] downloaded metadata file looks valid...
[default] downloading https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-11.14.2-1.el6.x86_64.rpm
  to file /tmp/install.sh.2012/chef-11.14.2-1.el6.x86_64.rpm
trying curl...
[default] Comparing checksum with sha256sum...
[default] Installing Chef 11.14.2
[default] installing with rpm...
[default] warning:
[default] /tmp/install.sh.2012/chef-11.14.2-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 83ef826a: NOKEY
[default] Preparing...
[default] ##################################################
[default]
[default] chef
[default] #
[default] #
[default] #
[default] #
default] #
[default] #
[default]
[default] Thank you for installing Chef!
[default] Running provisioner: chef_solo...
Generating chef JSON and uploading...
Running chef-solo...
[2014-08-17T01:53:04+00:00] INFO: Forking chef instance to converge...
[2014-08-17T01:53:04+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-08-17T01:53:04+00:00] INFO: *** Chef 11.14.2 ***
[2014-08-17T01:53:04+00:00] INFO: Chef-client pid: 2220
[2014-08-17T01:53:16+00:00] INFO: Setting the run_list to ["recipe[wmq]"] from CLI options
[2014-08-17T01:53:16+00:00] INFO: Run List is [recipe[wmq]]
[2014-08-17T01:53:16+00:00] INFO: Run List expands to [wmq]
[2014-08-17T01:53:16+00:00] INFO: Starting Chef Run for techish-starter

find files size greater than 1 GB on linux

find files having size greater than 1 GB on linux

find / -type f -size +1G -exec ls -lh {} \;

find files with name starting with “WAS_V8”

find /-type f -name WAS_V8* -exec ls -lh {} \;
Array ( [marginTop] => 100 [pageid] => @techish1 [alignment] => left [width] => 292 [height] => 300 [color_scheme] => light [header] => header [footer] => footer [border] => true [scrollbar] => scrollbar [linkcolor] => #2EA2CC )