Skip to content

Commit

Permalink
Merge branch 'release/4.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
hswong3i committed Apr 22, 2020
2 parents be2147e + d2645b9 commit 331674a
Show file tree
Hide file tree
Showing 22 changed files with 135 additions and 234 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ env:

jobs:
allow_failures:
- env: MOLECULE_SCENARIO_NAME="ubuntu-20.04"
- env: MOLECULE_SCENARIO_NAME="ubuntu-19.10"
- env: MOLECULE_SCENARIO_NAME="centos-8"
- env: MOLECULE_SCENARIO_NAME="centos-7"
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
- Migrate role name to lowercase or underline
- Migrate group name to lowercase or underline
- Migrate molecule `group_vars` to file
- Add MariaDB 10.5 support
- Remove MariaDB 10.2 support

## 4.2.0 - 2020-02-13

Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# limitations under the License.

# MariaDB release.
mariadb_release: "10.4"
mariadb_release: "10.5"
2 changes: 1 addition & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

- name: mariadb | systemctl restart
- name: mariadb | systemctl restart mariadb
service:
name: "mariadb"
state: "restarted"
Expand Down
2 changes: 1 addition & 1 deletion molecule/default/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM ubuntu:18.04
FROM ubuntu:20.04

ENV LANG "en_US.utf8"
ENV LC_ALL "en_US.utf8"
Expand Down
2 changes: 1 addition & 1 deletion molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ platforms:
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
entrypoint: init
command: "bash -c 'sleep infinity'"
tty: True
tty: true
env:
container: docker
lint: |
Expand Down
41 changes: 0 additions & 41 deletions molecule/ubuntu-20.04/Dockerfile.j2

This file was deleted.

76 changes: 0 additions & 76 deletions molecule/ubuntu-20.04/create.yml

This file was deleted.

29 changes: 0 additions & 29 deletions molecule/ubuntu-20.04/destroy.yml

This file was deleted.

25 changes: 15 additions & 10 deletions molecule/ubuntu-20.04/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,23 @@
# limitations under the License.

driver:
name: docker
name: vagrant
provider:
name: libvirt
platforms:
- name: ${MOLECULE_INSTANCE_NAME}-1
dockerfile: Dockerfile.j2
privileged: true
volumes:
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
entrypoint: init
command: "bash -c 'sleep infinity'"
tty: True
env:
container: docker
box: abi/ubuntu2004
cpu: 2
memory: 2048
interfaces:
- auto_config: true
network_name: private_network
type: dhcp
provider_raw_config_args:
- 'nic_model_type = "virtio"'
- 'disk_bus = "virtio"'
- 'volume_cache = "none"'
- 'storage :file, bus: "virtio", cache: "none"'
lint: |
set -ex
yamllint .
Expand Down
2 changes: 1 addition & 1 deletion tasks/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@
register: result
until: result is succeeded
notify:
- mariadb | systemctl restart
- mariadb | systemctl restart mariadb
tags: mariadb
10 changes: 5 additions & 5 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@
ignore_errors: true
tags: mariadb

- name: flush handlers
meta: flush_handlers
tags: mariadb

- name: start service
- name: systemctl start mariadb
service:
name: "mariadb"
state: "started"
enabled: true
changed_when: false
ignore_errors: true
tags: mariadb

- name: flush handlers
meta: flush_handlers
tags: mariadb
4 changes: 2 additions & 2 deletions tasks/redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
- name: yum install
yum:
name: "{{ item.name }}"
state: "{{ item.state }}"
disablerepo: "{{ item.disablerepo | default(None) or omit }}"
state: "{{ item.state | default(None) or omit }}"
loop: "{{ _yum[mariadb_release] }}"
register: result
until: result is succeeded
notify:
- mariadb | systemctl restart
- mariadb | systemctl restart mariadb
tags: mariadb
4 changes: 3 additions & 1 deletion tasks/suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
auto_import_keys: true
autorefresh: true
loop: "{{ _zypper_repository[mariadb_release] }}"
register: result
until: result is succeeded
tags: mariadb

- name: zypper install
Expand All @@ -61,5 +63,5 @@
register: result
until: result is succeeded
notify:
- mariadb | systemctl restart
- mariadb | systemctl restart mariadb
tags: mariadb
24 changes: 12 additions & 12 deletions vars/centos-7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,58 +15,58 @@
# limitations under the License.

_rpm_key:
"10.4":
"10.5":
- key: "https://yum.mariadb.org/RPM-GPG-KEY-MariaDB"
fingerprint: "199369E5404BD5FC7D2FE43BCBCB082A1BB943DB"
state: "present"
"10.3":
"10.4":
- key: "https://yum.mariadb.org/RPM-GPG-KEY-MariaDB"
fingerprint: "199369E5404BD5FC7D2FE43BCBCB082A1BB943DB"
state: "present"
"10.2":
"10.3":
- key: "https://yum.mariadb.org/RPM-GPG-KEY-MariaDB"
fingerprint: "199369E5404BD5FC7D2FE43BCBCB082A1BB943DB"
state: "present"

_yum_repository:
"10.4":
"10.5":
- file: "mariadb"
name: "mariadb"
description: "MariaDB"
baseurl: "http://yum.mariadb.org/10.4/centos7-amd64"
baseurl: "http://yum.mariadb.org/10.5/centos7-amd64"
enabled: true
gpgcheck: true
gpgkey: "https://yum.mariadb.org/RPM-GPG-KEY-MariaDB"
state: "present"
"10.3":
"10.4":
- file: "mariadb"
name: "mariadb"
description: "MariaDB"
baseurl: "http://yum.mariadb.org/10.3/centos7-amd64"
baseurl: "http://yum.mariadb.org/10.4/centos7-amd64"
enabled: true
gpgcheck: true
gpgkey: "https://yum.mariadb.org/RPM-GPG-KEY-MariaDB"
state: "present"
"10.2":
"10.3":
- file: "mariadb"
name: "mariadb"
description: "MariaDB"
baseurl: "http://yum.mariadb.org/10.2/centos7-amd64"
baseurl: "http://yum.mariadb.org/10.3/centos7-amd64"
enabled: true
gpgcheck: true
gpgkey: "https://yum.mariadb.org/RPM-GPG-KEY-MariaDB"
state: "present"

_yum:
"10.4":
"10.5":
- { state: "latest", name: "boost-devel" }
- { state: "latest", name: "MariaDB-server" }
- { state: "latest", name: "MariaDB-backup" }
"10.3":
"10.4":
- { state: "latest", name: "boost-devel" }
- { state: "latest", name: "MariaDB-server" }
- { state: "latest", name: "MariaDB-backup" }
"10.2":
"10.3":
- { state: "latest", name: "boost-devel" }
- { state: "latest", name: "MariaDB-server" }
- { state: "latest", name: "MariaDB-backup" }
Loading

0 comments on commit 331674a

Please sign in to comment.