Chef Essentials by John Ewart

Chef Essentials by John Ewart

Author:John Ewart [Ewart, John]
Language: eng
Format: epub, pdf
Publisher: Packt Publishing
Published: 2014-09-24T21:00:00+00:00


Here, chef_run is an instance of a fully planned Chef client execution on a designated end host, as we will see later. Also, in this case, it is expected that it will create a file, /tmp/myfile.txt, and the test will fail if the simulated run does not create such a file.

Getting started with ChefSpec

In order to get started with ChefSpec, create a new cookbook directory (here it is $HOME/cookbooks/mycookbook) along with a recipes and spec directory:

mkdir -p ~/cookbooks/mycookbook mkdir -p ~/cookbooks/mycookbook/recipes mkdir -p ~/cookbooks/mycookbook/spec



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.