diff options
| author | Vu Tran <vu.tran@windriver.com> | 2014-04-09 16:45:14 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-04-11 14:15:28 -0400 |
| commit | 8178afe2b2b27459c36e9c08c22117f1b6a39650 (patch) | |
| tree | e82bcbe8ce1aa1f36a2e3584e36e6044173dafff /meta-openstack/recipes-devtools/python | |
| parent | 37ac94989c34c5d8d1617167f22dba18e9b087b9 (diff) | |
| download | meta-cloud-services-8178afe2b2b27459c36e9c08c22117f1b6a39650.tar.gz | |
swift: separate dispersion config
There are many changes required for proxy-dispersion
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')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-swift/dispersion.conf | 17 | ||||
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-swift_git.bb | 6 |
2 files changed, 23 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-swift/dispersion.conf b/meta-openstack/recipes-devtools/python/python-swift/dispersion.conf new file mode 100644 index 0000000..25119ff --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-swift/dispersion.conf | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | [dispersion] | ||
| 2 | auth_url = http://localhost:5000/v2.0/ | ||
| 3 | auth_user = %SERVICE_TENANT_NAME%:%SERVICE_USER% | ||
| 4 | auth_key = %SERVICE_PASSWORD% | ||
| 5 | auth_version = 2.0 | ||
| 6 | endpoint_type = publicURL | ||
| 7 | keystone_api_insecure = no | ||
| 8 | |||
| 9 | swift_dir = /etc/swift | ||
| 10 | # dispersion_coverage = 1.0 | ||
| 11 | # retries = 5 | ||
| 12 | # concurrency = 25 | ||
| 13 | container_populate = yes | ||
| 14 | object_populate = yes | ||
| 15 | container_report = yes | ||
| 16 | object_report = yes | ||
| 17 | # dump_json = no | ||
diff --git a/meta-openstack/recipes-devtools/python/python-swift_git.bb b/meta-openstack/recipes-devtools/python/python-swift_git.bb index 9370670..d3419c5 100644 --- a/meta-openstack/recipes-devtools/python/python-swift_git.bb +++ b/meta-openstack/recipes-devtools/python/python-swift_git.bb | |||
| @@ -9,6 +9,7 @@ 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 | file://proxy-server.conf \ |
| 12 | file://dispersion.conf \ | ||
| 12 | " | 13 | " |
| 13 | 14 | ||
| 14 | SRCREV="2f3526c559fe53ce904b735a81dee6de46127176" | 15 | SRCREV="2f3526c559fe53ce904b735a81dee6de46127176" |
| @@ -27,6 +28,7 @@ do_install_append() { | |||
| 27 | install -m 600 ${S}/etc/account-server.conf-sample ${SWIFT_CONF_DIR}/account-server.conf | 28 | install -m 600 ${S}/etc/account-server.conf-sample ${SWIFT_CONF_DIR}/account-server.conf |
| 28 | install -m 600 ${S}/etc/container-server.conf-sample ${SWIFT_CONF_DIR}/container-server.conf | 29 | install -m 600 ${S}/etc/container-server.conf-sample ${SWIFT_CONF_DIR}/container-server.conf |
| 29 | install -m 600 ${S}/etc/object-server.conf-sample ${SWIFT_CONF_DIR}/object-server.conf | 30 | install -m 600 ${S}/etc/object-server.conf-sample ${SWIFT_CONF_DIR}/object-server.conf |
| 31 | install -m 600 ${WORKDIR}/dispersion.conf ${SWIFT_CONF_DIR}/dispersion.conf | ||
| 30 | 32 | ||
| 31 | sed 's/^# bind_port =.*/bind_port = 6002/' -i ${SWIFT_CONF_DIR}/account-server.conf | 33 | sed 's/^# bind_port =.*/bind_port = 6002/' -i ${SWIFT_CONF_DIR}/account-server.conf |
| 32 | sed 's/^# user =.*/user = root/' -i ${SWIFT_CONF_DIR}/account-server.conf | 34 | sed 's/^# user =.*/user = root/' -i ${SWIFT_CONF_DIR}/account-server.conf |
| @@ -49,6 +51,10 @@ do_install_append() { | |||
| 49 | sed "s/%SERVICE_TENANT_NAME%/${SERVICE_TENANT_NAME}/g" -i ${SWIFT_CONF_DIR}/proxy-server.conf | 51 | 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 | 52 | 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 | 53 | sed "s/%SERVICE_PASSWORD%/${SERVICE_PASSWORD}/g" -i ${SWIFT_CONF_DIR}/proxy-server.conf |
| 54 | |||
| 55 | sed "s/%SERVICE_TENANT_NAME%/${SERVICE_TENANT_NAME}/g" -i ${SWIFT_CONF_DIR}/dispersion.conf | ||
| 56 | sed "s/%SERVICE_USER%/${SRCNAME}/g" -i ${SWIFT_CONF_DIR}/dispersion.conf | ||
| 57 | sed "s/%SERVICE_PASSWORD%/${SERVICE_PASSWORD}/g" -i ${SWIFT_CONF_DIR}/dispersion.conf | ||
| 52 | } | 58 | } |
| 53 | 59 | ||
| 54 | PACKAGES += "${SRCNAME}" | 60 | PACKAGES += "${SRCNAME}" |
