Wednesday, 15 May 2013

python - How to install pytest using chef -



python - How to install pytest using chef -

i have downloaded python cookbook opscode using knife cookbook download site command. ran chef-solo on ubuntu , works fine. need pytest installed. don't seem find cookbook pytest on opscode. how should go it? new chef, don't have much idea.

you should create new recipe install pytest using lwrps included in python cookbook

python_pip "pytest" version "2.5.2" end

steps

1 - create new cookbook (knife cookbook create name_cookbook)

2 - add together dependency metadata.rb (vi metadata.rb)

depends 'python'

3 - include default recipe (vi recipe/default.rb)

include_recipe 'python::default'

4 - install pip supplier, pytest (vi recipe/default.rb)

python_pip "pytest" version "2.5.2" end

5 - add together run_list

"run_list": [ "recipe [name_cookbook]"]

it minimal version , begin seek chef.

maybe link can help

http://gettingstartedwithchef.com/

sorry english

best regards

python chef py.test chef-solo cookbook

No comments:

Post a Comment