diff options
| author | Vu Tran <vu.tran@windriver.com> | 2014-04-09 16:44:55 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-04-11 14:15:28 -0400 |
| commit | 37ac94989c34c5d8d1617167f22dba18e9b087b9 (patch) | |
| tree | 2bf8e6e586bca72caff69b81ec097f65b3b9773d /meta-openstack/recipes-devtools/python/python-swift_git.bb | |
| parent | 76e347257515f4e3ae08fa0c8f8eda935d6a572b (diff) | |
| download | meta-cloud-services-37ac94989c34c5d8d1617167f22dba18e9b087b9.tar.gz | |
swift: separate proxy server config
There are many changes required for proxy-server
config file. So instead of having sed to replace
all little details, it's cleaner to add new config
file that contains the changes
Signed-off-by: Vu Tran <vu.tran@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-swift_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-swift_git.bb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-swift_git.bb b/meta-openstack/recipes-devtools/python/python-swift_git.bb index 50e4839..9370670 100644 --- a/meta-openstack/recipes-devtools/python/python-swift_git.bb +++ b/meta-openstack/recipes-devtools/python/python-swift_git.bb | |||
| @@ -8,13 +8,14 @@ PR = "r0" | |||
| 8 | SRCNAME = "swift" | 8 | SRCNAME = "swift" |
| 9 | 9 | ||
| 10 | SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \ | 10 | SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \ |
| 11 | file://proxy-server.conf \ | ||
| 11 | " | 12 | " |
| 12 | 13 | ||
| 13 | SRCREV="2f3526c559fe53ce904b735a81dee6de46127176" | 14 | SRCREV="2f3526c559fe53ce904b735a81dee6de46127176" |
| 14 | PV="2013.2.2+git${SRCPV}" | 15 | PV="2013.2.2+git${SRCPV}" |
| 15 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |
| 16 | 17 | ||
| 17 | inherit setuptools hosts | 18 | inherit setuptools hosts identity |
| 18 | 19 | ||
| 19 | do_install_append() { | 20 | do_install_append() { |
| 20 | SWIFT_CONF_DIR=${D}${sysconfdir}/swift | 21 | SWIFT_CONF_DIR=${D}${sysconfdir}/swift |
| @@ -22,7 +23,7 @@ do_install_append() { | |||
| 22 | install -d ${SWIFT_CONF_DIR} | 23 | install -d ${SWIFT_CONF_DIR} |
| 23 | 24 | ||
| 24 | install -m 600 ${S}/etc/swift.conf-sample ${SWIFT_CONF_DIR}/swift.conf | 25 | install -m 600 ${S}/etc/swift.conf-sample ${SWIFT_CONF_DIR}/swift.conf |
| 25 | install -m 600 ${S}/etc/proxy-server.conf-sample ${SWIFT_CONF_DIR}/proxy-server.conf | 26 | install -m 600 ${WORKDIR}/proxy-server.conf ${SWIFT_CONF_DIR}/proxy-server.conf |
| 26 | install -m 600 ${S}/etc/account-server.conf-sample ${SWIFT_CONF_DIR}/account-server.conf | 27 | install -m 600 ${S}/etc/account-server.conf-sample ${SWIFT_CONF_DIR}/account-server.conf |
| 27 | install -m 600 ${S}/etc/container-server.conf-sample ${SWIFT_CONF_DIR}/container-server.conf | 28 | install -m 600 ${S}/etc/container-server.conf-sample ${SWIFT_CONF_DIR}/container-server.conf |
| 28 | install -m 600 ${S}/etc/object-server.conf-sample ${SWIFT_CONF_DIR}/object-server.conf | 29 | install -m 600 ${S}/etc/object-server.conf-sample ${SWIFT_CONF_DIR}/object-server.conf |
| @@ -44,6 +45,10 @@ do_install_append() { | |||
| 44 | sed 's/^# swift_dir =.*/swift_dir = \/etc\/swift/' -i ${SWIFT_CONF_DIR}/object-server.conf | 45 | sed 's/^# swift_dir =.*/swift_dir = \/etc\/swift/' -i ${SWIFT_CONF_DIR}/object-server.conf |
| 45 | sed 's/^# devices =.*/devices = \/etc\/swift\/node/' -i ${SWIFT_CONF_DIR}/object-server.conf | 46 | sed 's/^# devices =.*/devices = \/etc\/swift\/node/' -i ${SWIFT_CONF_DIR}/object-server.conf |
| 46 | sed 's/^# mount_check =.*/mount_check = false/' -i ${SWIFT_CONF_DIR}/object-server.conf | 47 | sed 's/^# mount_check =.*/mount_check = false/' -i ${SWIFT_CONF_DIR}/object-server.conf |
| 48 | |||
| 49 | sed "s/%SERVICE_TENANT_NAME%/${SERVICE_TENANT_NAME}/g" -i ${SWIFT_CONF_DIR}/proxy-server.conf | ||
| 50 | sed "s/%SERVICE_USER%/${SRCNAME}/g" -i ${SWIFT_CONF_DIR}/proxy-server.conf | ||
| 51 | sed "s/%SERVICE_PASSWORD%/${SERVICE_PASSWORD}/g" -i ${SWIFT_CONF_DIR}/proxy-server.conf | ||
| 47 | } | 52 | } |
| 48 | 53 | ||
| 49 | PACKAGES += "${SRCNAME}" | 54 | PACKAGES += "${SRCNAME}" |
