summaryrefslogtreecommitdiffstats
path: root/meta-openstack/classes/openstackchef_inc.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* chef: remove the use of chefMark Asselstine2017-01-091-831/+0
| | | | | | | | | | | The use of chef was never complete, had isses with updating binary database files and had a cumbersome implementation. Since we are using Ansible in meta-overc we are dropping the use of chef here and will look to being at par with meta-overc by using Ansible if/when we get time to look at runtime configuration in meta-cloud-services. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* housekeeping: drop usage of bb.data.getVar()Mark Asselstine2016-12-201-14/+14
| | | | | | | | | | Similar to oe-core commit 2864ff6a4b3c3f9b3bbb6d2597243cc5d3715939 the bb.data.getVar() have been deprecated for enough time now that it has been removed. We need to switch to the new getVar() to get things working again. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* openstackchef_inc.bbclass: Update python synthax for exceptAdrian Dudau2016-09-191-2/+2
| | | | | | | The synthax used is deprecated and causes errors. Signed-off-by: Adrian Dudau <adrian.dudau@enea.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* openstackchef: add missing parameter to getVarMark Asselstine2016-03-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Builds are failing with: File: 'openstackchef_inc.bbclass', lineno: 624, function: deploychef_add_file_to_FILES_PN 0620: pkg_files = "FILES_%s" % pkg 0621: ldata.setVar("OVERRIDES", "%s:%s" % (pkg_files, overrides)) 0622: bb.data.update_data(ldata) 0623: *** 0624: dest_base = d.getVar('CHEF_TEMPLATE_BASE') 0625: pkg_imagedir = d.getVar('CHEF_ROOTFS_BASE', True) 0626: #Add the packages image base directory if it does not already exist 0627: if re.search(pkg_imagedir, files) == None: 0628: #All the directory and all files in it Exception: TypeError: getVar() takes at least 3 arguments (2 given) Add the required parameter to fix the build. Chef is planned to be removed from this layer in the near future, so this change is not tested. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* chef: make deploychef dependencies a distro featureBruce Ashfield2015-02-191-2/+2
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* openstackchef: decentralized openstack-chef class implementationMustapha Lansana2014-09-261-0/+831
This class provides a framework for recipes(packages) to register their configuration files with the deploychef package. This class works together with the deploychef package. This implementation makes it possible for the deploychef package, with the help of chef-solo, to recreate registered configuration files at run-time. Only services that inherit this class and register their configuration files are re-configurable at run-time; and by configurable, we mean to make chefsolo templates out of their configuration files and to be aware of the list of daemons that need to be killed/started at run-time. Therefore, openstackchef class requires the recipes/classes inheriting it to advertise their configuration files, list of start/stop daemons and finally a special callback function when necessary. In order to avoid duplication of common placeholders and substitution across the various recipes inheriting this class, we keep a dictionary of common placeholders and substitutions, but rely on the recipes to define the values these placeholders take at run-time. See the description at the top of the class files (openstackchef.bbclass and openstackchef_inc.bbclass ) for more details. This class makes chef-solo template files out of the configuration files exposed to it by the recipes. The resulting templates are stored at /opt/deploychef/cookbooks/openstack/templates/default. on the resulting rootfs. It also creates a file containing a set of chef-solo default template values known as attributes in chef-solo world. The default values are provided by the recipes and classes inheriting this class. The chefsolo attributes file is stored at /opt/deploychef/cookbooks/openstack/attributes/default.rb at the end of rootfs creation process. At run-time, the deploychef package whose package files are stored at '/opt/deploychef', makes a call to chef-solo. Chef-solo in turn uses the attributes and templates files to overwrite the configuration files for services like neutron, nova, swift, etc.. that registered configuration files with openstackchef class at build time. See accompanying documentation for further explanation. Signed-off-by: Mustapha Lansana <Mustapha.Lansana@windriver.com>