<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-cloud-services.git/meta-openstack/classes/openstackchef_inc.bbclass, branch morty</title>
<subtitle>Mirror of git.yoctoproject.org/meta-cloud-services.git</subtitle>
<id>https://git.enea.com/cgit/linux/meta-cloud-services.git/atom?h=morty</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-cloud-services.git/atom?h=morty'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-cloud-services.git/'/>
<updated>2016-09-19T20:04:22+00:00</updated>
<entry>
<title>openstackchef_inc.bbclass: Update python synthax for except</title>
<updated>2016-09-19T20:04:22+00:00</updated>
<author>
<name>Adrian Dudau</name>
<email>adrian.dudau@enea.com</email>
</author>
<published>2016-09-16T14:12:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-cloud-services.git/commit/?id=10a219245e4a68054c93c86bd42483d801d22dca'/>
<id>urn:sha1:10a219245e4a68054c93c86bd42483d801d22dca</id>
<content type='text'>
The synthax used is deprecated and causes errors.

Signed-off-by: Adrian Dudau &lt;adrian.dudau@enea.com&gt;
Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
</content>
</entry>
<entry>
<title>openstackchef: add missing parameter to getVar</title>
<updated>2016-03-21T14:19:41+00:00</updated>
<author>
<name>Mark Asselstine</name>
<email>mark.asselstine@windriver.com</email>
</author>
<published>2016-03-18T20:50:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-cloud-services.git/commit/?id=0272d957bf5424acc425557e9a0a4a26c03b4401'/>
<id>urn:sha1:0272d957bf5424acc425557e9a0a4a26c03b4401</id>
<content type='text'>
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 &lt;mark.asselstine@windriver.com&gt;
Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
</content>
</entry>
<entry>
<title>chef: make deploychef dependencies a distro feature</title>
<updated>2015-02-20T03:50:09+00:00</updated>
<author>
<name>Bruce Ashfield</name>
<email>bruce.ashfield@windriver.com</email>
</author>
<published>2015-02-20T03:23:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-cloud-services.git/commit/?id=5cb7f84b7fdce2d667f51f94af5fdfd4f1e5bd26'/>
<id>urn:sha1:5cb7f84b7fdce2d667f51f94af5fdfd4f1e5bd26</id>
<content type='text'>
Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
</content>
</entry>
<entry>
<title>openstackchef: decentralized openstack-chef class implementation</title>
<updated>2014-09-26T13:09:21+00:00</updated>
<author>
<name>Mustapha Lansana</name>
<email>Mustapha.Lansana@windriver.com</email>
</author>
<published>2014-07-30T23:08:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-cloud-services.git/commit/?id=caf76c8322f247d0829dc9a18009bee0b1195a06'/>
<id>urn:sha1:caf76c8322f247d0829dc9a18009bee0b1195a06</id>
<content type='text'>
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 &lt;Mustapha.Lansana@windriver.com&gt;
</content>
</entry>
</feed>
