Skip to content

Commit

Permalink
Merge pull request #72 from haydenseitz/fix-rhel-molecule-tests
Browse files Browse the repository at this point in the history
Fix RHEL molecule tests
  • Loading branch information
goldyfruit authored Jun 8, 2023
2 parents c432b3a + 1f13719 commit 849c3ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# Ansible HAproxy (OpenStack ready)

[![Build Status](https://travis-ci.com/uoi-io/ansible-haproxy.svg?branch=master)](https://travis-ci.com/uoi-io/ansible-haproxy) [![Ansible Galaxy](https://img.shields.io/badge/galaxy-uoi.haproxy-green.svg?style=flat)](https://galaxy.ansible.com/uoi-io/haproxy/)
[![CI](https://github.com/uoi-io/ansible-haproxy/actions/workflows/ci.yml/badge.svg)](https://github.com/uoi-io/ansible-haproxy/actions/workflows/ci.yml) [![Ansible Galaxy](https://img.shields.io/badge/galaxy-uoi.haproxy-green.svg?style=flat)](https://galaxy.ansible.com/uoi-io/haproxy/)

This role provides support for the installation of HAproxy on current distributions:

- CentOS **7.x** / **8.x**
- RedHat **7.x** / Not tested on **8.x** but should work
- Fedora **33** / **34**
- Debian **9.x** / **10.x** / **11.x**
- Ubuntu **18.04** / **20.04**
- Rocky Linux **8** / **9**
- Fedora **37** / **38** / **39**
- Debian **10** / **11**
- Ubuntu **18.04** / **20.04** / **22.04**

The role allows you to configure multiple sections of HAproxy:

Expand Down
4 changes: 2 additions & 2 deletions molecule/default/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ FROM {{ item.image }}
{% endif %}

RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install --no-install-recommends -y net-tools procps python3 python3-apt && apt-get clean; \
elif [ $(command -v dnf) ]; then dnf install -y net-tools procps-ng && dnf clean all; \
elif [ $(command -v yum) ]; then yum install -y net-tools procps-ng && yum clean all; fi
elif [ $(command -v dnf) ]; then dnf install -y net-tools procps-ng systemd-udev && dnf clean all; \
elif [ $(command -v yum) ]; then yum install -y net-tools procps-ng systemd-udev && yum clean all; fi

0 comments on commit 849c3ef

Please sign in to comment.