Skip to content

Commit 836fdb7

Browse files
authored
Merge pull request #53 from mrlesmithjr/fix-linting-issues
Fix linting issues
2 parents 2a69ce7 + 61cbe22 commit 836fdb7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2140
-260
lines changed

.ansible-lint

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
skip_list:
2+
- name[casing]

.github/workflows/default.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
---
22
name: Molecule Test
3-
on: push
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
- master
8+
pull_request:
9+
branches:
10+
- develop
11+
- main
12+
- master
413
jobs:
514
build:
615
runs-on: ubuntu-latest
@@ -9,22 +18,29 @@ jobs:
918
max-parallel: 4
1019
matrix:
1120
molecule_distro:
21+
# - alpine313
22+
# - alpine314
1223
# - centos7
13-
- centos8
24+
# - centos8
1425
# - debian8
15-
- debian9
16-
- debian10
26+
# - debian9
27+
# - debian10
28+
# - debian11
1729
# - fedora
30+
# - fedora34
31+
# - fedora35
32+
# - rocky8
1833
# - ubuntu1604
1934
- ubuntu1804
2035
- ubuntu2004
21-
36+
# - ubuntu2204
37+
python-version: [3.9]
2238
steps:
23-
- uses: actions/checkout@v2
39+
- uses: actions/checkout@v3
2440
with:
2541
submodules: recursive
2642
- name: Set up Python ${{ matrix.python-version }}
27-
uses: actions/setup-python@v2
43+
uses: actions/setup-python@v4
2844
with:
2945
python-version: ${{ matrix.python-version }}
3046
- uses: actions/cache@v2

