diff options
author | Mustapha Lansana <Mustapha.Lansana@windriver.com> | 2014-07-30 20:38:33 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-09-26 09:09:21 -0400 |
commit | 2b726dacf1d2213c0a5ebc01f1db4f0caa8d06d5 (patch) | |
tree | d0655b0e9afe320b86a5de7b27e9e6225d23b95a /meta-openstack | |
parent | caf76c8322f247d0829dc9a18009bee0b1195a06 (diff) | |
download | meta-cloud-services-2b726dacf1d2213c0a5ebc01f1db4f0caa8d06d5.tar.gz |
openstack-base: support for openstackchef to hook into rootfs creation
Openstack-base class is inheriting openstackchef class
Since we want openstackchef post-rootfs function to be called
after rootfs creation for all openstack images, openstack-base
class need to inherit openstackchef class.
In addition, we want the node names; compute/controller
to be reconfigurable to other variables beside
compute/controller in /etc/hosts file at run-time, and be consistent
with node names used for compute/controller in all openstack installation.
Signed-off-by: Mustapha Lansana <Mustapha.Lansana@windriver.com>
Diffstat (limited to 'meta-openstack')
-rw-r--r-- | meta-openstack/classes/openstack-base.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-openstack/classes/openstack-base.bbclass b/meta-openstack/classes/openstack-base.bbclass index 565470b..718aa1c 100644 --- a/meta-openstack/classes/openstack-base.bbclass +++ b/meta-openstack/classes/openstack-base.bbclass | |||
@@ -1,12 +1,12 @@ | |||
1 | inherit hosts | 1 | inherit hosts openstackchef |
2 | 2 | ||
3 | ROOTFS_POSTPROCESS_COMMAND += "openstack_configure_hosts ; " | 3 | ROOTFS_POSTPROCESS_COMMAND += "openstack_configure_hosts ; " |
4 | 4 | ||
5 | openstack_configure_hosts() { | 5 | openstack_configure_hosts() { |
6 | bbnote "openstack: identifying hosts" | 6 | bbnote "openstack: identifying hosts" |
7 | 7 | ||
8 | echo "${CONTROLLER_IP} controller" >> ${IMAGE_ROOTFS}/etc/hosts | 8 | echo "${CONTROLLER_IP} ${CONTROLLER_HOST}" >> ${IMAGE_ROOTFS}/etc/hosts |
9 | echo "${COMPUTE_IP} compute" >> ${IMAGE_ROOTFS}/etc/hosts | 9 | echo "${COMPUTE_IP} ${COMPUTE_HOST}" >> ${IMAGE_ROOTFS}/etc/hosts |
10 | echo "${MY_HOST}" > ${IMAGE_ROOTFS}/etc/hostname | 10 | echo "${MY_HOST}" > ${IMAGE_ROOTFS}/etc/hostname |
11 | } | 11 | } |
12 | 12 | ||