Changeset - f0f48518f9b3
[Not reviewed]
0 2 0
Branko Majic (branko) - 4 years ago 2020-05-08 11:08:38
branko@majic.rs
MAR-149: Install Python 3 MySQL bindings in database_server role.
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
roles/database_server/molecule/default/tests/test_default.py
Show inline comments
 
@@ -11,13 +11,13 @@ def test_installed_packages(host):
 
    """
 
    Tests if the correct packages have been installed.
 
    """
 

	
 
    assert host.package('mariadb-client').is_installed
 
    assert host.package('mariadb-server').is_installed
 
    assert host.package('python-mysqldb').is_installed
 
    assert host.package('python3-mysqldb').is_installed
 

	
 

	
 
def test_service(host):
 
    """
 
    Tests if the database server service is enabled on boot and running.
 
    """
roles/database_server/tasks/main.yml
Show inline comments
 
@@ -2,13 +2,13 @@
 

	
 
- name: Install MariaDB
 
  apt:
 
    name:
 
      - mariadb-client
 
      - mariadb-server
 
      - python-mysqldb
 
      - python3-mysqldb
 
    state: present
 

	
 
- name: Enable MariaDB service on boot (workaround for systemctl broken handling of SysV)
 
  command: rcconf -on mysql
 
  register: result
 
  changed_when: not result.stderr
0 comments (0 inline, 0 general)