How to use 'knife data bag create' without chef server?


#1

Hi,

I intend to install a sensu receipt (https://github.com/sensu/sensu-chef)
via chef-zero and vagrant.

It requires the creation of a data bag.

In the README.md of the sensu-chef, it says I can run either

cd examples/ssl
./ssl_certs.sh generate
knife data bag create sensu

or

knife data bag from file sensu ssl.json

However either way it requires a chef server URL.

I do not have access to any chef server. How can get around this
restriction to create a data bag?

Thanks, Tony


#2

Use the -z flag within a chef repo to use ‘local mode’
__________________________ (╯°□°)╯︵ ┻━┻
Ivan Suftin - Applications Developer - isuftin@usgs.gov
Office: (608) 821-3825 - Cell : (608) 345-8963
Center for Integrated Data Analytics - http://cida.usgs.gov/
United States Geological Survey
8505 Research Way, Middleton, WI 53562

On Jan 24, 2015, at 8:46 PM, Anthony Kong anthony.hw.kong@gmail.com wrote:

Hi,

I intend to install a sensu receipt (https://github.com/sensu/sensu-chef) via chef-zero and vagrant.

It requires the creation of a data bag.

In the README.md of the sensu-chef, it says I can run either

cd examples/ssl
./ssl_certs.sh generate
knife data bag create sensu
or

knife data bag from file sensu ssl.json

However either way it requires a chef server URL.

I do not have access to any chef server. How can get around this restriction to create a data bag?

Thanks, Tony