mysql: add an option to install the dev client libraries
This commit is contained in:
parent
d917d867bb
commit
03431fc116
7 changed files with 41 additions and 0 deletions
|
@ -14,6 +14,7 @@ The **patch** part changes incrementally at each release.
|
|||
* elasticsearch: tmpdir configuration compatible with 5.x also
|
||||
* elasticsearch: add http.publish_host variable
|
||||
* kibana: log messages go to /var/log/kibana/kibana.log
|
||||
* mysql: add an option to install the client development libraries (default: `False`)
|
||||
|
||||
### Changed
|
||||
* evolinux-users: add sudo permission for bkctld check
|
||||
|
|
|
@ -5,6 +5,8 @@ log2mail_alert_email: Null
|
|||
general_scripts_dir: "/usr/share/scripts"
|
||||
mysql_scripts_dir: Null
|
||||
|
||||
mysql_install_libclient: False
|
||||
|
||||
mysql_replace_root_with_mysqladmin: True
|
||||
|
||||
mysql_custom_datadir: ''
|
||||
|
|
|
@ -36,10 +36,21 @@
|
|||
with_items:
|
||||
- mysql-server
|
||||
- mysql-client
|
||||
tags:
|
||||
- mysql
|
||||
- packages
|
||||
|
||||
- name: Install MySQL dev packages
|
||||
apt:
|
||||
name: '{{ item }}'
|
||||
update_cache: yes
|
||||
state: present
|
||||
with_items:
|
||||
- libmysqlclient20
|
||||
tags:
|
||||
- mysql
|
||||
- packages
|
||||
when: mysql_install_libclient
|
||||
|
||||
- include_role:
|
||||
name: remount-usr
|
||||
|
|
|
@ -29,5 +29,6 @@ Tasks are extracted in several files, included in `tasks/main.yml` :
|
|||
* `general_scripts_dir`: general directory for scripts installation (default: `/usr/local/bin`).
|
||||
* `mysql_scripts_dir`: email address to send Log2mail messages to (default: `general_scripts_dir`).
|
||||
* `mysql_force_new_nrpe_password` : change the password for NRPE even if it exists already (default: `False`).
|
||||
* `mysql_install_libclient`: install mysql client libraries (default: `False`).
|
||||
|
||||
NB : changing the _datadir_ location can be done multiple times, as long as it is not restored to the default initial location, (because a symlink is created and can't be switched back, yet).
|
||||
|
|
|
@ -7,6 +7,8 @@ mysql_scripts_dir: Null
|
|||
|
||||
mysql_variant: oracle
|
||||
|
||||
mysql_install_libclient: False
|
||||
|
||||
mysql_replace_root_with_mysqladmin: True
|
||||
|
||||
mysql_custom_datadir: ''
|
||||
|
|
|
@ -26,6 +26,18 @@
|
|||
- mysql
|
||||
- packages
|
||||
|
||||
- name: Install MySQL dev packages
|
||||
apt:
|
||||
name: '{{ item }}'
|
||||
update_cache: yes
|
||||
state: present
|
||||
with_items:
|
||||
- libmysqlclient-dev
|
||||
tags:
|
||||
- mysql
|
||||
- packages
|
||||
when: mysql_install_libclient
|
||||
|
||||
- name: MySQL is started
|
||||
service:
|
||||
name: mysql
|
||||
|
|
|
@ -12,6 +12,18 @@
|
|||
- mysql
|
||||
- packages
|
||||
|
||||
- name: Install MySQL dev packages
|
||||
apt:
|
||||
name: '{{ item }}'
|
||||
update_cache: yes
|
||||
state: present
|
||||
with_items:
|
||||
- default-libmysqlclient-dev
|
||||
tags:
|
||||
- mysql
|
||||
- packages
|
||||
when: mysql_install_libclient
|
||||
|
||||
- name: MySQL is started
|
||||
service:
|
||||
name: mysql
|
||||
|
|
Loading…
Reference in a new issue