Skip to content

Commit

Permalink
Adds Fedora support
Browse files Browse the repository at this point in the history
I can't add support for Fedora rowhide because it's docker is
unfunctional at least in molecule. It gets upgrade conflict on buildtime
  • Loading branch information
asm0dey committed Aug 6, 2018
1 parent 0d7f86f commit 4273825
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 16 deletions.
19 changes: 5 additions & 14 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,6 @@ galaxy_info:
license: MIT

min_ansible_version: 1.2
#
# platforms is a list of platforms, and each platform has a name and a list of versions.
#
# platforms:
# - name: Fedora
# versions:
# - all
# - 25
# - name: SomePlatform
# versions:
# - all
# - 1.0
# - 7
# - 99.99

platforms:
- name: Ubuntu
Expand All @@ -29,6 +15,11 @@ galaxy_info:
versions:
- 6
- 7
- name: Fedora
versions:
- 26
- 27
- 28

galaxy_tags:
- networking
Expand Down
25 changes: 23 additions & 2 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ driver:
lint:
name: yamllint
platforms:
- name: centos6
image: chrisshort/docker-centos6-ansible
- name: ubuntu
image: solita/ubuntu-systemd:latest
command: /sbin/init
Expand All @@ -27,8 +29,27 @@ platforms:
- SYS_ADMIN
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- name: centos6
image: chrisshort/docker-centos6-ansible
- name: fedora26
image: fedora:26
command: /sbin/init
capabilities:
- SYS_ADMIN
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- name: fedora27
image: fedora:27
command: /sbin/init
capabilities:
- SYS_ADMIN
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- name: fedora28
image: fedora:28
command: /sbin/init
capabilities:
- SYS_ADMIN
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
provisioner:
name: ansible
lint:
Expand Down
16 changes: 16 additions & 0 deletions tasks/Fedora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
- name: Ensures 3proxy is installed
dnf:
name: 3proxy
state: present

- name: Ensures 3proxy log dir exists
file:
name: /var/log/3proxy
state: directory

- name: Configures 3proxy
template:
src: 3proxy.cfg.j2
dest: /etc/3proxy.cfg
notify: "reload service"

0 comments on commit 4273825

Please sign in to comment.