move python_packages attributes from dependent cookbooks
Move the database client python packages attributes from dependent cookbooks in -common so we don't duplicate them everywhere. Change-Id: If45621d31889a582dde62474c4b08f52905a277f Implements: blueprint move-python-db-client-attrs-to-common
This commit is contained in:
parent
a04c31ab3e
commit
9a6f959c23
|
@ -2,6 +2,9 @@
|
|||
|
||||
This file is used to list changes made in each version of cookbook-openstack-common.
|
||||
|
||||
## 9.5.2
|
||||
* Adds new python_packages attributes for database client packages
|
||||
|
||||
## 9.5.1
|
||||
* Add Trove endpoints, database and mq attributes
|
||||
|
||||
|
|
|
@ -229,7 +229,7 @@ License and Author
|
|||
| **Copyright** | Copyright (c) 2012-2013, AT&T Services, Inc. |
|
||||
| **Copyright** | Copyright (c) 2013, Opscode, Inc. |
|
||||
| **Copyright** | Copyright (c) 2013, Craig Tracey |
|
||||
| **Copyright** | Copyright (c) 2013, SUSE Linux GmbH |
|
||||
| **Copyright** | Copyright (c) 2013-2014, SUSE Linux GmbH |
|
||||
| **Copyright** | Copyright (c) 2013-2014, IBM, Corp. |
|
||||
| **Copyright** | Copyright (c) 2013-2014, Rackspace US, Inc. |
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# Attributes:: database
|
||||
#
|
||||
# Copyright 2012-2013, AT&T Services, Inc.
|
||||
# Copyright 2013, SUSE Linux GmbH
|
||||
# Copyright 2013-2014, SUSE Linux GmbH
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
|
@ -194,3 +194,23 @@ default['openstack']['db']['root_user_use_databag'] = false
|
|||
# If above root_user_use_databag is true, the below string
|
||||
# will be passed to the get_password library routine.
|
||||
default['openstack']['db']['root_user_key'] = 'mysqlroot'
|
||||
|
||||
# platform and DBMS-specific python client packages
|
||||
case node['platform_family']
|
||||
when 'rhel'
|
||||
default['openstack']['db']['python_packages'] = {
|
||||
mysql: ['MySQL-python'],
|
||||
db2: ['python-ibm-db', 'python-ibm-db-sa'],
|
||||
postgresql: ['python-psycopg2']
|
||||
}
|
||||
when 'suse'
|
||||
default['openstack']['db']['python_packages'] = {
|
||||
mysql: ['python-mysql'],
|
||||
postgresql: ['python-psycopg2']
|
||||
}
|
||||
when 'debian'
|
||||
default['openstack']['db']['python_packages'] = {
|
||||
mysql: ['python-mysqldb'],
|
||||
postgresql: ['python-psycopg2']
|
||||
}
|
||||
end
|
||||
|
|
|
@ -4,7 +4,7 @@ maintainer_email 'cookbooks@lists.tfoundry.com'
|
|||
license 'Apache 2.0'
|
||||
description 'Common OpenStack attributes, libraries and recipes.'
|
||||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
||||
version '9.5.1'
|
||||
version '9.5.2'
|
||||
|
||||
recipe 'openstack-common', 'Installs/Configures common recipes'
|
||||
recipe 'openstack-common::set_endpoints_by_interface', 'Set endpoints by interface'
|
||||
|
|
Loading…
Reference in New Issue