Avoid mixing pip and distribution packages.
The hosts may end up in a rather messed up state when mixing distribution and pip packages. The python MySQL bindings are already provided in the distro repositories so we can simply use these in order to keep the host as clean as possible. Implements: blueprint openstack-distribution-packages Change-Id: Ic8c7f642378536d79d763625451ec267c2a108fd
This commit is contained in:
parent
feba22bfaa
commit
9ab9dd30dc
@ -118,12 +118,6 @@ galera_xtrabackup_compression: "{{ (ansible_architecture == 'x86_64') or (ansibl
|
||||
# xtrabackup parallel/compression/sync threads
|
||||
galera_xtrabackup_threads: 4
|
||||
|
||||
galera_pip_packages:
|
||||
- MySQL-python
|
||||
- pycrypto
|
||||
|
||||
galera_pip_package_state: "latest"
|
||||
|
||||
# Galera slow/unindexed query logging
|
||||
galera_slow_query_logging: 0
|
||||
galera_unindexed_query_logging: 0
|
||||
|
@ -40,18 +40,6 @@
|
||||
|
||||
- include_tasks: "galera_install_{{ ansible_pkg_mgr }}.yml"
|
||||
|
||||
- name: Install pip packages
|
||||
pip:
|
||||
name: "{{ galera_pip_packages }}"
|
||||
state: "{{ galera_pip_package_state }}"
|
||||
extra_args: >-
|
||||
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
||||
{{ pip_install_options | default('') }}
|
||||
register: install_packages
|
||||
until: install_packages|success
|
||||
retries: 5
|
||||
delay: 2
|
||||
|
||||
- name: Record galera has been deployed
|
||||
ini_file:
|
||||
dest: "/etc/ansible/facts.d/openstack_ansible.fact"
|
||||
|
@ -33,6 +33,8 @@ galera_server_required_distro_packages:
|
||||
- libgcrypt
|
||||
- MariaDB-client
|
||||
- MariaDB-devel
|
||||
- MySQL-python # needed by mysql_user
|
||||
- python-crypto # needed for ssl
|
||||
- xinetd
|
||||
|
||||
galera_etc_conf_file: "/etc/mysql/my.cnf"
|
||||
|
@ -30,6 +30,8 @@ galera_server_required_distro_packages:
|
||||
- libgcrypt-devel
|
||||
- MariaDB-client
|
||||
- MariaDB-devel
|
||||
- python-MySQL-python # needed by mysql_user
|
||||
- python2-pycrypto # needed for ssl
|
||||
- xinetd
|
||||
|
||||
galera_etc_conf_file: "/etc/mysql/my.cnf"
|
||||
|
@ -39,6 +39,8 @@ galera_server_required_distro_packages:
|
||||
- libgcc1
|
||||
- libgcrypt20
|
||||
- libstdc++6
|
||||
- python-mysqldb # needed by mysql_user
|
||||
- python-crypto # needed for ssl
|
||||
- python-software-properties
|
||||
- software-properties-common
|
||||
- xinetd
|
||||
|
Loading…
Reference in New Issue
Block a user