.gitignore

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1-
venv/
1+
!*
2+
3+
### Ansible
4+
.cache/
5+
6+
### VirtualEnv ###
7+
# Virtualenv
28
.venv/
3-
poetry.lock
9+
venv/
10+
11+
### VisualStudioCode ###
12+
.vscode/*
13+
!.vscode/settings.json
14+
!.vscode/tasks.json
15+
!.vscode/launch.json
16+
!.vscode/extensions.json
17+
*.code-workspace
18+
19+
# Local History for Visual Studio Code
20+
.history/
21+
22+
### VisualStudioCode Patch ###
23+
# Ignore all local history of files
24+
.history
25+
.ionide

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v3.4.0
5+
rev: v4.5.0
66
hooks:
77
- id: check-added-large-files
88
- id: check-executables-have-shebangs
@@ -14,19 +14,19 @@ repos:
1414
args: [--branch, develop, --branch, master, --branch, main]
1515
- id: trailing-whitespace
1616
- repo: https://github.com/ansible-community/ansible-lint
17-
rev: v5.0.7
17+
rev: v6.22.1
1818
hooks:
1919
- id: ansible-lint
2020
- repo: https://github.com/psf/black
21-
rev: 20.8b1
21+
rev: 23.3.0
2222
hooks:
2323
- id: black
2424
language_version: python3
2525
- repo: https://github.com/PyCQA/flake8
26-
rev: 3.9.1
26+
rev: 6.1.0
2727
hooks:
2828
- id: flake8
2929
- repo: https://github.com/adrienverge/yamllint
30-
rev: v1.26.1
30+
rev: v1.33.0
3131
hooks:
3232
- id: yamllint

defaults/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ rabbitmq_env_config: {}
2828

2929
# rabbitmq_debian_repo: deb http://www.rabbitmq.com/debian/ testing main
3030
#other repos
31-
rabbitmq_debian_repo: "deb https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/debian {{ ansible_distribution_release }} main"
32-
rabbitmq_debian_repo_key: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/gpg.9F4587F226208342.key"
31+
rabbitmq_debian_repo: "deb https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu {{ ansible_distribution_release }} main"
32+
rabbitmq_debian_repo_key: "https://github.com/rabbitmq/signing-keys/releases/download/3.0/cloudsmith.rabbitmq-server.9F4587F226208342.key"
3333
rabbitmq_debian_team_key: "0x0A9AF2115F4687BD29803A206B73A36E6026DFCA"
3434

3535
rabbitmq_debian_erlang_from_rabbit: true
36-
rabbitmq_debian_erlang_repo: "deb https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/debian {{ ansible_distribution_release }} main"
37-
rabbitmq_debian_erlang_repo_key: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/gpg.E495BB49CC4BBE5B.key"
36+
rabbitmq_debian_erlang_repo: "deb https://ppa1.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu {{ ansible_distribution_release }} main"
37+
rabbitmq_debian_erlang_repo_key: "https://github.com/rabbitmq/signing-keys/releases/download/3.0/cloudsmith.rabbitmq-erlang.E495BB49CC4BBE5B.key"
3838

3939

4040
# current version if not defined
4141
rabbitmq_debian_version_defined: true
42-
rabbitmq_debian_version: 3.8.18-1
42+
rabbitmq_debian_version: 3.12.10-1
4343

4444
# Defines if setting up a rabbitmq cluster
4545
rabbitmq_enable_clustering: false
@@ -69,10 +69,10 @@ rabitmq_ssl_options: {}
6969
# verify: verify_peer
7070
# fail_if_no_peer_cert: "false"
7171

72-
rabbitmq_redhat_repo_key: https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc
72+
rabbitmq_redhat_repo_key: https://github.com/rabbitmq/signing-keys/releases/download/3.0/rabbitmq-release-signing-key.asc
7373
rabbitmq_redhat_package: "rabbitmq-server-{{ rabbitmq_redhat_version }}-1.el{{ ansible_distribution_major_version }}.noarch.rpm"
74-
rabbitmq_redhat_url: "https://dl.bintray.com/rabbitmq/rpm/rabbitmq-server/v3.8.x/el/{{ ansible_distribution_major_version }}/noarch"
75-
rabbitmq_redhat_version: 3.8.11
74+
rabbitmq_redhat_url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/rpm/el/{{ ansible_distribution_major_version }}/noarch"
75+
rabbitmq_redhat_version: 3.12.10
7676

7777
# Define extra vhosts to be created
7878
rabbitmq_extra_vhosts: []

handlers/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
# handlers file for ansible-rabbitmq
33
- name: restart rabbitmq-server
4-
service:
4+
ansible.builtin.service:
55
name: rabbitmq-server
66
state: restarted
77
become: true

meta/main.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,22 @@ galaxy_info:
33
author: Larry Smith Jr.
44
description: Ansible role to install/configure RabbitMQ
55
license: MIT
6-
min_ansible_version: 1.2
6+
min_ansible_version: "1.2"
77
role_name: rabbitmq
88
namespace: mrlesmithjr
99
platforms:
1010
- name: EL
1111
versions:
12-
- 8
12+
- all
1313
- name: Fedora
1414
versions:
15-
# - 22
16-
# - 23
17-
- 24
18-
- 25
19-
- 26
20-
- 27
21-
- 28
22-
- 29
15+
- all
2316
- name: Ubuntu
2417
versions:
25-
- focal
26-
- bionic
27-
# - trusty
28-
# - xenial
18+
- all
2919
- name: Debian
3020
versions:
31-
- buster
32-
- stretch
21+
- all
3322
galaxy_tags:
3423
- clustering
3524
- system

molecule/centos7/molecule.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,21 @@ lint: |
1212
flake8
1313
platforms:
1414
- name: centos7
15-
image: jrei/systemd-centos:7
15+
image: mrlesmithjr/centos:7
1616
privileged: true
1717
command: /usr/sbin/init
18-
tmpfs:
19-
- /run
20-
- /tmp
18+
# tmpfs:
19+
# - /run
20+
# - /tmp
2121
volumes:
22-
- /sys/fs/cgroup:/sys/fs/cgroup:ro
22+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
23+
cgroupns_mode: host
24+
# groups: []
2325
provisioner:
2426
name: ansible
2527
playbooks:
2628
converge: ../shared/converge.yml
29+
prepare: ../shared/prepare.yml
30+
verify: ../shared/verify.yml
2731
verifier:
2832
name: ansible

molecule/centos7/verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
hosts: all
66
tasks:
77
- name: Example assertion
8-
assert:
8+
ansible.builtin.assert:
99
that: true

molecule/centos8/molecule.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,21 @@ lint: |
1212
flake8
1313
platforms:
1414
- name: centos8
15-
image: jrei/systemd-centos:8
15+
image: mrlesmithjr/centos:8
1616
privileged: true
1717
command: /usr/sbin/init
18-
tmpfs:
19-
- /run
20-
- /tmp
18+
# tmpfs:
19+
# - /run
20+
# - /tmp
2121
volumes:
22-
- /sys/fs/cgroup:/sys/fs/cgroup:ro
22+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
23+
cgroupns_mode: host
24+
# groups: []
2325
provisioner:
2426
name: ansible
2527
playbooks:
2628
converge: ../shared/converge.yml
29+
prepare: ../shared/prepare.yml
30+
verify: ../shared/verify.yml
2731
verifier:
2832
name: ansible

0 commit comments

Comments
 (0)