[Fiware-miwi] Some additional notes on working with Chef recipes in Testbed

Arto Heikkinen arto.heikkinen at cie.fi
Wed Aug 27 12:08:24 CEST 2014


Hi all,

In today's meeting I promised to share some notes I've learned while 
working with the Chef Cookbooks and Recipes. So here it is, hope this 
helps a bit:

*Some additional notes on creating Chef recipes in FI-WARE Testbed*

* The person to ask for help and assistance is HENAR MUÑOZ FRUTOS 
(henar.munozfrutos at telefonica.com)
    -She can also provide the user account for the test Chef server

* You may need to install Chef yourself, as there is only a limited set 
of different Linux distribution VM images provided in the testbed where 
Chef is pre-installed
     - Easiest way is to execute the following command in your VM (as 
root):
         curl -L https://www.opscode.com/chef/install.sh | bash

* Easiest way to test-run a single recipe is to use chef-apply command:
     chef-apply name_of_recipefile.rb

* How to upload your cookbook to the svn:
     1. svn checkout 
https://forge.fi-ware.org/scmrepos/svn/testbed/trunk/cookbooks
     2. copy your cookbook folder under cookbooks/GESoftware
     3. cd cookbooks
     4. svn add GESoftware/your_cookbook_folder
     5. svn commit --username your_forge_username

     NOTE that the cookbook will not appear immediately to the Chef 
server, apparently there is a daily cron-run that updates the cookbooks 
from the svn to the Chef server. You can also ask Henar to upload them 
manually to the Chef server.

-Arto

-- 
_______________________________________________________
Arto Heikkinen, Doctoral student, M.Sc. (Eng.)
Center for Internet Excellence (CIE)
P.O. BOX 1001, FIN-90014 University of Oulu, Finland
e-mail: arto.heikkinen at cie.fi, http://www.cie.fi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-miwi/attachments/20140827/22e68012/attachment.html>


More information about the Fiware-miwi mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy