chef: remove the use of chef
PATCH 1/1 chef: remove the use of chef
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 <[email protected]>
--- meta-openstack/Documentation/README.openstackchef | 219 ------ meta-openstack/classes/openstack-base.bbclass | 2 +- meta-openstack/classes/openstackchef.bbclass | 115 --- meta-openstack/classes/openstackchef_inc.bbclass | 831 --------------------- .../recipes-devtools/python/python-barbican_git.bb | 12 +- .../python/python-ceilometer_git.bb | 26 +- .../recipes-devtools/python/python-cinder_git.bb | 12 +- .../recipes-devtools/python/python-glance_git.bb | 34 +- .../recipes-devtools/python/python-heat_git.bb | 35 +- .../recipes-devtools/python/python-horizon_git.bb | 2 +- .../recipes-devtools/python/python-keystone_git.bb | 50 +- .../recipes-devtools/python/python-neutron_git.bb | 28 +- .../recipes-devtools/python/python-nova_git.bb | 56 +- .../recipes-devtools/python/python-swift_git.bb | 51 +- .../cloud-init/cloud-init_0.7.6.bb | 14 +- .../glusterfs/glusterfs_3.4.2.bbappend | 6 - .../rabbitmq/rabbitmq-server_3.2.4.bb | 2 +- .../recipes-support/deploychef/deploychef_0.1.bb | 100 --- .../deploychef/files/deploychef.init | 26 - .../deploychef/files/run-deploychef | 33 - .../deploychef/files/run-openstackchef | 30 - .../postgresql/postgresql_9.%.bbappend | 26 +- 22 files changed, 136 insertions(+), 1574 deletions(-) delete mode 100644 meta-openstack/Documentation/README.openstackchef delete mode 100644 meta-openstack/classes/openstackchef.bbclass delete mode 100644 meta-openstack/classes/openstackchef_inc.bbclass delete mode 100644 meta-openstack/recipes-extended/glusterfs/glusterfs_3.4.2.bbappend delete mode 100644 meta-openstack/recipes-support/deploychef/deploychef_0.1.bb delete mode 100644 meta-openstack/recipes-support/deploychef/files/deploychef.init delete mode 100644 meta-openstack/recipes-support/deploychef/files/run-deploychef delete mode 100644 meta-openstack/recipes-support/deploychef/files/run-openstackchef
meta-openstack/Documentation/README.openstackchef deleted +0 -219
@@ -1,219 +0,0 @@ -openstackchef.bbclass -========= -When an openstack image is built for a CONTROLLER, COMPUTE or allinone, -there are build-time variables that are hard-coded into the image. -These hardcoded variables need to be provided up front at -build time and cannot be changed easily at run-time. -What this means is that an image built for a specific deployment -environment cannot be easily deployed to another environment. - -Openstackchef class enables openstack related services like, nova, postgresql, -neutron, etc to be re-configured at run-time. This means that if all the -services of an openstack installation inherits the openstackchef class, -openstackchef can successfully re-configure an openstack installation. - -For example, at build time, many of the openstack services need to know ahead of -time, the IP address of the node on which CONTROLLER and COMPUTE will be deployed. -Once this IP address is built into the image, it cannot be changed at runtime. -In other words, if you build a CONTROLLER image for a machine with IP address -of 192.168.7.2, you cannot use that image on a machine with a different IP address. - -This is very restrictive, since it does not allow the re-use of CONTROLLER/COMPUTE -images. - -Openstackchef.bbclass facilitates the reuse of openstack images across multiple -machines. It does this by providing a mechanism for openstack related services -to register all configuration files that have run-time dependent variables like IP -address in them. - -By inheriting openstackchef, and registering these configuration files -with openstackchef, the services are no longer tied to a specific -run-time environment. This is because, openstackchef makes it possible -for the registered configuration files to be recreated at run-time when -any of the environment variables changes. - -The configuration files are registered with openstackchef by assigning -them to the variable CHEF_SERVICES_CONF_FILES in the recipe file. - -See example below for barbican: - -CHEF_SERVICES_CONF_FILES :="\ - ${sysconfdir}/${SRCNAME}/vassals/barbican-api.ini \ - ${sysconfdir}/${SRCNAME}/vassals/barbican-admin.ini \ - " -Openstackchef makes chef-solo templates out of -the registered files. At run-time, the deploychef package -makes a call to chef-solo, which in-turn use the template files -to recreate the registered configuration files. - -Also see additional description in the openstackchef.bbclass header. - -In addition to the simple placeholder/value substitution that is -done by the openstackchef class when creating the templates, -there are times when recipes need to do morethan a simple placeholder -substitution. For cases like these, openstackchef provides a mechanism for -the recipes to provide a special callback function. Openstackchef class -then makes a call to this special callback function to do any additional substitution. - -The special shell callback function is registered with openstackchef by -assigning it to the variable CHEF_SERVICES_SPECIAL_FUNC. - -The python-neutron recipe defines a special function and specifies it -as shown below. - -CHEF_SERVICES_SPECIAL_FUNC := "deploychef_services_special_func" - -Whenever the configuration files of any openstack service -changes, the service usually needs to reload the configuration file. -The list of scripts/priority levels responsible for restarting -the service when its configuration files change are assumed to -be provided by the following variables: - -INITSCRIPT_PACKAGES -INITSCRIPT_NAME_x or INITSCRIPT_NAME -INITSCRIPT_PARAMS_x or INITSCRIPT_PARAMS - -Here is an example of how python-barbican specifies these variables. -INITSCRIPT_PACKAGES = "${SRCNAME}" -INITSCRIPT_NAME_${SRCNAME} = "barbican-api" -INITSCRIPT_PARAMS_${SRCNAME} = "${OS_DEFAULT_INITSCRIPT_PARAMS}" - -In addition, there are services that might need to be restarted but does -not necessary have a configuration file. These services can also advertise -themselves to openstackchef with the above variables. - -However, failure to provide appropriate values for the above variables after -registering a set of configuration files for an openstack service will -lead to the service not working properly. - -Dependencies ------------- -This class depends on the deploychef package for run-time implementation of -the class. However, the end user does not have to do anything about this -dependency, because it's resolved at build time and all deploychef package -files are automatically included on the rootfs of resulting image. -Openstackchef class creates the template files used by the deploychef package -to reconfigure an openstack node. - -Deploychef executes chefsolo at run-time to recreate -the configuration files for openstack services from template files -created by openstackchef.bbclass at build time. -Chefsolo in turn uses the attributes and templates files to overwrite -the configuration files for services like neutron, nova, swift, etc.. -that had registered their configuration files with openstackchef class -at build time. - -The base directory for the deploychef package is /opt/deploychef. -There are many files that goes into the re-configuration of an -openstack deployment, however, two are worth mentioning. - -1 . Default variables in openstack and the values they hold can be found in: - -/opt/deploychef/cookbooks/openstack/attributes/default.rb - -2. A shell script file that should be executed to reconfigure the stack -on CONTROLLER, COMPUTE or allinone nodes. - -/opt/deploychef/run-deploychef - -The script file above should be executed when any of the run-time environment -variables found at /opt/deploychef/cookbooks/openstack/attributes/default.rb -is changed. - -Run-time -------- -Allinone: An allinone node boots-up with openstack re-configured and all services -accessible either through the command-line or through horizon. - -CONTROLLER & COMPUTE: -Both CONTROLLER and COMPUTE nodes boots-up with their respective IP address -updated using the IP address on the interface of the machine on which they run. - -For the CONTROLLER, you should be able to access horizon at this point. However, -both the CONTROLLER and COMPUTE are not aware of each other at this point. - -For them to be made aware of each other, we need to inform the COMPUTE node of -the location of the CONTROLLER node, similarly, we need to inform the CONTROLLER -node about the location of the COMPUTE node. - -In order to accomplish this on each node, edit IP address field in the file - -/opt/deploychef/cookbooks/openstack/attributes/default.rb - -On the CONTROLLER node, change COMPUTE's IP address to the IP address -of the machine on which you have openstack COMPUTE deployed. - -Assuming COMPUTE's IP address was set to "192.168.7.4" at build-time and the -current IP address of the machine on which you have COMPUTE deployed is -"128.224.149.164". Then the line - -default["COMPUTE_IP"] = "192.168.7.4" - -should be changed to - -default["COMPUTE_IP"] = "128.224.149.164" - - -Now cd into the base directory of deploychef and execute the script -'run-deploychef'. - -cd /opt/deploychef -./run-deploychef - -Note: It's important that you 'cd' into /opt/deploychef when running -run-deploychef script, because this script makes a call to chefsolo which -references files from /opt/depoychef base directory. - -Wait for the script to finish executing and you are shown the prompt. - -In a similar vein, repeat the above process on the COMPUTE node, but this -time, it's the CONTROLLER's IP address you will be changing. Leave the COMPUTE's -IP address as is. -Assuming CONTROLLER's IP address was set to "192.168.7.2" at build-time and the -current IP address of the machine on which you have CONTROLLER deployed is -"128.224.149.162". Then the line - -default["CONTROLLER_IP"] = "192.168.7.2" - -should be changed to - -default["CONTROLLER_IP"] = "128.224.149.162" - - -Again 'cd' into the base directory of deploychef and execut the script -'run-deploychef'. - -cd /opt/deploychef -./run-deploychef - - -At this point, both COMPUTE and CONTROLLER have been configured and should be -communicating with one another. - -Maintenance ------------ -This class is maintained by Wind River Systems, Inc. -Contact <[email protected]> or your support representative for more -information on submitting changes. - - -Building with openstack.bbclass -------------------------- -This class should be inherited by recipe/class files of openstack services in order -for the functionality described above to work. -If any component of openstack is left out, that component will -not work correctly when the stack is reconfigured at run-time, and as a result, -the openstack deployment will not work. - - -License -------- -Copyright (C) 2014 Wind River Systems, Inc. - -The right to copy, distribute or otherwise make use of this software may -be licensed only pursuant to the terms of an applicable Wind River license -agreement. No license to Wind River intellectual properly rights is granted -herein. All rights not licensed by Wind River are reserved by Wind River. - -Source code included in tree is under the LICENSE -stated in class file (.bbclass file) unless other stated.
meta-openstack/classes/openstack-base.bbclass +1 -1
@@ -1,4 +1,4 @@ -inherit hosts openstackchef +inherit hosts ROOTFS_POSTPROCESS_COMMAND += "openstack_configure_hosts ; "
meta-openstack/classes/openstackchef.bbclass deleted +0 -115
115 lines not on this page · raw message
meta-openstack/classes/openstackchef_inc.bbclass deleted +0 -831
831 lines not on this page · raw message
meta-openstack/recipes-devtools/python/python-barbican_git.bb +3 -9
@@ -19,7 +19,7 @@ SRCREV = "e6f05febbe18a86e4e6b05acc5f4868fa3beb291" PV = "2015.1.0+git${SRCPV}" S = "${WORKDIR}/git" -inherit update-rc.d setuptools identity hosts useradd default_configs openstackchef monitor +inherit update-rc.d setuptools identity hosts useradd default_configs monitor SERVICECREATE_PACKAGES = "${SRCNAME}-setup" KEYSTONE_HOST="${CONTROLLER_IP}"
@@ -48,10 +48,8 @@ do_install_append() { cp -r ${TEMPLATE_CONF_DIR}/* ${BARBICAN_CONF_DIR} install -d ${D}${localstatedir}/lib/barbican - if [ -z "${OPENSTACKCHEF_ENABLED}" ]; then - sed -e "s:%BARBICAN_MAX_PACKET_SIZE%:${BARBICAN_MAX_PACKET_SIZE}:g" -i ${BARBICAN_CONF_DIR}/vassals/barbican-api.ini - sed -e "s:%BARBICAN_MAX_PACKET_SIZE%:${BARBICAN_MAX_PACKET_SIZE}:g" -i ${BARBICAN_CONF_DIR}/vassals/barbican-admin.ini - fi + sed -e "s:%BARBICAN_MAX_PACKET_SIZE%:${BARBICAN_MAX_PACKET_SIZE}:g" -i ${BARBICAN_CONF_DIR}/vassals/barbican-api.ini + sed -e "s:%BARBICAN_MAX_PACKET_SIZE%:${BARBICAN_MAX_PACKET_SIZE}:g" -i ${BARBICAN_CONF_DIR}/vassals/barbican-admin.ini if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then install -d ${D}${sysconfdir}/init.d
@@ -68,10 +66,6 @@ do_install_append() { -i ${D}/${PYTHON_SITEPACKAGES_DIR}/${SRCNAME}/tests/api/test_resources_policy.py } -CHEF_SERVICES_CONF_FILES :="\ - ${sysconfdir}/${SRCNAME}/vassals/barbican-api.ini \ - ${sysconfdir}/${SRCNAME}/vassals/barbican-admin.ini \ - " USERADD_PACKAGES = "${PN}" GROUPADD_PARAM_${PN} = "--system barbican" USERADD_PARAM_${PN} = "--system --home /var/lib/barbican -g barbican \
meta-openstack/recipes-devtools/python/python-ceilometer_git.bb +11 -15
@@ -63,21 +63,20 @@ do_install_append() { install -m 600 ${TEMPLATE_CONF_DIR}/*.yaml ${CEILOMETER_CONF_DIR} install -m 600 ${TEMPLATE_CONF_DIR}/api_paste.ini ${CEILOMETER_CONF_DIR} - if [ -z "${OPENSTACKCHEF_ENABLED}" ]; then - sed -e "s:%CEILOMETER_SECRET%:${CEILOMETER_SECRET}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf + sed -e "s:%CEILOMETER_SECRET%:${CEILOMETER_SECRET}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf - sed -e "s:%DB_USER%:${DB_USER}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf - sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf + sed -e "s:%DB_USER%:${DB_USER}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf + sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf - sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf - sed -e "s:%CONTROLLER_HOST%:${CONTROLLER_HOST}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf + sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf + sed -e "s:%CONTROLLER_HOST%:${CONTROLLER_HOST}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf - sed -e "s:%COMPUTE_IP%:${COMPUTE_IP}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf - sed -e "s:%COMPUTE_HOST%:${COMPUTE_HOST}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf + sed -e "s:%COMPUTE_IP%:${COMPUTE_IP}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf + sed -e "s:%COMPUTE_HOST%:${COMPUTE_HOST}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf + + sed -e "s:%ADMIN_PASSWORD%:${ADMIN_PASSWORD}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf + sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf - sed -e "s:%ADMIN_PASSWORD%:${ADMIN_PASSWORD}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf - sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" -i ${CEILOMETER_CONF_DIR}/ceilometer.conf - fi if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then install -d ${D}${sysconfdir}/init.d
@@ -108,9 +107,6 @@ do_install_append() { fi } -CHEF_SERVICES_CONF_FILES :="\ - ${sysconfdir}/${SRCNAME}/ceilometer.conf \ - " pkg_postinst_${SRCNAME}-setup () { if [ "x$D" != "x" ]; then exit 1
@@ -128,7 +124,7 @@ pkg_postinst_${SRCNAME}-setup () { ceilometer-dbsync } -inherit setuptools identity hosts update-rc.d default_configs openstackchef monitor +inherit setuptools identity hosts update-rc.d default_configs monitor PACKAGES += " ${SRCNAME}-tests" PACKAGES += "${SRCNAME}-setup ${SRCNAME}-common ${SRCNAME}-api"
meta-openstack/recipes-devtools/python/python-cinder_git.bb +3 -9
@@ -24,7 +24,7 @@ SRCREV = "61026d4e4f2a58dd84ffb2e4e40ab99860b9316a" PV = "7.0.0+git${SRCPV}" S = "${WORKDIR}/git" -inherit setuptools update-rc.d identity default_configs hosts openstackchef monitor +inherit setuptools update-rc.d identity default_configs hosts monitor CINDER_BACKUP_BACKEND_DRIVER ?= "cinder.backup.drivers.swift"
@@ -77,8 +77,7 @@ do_install_append() { install -d ${D}${localstatedir}/log/${SRCNAME} - if [ -z "${OPENSTACKCHEF_ENABLED}" ]; then - for file in api-paste.ini cinder.conf; do + for file in api-paste.ini cinder.conf; do sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ -i ${CINDER_CONF_DIR}/$file sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${CINDER_CONF_DIR}/$file
@@ -89,8 +88,7 @@ do_install_append() { sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${CINDER_CONF_DIR}/$file sed -e "s:%CINDER_BACKUP_BACKEND_DRIVER%:${CINDER_BACKUP_BACKEND_DRIVER}:g" \ -i ${CINDER_CONF_DIR}/$file - done - fi + done if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then install -d ${D}${sysconfdir}/init.d
@@ -125,10 +123,6 @@ do_install_append() { sed -e "s:%IS_DEFAULT%:${is_default}:g" -i ${D}/etc/cinder/drivers/glusterfs_setup.sh } -CHEF_SERVICES_CONF_FILES :="\ - ${sysconfdir}/${SRCNAME}/cinder.conf \ - ${sysconfdir}/${SRCNAME}/api-paste.ini \ - " pkg_postinst_${SRCNAME}-setup () { if [ "x$D" != "x" ]; then exit 1
meta-openstack/recipes-devtools/python/python-glance_git.bb +13 -21
@@ -18,7 +18,7 @@ PV = "11.0.0+git${SRCPV}" S = "${WORKDIR}/git" -inherit setuptools update-rc.d identity default_configs hosts openstackchef monitor +inherit setuptools update-rc.d identity default_configs hosts monitor GLANCE_DEFAULT_STORE ?= "file" GLANCE_KNOWN_STORES ?= "glance.store.rbd.Store,\
@@ -97,20 +97,18 @@ do_install_append() { install -d ${D}${localstatedir}/log/${SRCNAME} - if [ -z "${OPENSTACKCHEF_ENABLED}" ]; then - for file in api registry cache - do - sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ - -i ${GLANCE_CONF_DIR}/glance-$file.conf - sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${GLANCE_CONF_DIR}/glance-$file.conf - sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \ - -i ${GLANCE_CONF_DIR}/glance-$file.conf - sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" \ - -i ${GLANCE_CONF_DIR}/glance-$file.conf - sed -e "s:%DB_USER%:${DB_USER}:g" \ - -i ${GLANCE_CONF_DIR}/glance-$file.conf - done - fi + for file in api registry cache + do + sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ + -i ${GLANCE_CONF_DIR}/glance-$file.conf + sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${GLANCE_CONF_DIR}/glance-$file.conf + sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \ + -i ${GLANCE_CONF_DIR}/glance-$file.conf + sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" \ + -i ${GLANCE_CONF_DIR}/glance-$file.conf + sed -e "s:%DB_USER%:${DB_USER}:g" \ + -i ${GLANCE_CONF_DIR}/glance-$file.conf + done if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then install -d ${D}${sysconfdir}/init.d
@@ -123,12 +121,6 @@ do_install_append() { cp run_tests.sh ${GLANCE_CONF_DIR} } -CHEF_SERVICES_CONF_FILES := "\ - ${sysconfdir}/${SRCNAME}/glance-api.conf \ - ${sysconfdir}/${SRCNAME}/glance-cache.conf \ - ${sysconfdir}/${SRCNAME}/glance-registry.conf \ - " - pkg_postinst_${SRCNAME}-setup () { if [ "x$D" != "x" ]; then exit 1
meta-openstack/recipes-devtools/python/python-heat_git.bb +15 -20
@@ -70,25 +70,24 @@ do_install_append() { install -d ${HEAT_CONF_DIR}/environment.d install -m 600 ${TEMPLATE_CONF_DIR}/environment.d/* ${HEAT_CONF_DIR}/environment.d install -m 664 ${TEMPLATE_CONF_DIR}/api-paste.ini ${HEAT_CONF_DIR} - if [ -z "${OPENSTACKCHEF_ENABLED}" ]; then - sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ - -i ${HEAT_CONF_DIR}/api-paste.ini - sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${HEAT_CONF_DIR}/api-paste.ini - sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" -i ${HEAT_CONF_DIR}/api-paste.ini - sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${HEAT_CONF_DIR}/api-paste.ini + sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ + -i ${HEAT_CONF_DIR}/api-paste.ini + sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${HEAT_CONF_DIR}/api-paste.ini + sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" -i ${HEAT_CONF_DIR}/api-paste.ini + sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${HEAT_CONF_DIR}/api-paste.ini - sed -e "s:%DB_USER%:${DB_USER}:g" -i ${HEAT_CONF_DIR}/heat.conf - sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${HEAT_CONF_DIR}/heat.conf + sed -e "s:%DB_USER%:${DB_USER}:g" -i ${HEAT_CONF_DIR}/heat.conf + sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${HEAT_CONF_DIR}/heat.conf - sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${HEAT_CONF_DIR}/heat.conf - sed -e "s:%CONTROLLER_HOST%:${CONTROLLER_HOST}:g" -i ${HEAT_CONF_DIR}/heat.conf + sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${HEAT_CONF_DIR}/heat.conf + sed -e "s:%CONTROLLER_HOST%:${CONTROLLER_HOST}:g" -i ${HEAT_CONF_DIR}/heat.conf - sed -e "s:%COMPUTE_IP%:${COMPUTE_IP}:g" -i ${HEAT_CONF_DIR}/heat.conf - sed -e "s:%COMPUTE_HOST%:${COMPUTE_HOST}:g" -i ${HEAT_CONF_DIR}/heat.conf + sed -e "s:%COMPUTE_IP%:${COMPUTE_IP}:g" -i ${HEAT_CONF_DIR}/heat.conf + sed -e "s:%COMPUTE_HOST%:${COMPUTE_HOST}:g" -i ${HEAT_CONF_DIR}/heat.conf + + sed -e "s:%ADMIN_PASSWORD%:${ADMIN_PASSWORD}:g" -i ${HEAT_CONF_DIR}/heat.conf + sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" -i ${HEAT_CONF_DIR}/heat.conf - sed -e "s:%ADMIN_PASSWORD%:${ADMIN_PASSWORD}:g" -i ${HEAT_CONF_DIR}/heat.conf - sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" -i ${HEAT_CONF_DIR}/heat.conf - fi if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then install -d ${D}${sysconfdir}/init.d
@@ -107,10 +106,6 @@ do_install_append() { fi } -CHEF_SERVICES_CONF_FILES :="\ - ${sysconfdir}/${SRCNAME}/heat.conf \ - ${sysconfdir}/${SRCNAME}/api-paste.ini \ - " pkg_postinst_${SRCNAME}-setup () { if [ "x$D" != "x" ]; then exit 1
@@ -128,7 +123,7 @@ pkg_postinst_${SRCNAME}-setup () { heat-manage db_sync } -inherit setuptools identity hosts update-rc.d default_configs openstackchef monitor +inherit setuptools identity hosts update-rc.d default_configs monitor PACKAGES += "${SRCNAME}-tests ${SRCNAME}-templates ${SRCNAME}-common ${SRCNAME}-api ${SRCNAME}-api-cfn ${SRCNAME}-engine" PACKAGES += "${SRCNAME}-setup"
meta-openstack/recipes-devtools/python/python-horizon_git.bb +1 -1
@@ -84,7 +84,7 @@ SRCREV = "593f0b78eea8efbb6d833d66acc7ab4dc852159b" PV = "8.0.0+git${SRCPV}" S = "${WORKDIR}/git" -inherit setuptools update-rc.d python-dir default_configs openstackchef monitor +inherit setuptools update-rc.d python-dir default_configs monitor # no longer required. kept as reference. # do_install[dirs] += "${D}/usr/share/bin"
meta-openstack/recipes-devtools/python/python-keystone_git.bb +21 -29
68 lines not on this page · raw message
meta-openstack/recipes-devtools/python/python-neutron_git.bb +5 -23
@@ -24,7 +24,7 @@ PV = "7.0.0+git${SRCPV}" S = "${WORKDIR}/git" -inherit setuptools update-rc.d identity hosts default_configs openstackchef monitor +inherit setuptools update-rc.d identity hosts default_configs monitor SERVICECREATE_PACKAGES = "${SRCNAME}-setup" KEYSTONE_HOST="${CONTROLLER_IP}"
@@ -117,8 +117,8 @@ do_install_append() { install -m 0755 ${WORKDIR}/neutron-$AGENT.init.sh ${D}${sysconfdir}/init.d/neutron-$AGENT-agent install -m 600 ${WORKDIR}/${AGENT}_agent.ini ${NEUTRON_CONF_DIR}/ fi - if [ -z "${OPENSTACKCHEF_ENABLED}" ]; then - for file in plugins/ml2/ml2_conf.ini neutron.conf metadata_agent.ini; do + + for file in plugins/ml2/ml2_conf.ini neutron.conf metadata_agent.ini; do sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" -i ${NEUTRON_CONF_DIR}/$file sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${NEUTRON_CONF_DIR}/$file sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" -i ${NEUTRON_CONF_DIR}/$file
@@ -127,8 +127,8 @@ do_install_append() { sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${NEUTRON_CONF_DIR}/$file sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${NEUTRON_CONF_DIR}/$file sed -e "s:%CONTROLLER_HOST%:${CONTROLLER_HOST}:g" -i ${NEUTRON_CONF_DIR}/$file - done - fi + done + sed -e "s:^auth_host.*:#auth_host:g" -i ${NEUTRON_CONF_DIR}/neutron.conf sed -e "s:^auth_port.*:#auth_port:g" -i ${NEUTRON_CONF_DIR}/neutron.conf sed -e "s:^auth_protocol.*:#auth_protocol:g" -i ${NEUTRON_CONF_DIR}/neutron.conf
@@ -154,24 +154,6 @@ pkg_postinst_${SRCNAME}-setup () { --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head } -CHEF_SERVICES_CONF_FILES := " \ - ${sysconfdir}/${SRCNAME}/neutron.conf \ - ${sysconfdir}/${SRCNAME}/metadata_agent.ini \ - ${sysconfdir}/${SRCNAME}/plugins/ml2/ml2_conf.ini \ - " -deploychef_services_special_func(){ - #This function is a callback function for the deploychef .bbclass - #We define this special callback funtion because we are doing - #more than a placeholder substitution. The variable CHEF_SERVICES_FILE_NAME - #is defined in deploychef_framework.bbclass - if [ -n "${CHEF_SERVICES_FILE_NAME}" ]; then - sed "s:^# rabbit_host =.*:rabbit_host = %CONTROLLER_IP%:" -i \ - ${CHEF_SERVICES_FILE_NAME} - fi -} - -CHEF_SERVICES_SPECIAL_FUNC := "deploychef_services_special_func" - pkg_postinst_${SRCNAME}-plugin-openvswitch-setup () { if [ "x$D" != "x" ]; then exit 1
meta-openstack/recipes-devtools/python/python-nova_git.bb +25 -31
82 lines not on this page · raw message
meta-openstack/recipes-devtools/python/python-swift_git.bb +22 -29
68 lines not on this page · raw message
meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.6.bb +5 -9
@@ -28,19 +28,15 @@ do_install_prepend() { do_install_append() { install -m 0755 ${WORKDIR}/cloud.cfg ${D}${sysconfdir}/cloud/cloud.cfg - if [ -z "${OPENSTACKCHEF_ENABLED}" ]; then - sed -e "s:%MANAGE_HOSTS%:${MANAGE_HOSTS}:g" -i ${D}${sysconfdir}/cloud/cloud.cfg - sed -e "s:%HOSTNAME%:${HOSTNAME}:g" -i ${D}${sysconfdir}/cloud/cloud.cfg - fi + + sed -e "s:%MANAGE_HOSTS%:${MANAGE_HOSTS}:g" -i ${D}${sysconfdir}/cloud/cloud.cfg + sed -e "s:%HOSTNAME%:${HOSTNAME}:g" -i ${D}${sysconfdir}/cloud/cloud.cfg + ln -s ${libdir}/${BPN}/uncloud-init ${D}${sysconfdir}/cloud/uncloud-init ln -s ${libdir}/${BPN}/write-ssh-key-fingerprints ${D}${sysconfdir}/cloud/write-ssh-key-fingerprints } -inherit setuptools update-rc.d openstackchef - -CHEF_SERVICES_CONF_FILES := " \ - ${sysconfdir}/cloud/cloud.cfg \ - " +inherit setuptools update-rc.d PACKAGES += "${PN}-systemd"
meta-openstack/recipes-extended/glusterfs/glusterfs_3.4.2.bbappend deleted +0 -6
@@ -1,6 +0,0 @@ -# -# Copyright (C) 2013 Wind River Systems, Inc. -# -inherit openstackchef - -
meta-openstack/recipes-extended/rabbitmq/rabbitmq-server_3.2.4.bb +1 -1
@@ -46,7 +46,7 @@ do_install() { mv ${D}/plugins ${RABBIT_LIB_DIR}/plugins } -inherit useradd update-rc.d openstackchef +inherit useradd update-rc.d USERADD_PACKAGES = "${PN}" GROUPADD_PARAM_${PN} = "--system rabbitmq"
meta-openstack/recipes-support/deploychef/deploychef_0.1.bb deleted +0 -100
100 lines not on this page · raw message
meta-openstack/recipes-support/deploychef/files/deploychef.init deleted +0 -26
@@ -1,26 +0,0 @@ -#!/bin/bash -#After this script executes, it runs the 'run-openstackchef' script found in -#/opt/deploychef/ directory. After that, all the -#configuration files that were registered with openstackchef class are -#created using run-time environment variables and default values -# found in /opt/deploychef/cookbooks/openstack/attributes/default.rb -deploychef_root=%DEPLOYCHEF_ROOT_DIR% -LOG_DIR=/var/log/%PACKAGE_NAME% -LOG_FILE=$LOG_DIR/%PACKAGE_NAME%.log -script_file=$deploychef_root/run-openstackchef -chefsolo_success_file="%SYSCONFDIR%/chefsolo.ran" -if [ ! -f $chefsolo_success_file ]; then - if [ -f $script_file ] ; then - mkdir -p $LOG_DIR - #Remove deploy init script if present - rm -f /etc/init.d/deploy 2>/dev/null - cd $deploychef_root - . $(basename $script_file) - if [ $? = 0 ]; then - echo "Deploychef successfully created chefsolo configuration files" \ - > $LOG_FILE - else - echo "deploychef ERROR: $i failed." > $LOG_FILE - fi - fi -fi
meta-openstack/recipes-support/deploychef/files/run-deploychef deleted +0 -33
@@ -1,33 +0,0 @@ -#!/bin/bash -# run-deploychef -# -# Copyright (c) 2014 Wind River Systems, Inc. -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. -# -# -# This file is the main script file that reconfigures the stack when any of -# the attributes variables change at run-time. -# -#Shutdown all registered services -. ./service-shutdown -#Re-generate configuration files from template files -. ./run-openstackchef -#Run post-install script and then start services -. ./run-postinsts
meta-openstack/recipes-support/deploychef/files/run-openstackchef deleted +0 -30
@@ -1,30 +0,0 @@ -#!/bin/bash -# run-openstackchef -# -# Copyright (c) 2014 Wind River Systems, Inc. -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. -# -# -# This script just runs chefsolo to generate our configuration files -# -# -#Use chefsolo to generate configuration files/scripts base on -#templates if templates/default -chef-solo -f -c config.rb -j attributes.json
meta-openstack/recipes-support/postgresql/postgresql_9.%.bbappend +10 -16
@@ -3,7 +3,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" SRC_URI += "file://postgresql \ file://postgresql-init" -inherit useradd update-rc.d identity hosts openstackchef +inherit useradd update-rc.d identity hosts PACKAGECONFIG[libxml] = "--with-libxml CFLAGS=-I${STAGING_INCDIR}/libxml2,--without-libxml,libxml2,libxml2"
@@ -16,25 +16,19 @@ do_install_append() { install -d ${D}${sysconfdir}/init.d/ install -m 0755 ${WORKDIR}/postgresql ${INIT_D_DEST_DIR}/postgresql install -m 0755 ${WORKDIR}/postgresql-init ${INIT_D_DEST_DIR}/postgresql-init - if [ -z "${OPENSTACKCHEF_ENABLED}" ]; then - sed -e "s:%DB_DATADIR%:${DB_DATADIR}:g" -i ${INIT_D_DEST_DIR}/postgresql - sed -e "s:%DB_DATADIR%:${DB_DATADIR}:g" -i ${INIT_D_DEST_DIR}/postgresql-init - sed -e "s:%DB_USER%:${DB_USER}:g" -i ${INIT_D_DEST_DIR}/postgresql-init - sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${INIT_D_DEST_DIR}/postgresql-init + sed -e "s:%DB_DATADIR%:${DB_DATADIR}:g" -i ${INIT_D_DEST_DIR}/postgresql + sed -e "s:%DB_DATADIR%:${DB_DATADIR}:g" -i ${INIT_D_DEST_DIR}/postgresql-init - sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${INIT_D_DEST_DIR}/postgresql-init - sed -e "s:%CONTROLLER_HOST%:${CONTROLLER_HOST}:g" -i ${INIT_D_DEST_DIR}/postgresql-init + sed -e "s:%DB_USER%:${DB_USER}:g" -i ${INIT_D_DEST_DIR}/postgresql-init + sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${INIT_D_DEST_DIR}/postgresql-init - sed -e "s:%COMPUTE_IP%:${COMPUTE_IP}:g" -i ${INIT_D_DEST_DIR}/postgresql-init - sed -e "s:%COMPUTE_HOST%:${COMPUTE_HOST}:g" -i ${INIT_D_DEST_DIR}/postgresql-init - fi -} + sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${INIT_D_DEST_DIR}/postgresql-init + sed -e "s:%CONTROLLER_HOST%:${CONTROLLER_HOST}:g" -i ${INIT_D_DEST_DIR}/postgresql-init -CHEF_SERVICES_CONF_FILES := "\ - ${sysconfdir}/init.d/postgresql \ - ${sysconfdir}/init.d/postgresql-init \ - " + sed -e "s:%COMPUTE_IP%:${COMPUTE_IP}:g" -i ${INIT_D_DEST_DIR}/postgresql-init + sed -e "s:%COMPUTE_HOST%:${COMPUTE_HOST}:g" -i ${INIT_D_DEST_DIR}/postgresql-init +} RDEPENDS_${PN} += "postgresql-timezone eglibc-utils update-rc.d" USERADD_PACKAGES = "${PN}"
Signature · 1 line
2.7.4