You've already forked ansible-role-repo-epel
Initial Project import
This commit is contained in:
22
molecule/default/INSTALL.rst
Normal file
22
molecule/default/INSTALL.rst
Normal file
@@ -0,0 +1,22 @@
|
||||
*******
|
||||
Docker driver installation guide
|
||||
*******
|
||||
|
||||
Requirements
|
||||
============
|
||||
|
||||
* Docker Engine
|
||||
|
||||
Install
|
||||
=======
|
||||
|
||||
Please refer to the `Virtual environment`_ documentation for installation best
|
||||
practices. If not using a virtual environment, please consider passing the
|
||||
widely recommended `'--user' flag`_ when invoking ``pip``.
|
||||
|
||||
.. _Virtual environment: https://virtualenv.pypa.io/en/latest/
|
||||
.. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ pip install 'molecule[docker]'
|
||||
7
molecule/default/converge.yml
Normal file
7
molecule/default/converge.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: Converge
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: "Include repo-epel"
|
||||
include_role:
|
||||
name: "repo-epel"
|
||||
16
molecule/default/molecule.yml
Normal file
16
molecule/default/molecule.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
dependency:
|
||||
name: galaxy
|
||||
driver:
|
||||
name: docker
|
||||
platforms:
|
||||
- name: centos7
|
||||
image: docker.io/pycontribs/centos:7
|
||||
pre_build_image: true
|
||||
- name: almalinux
|
||||
image: docker.io/almalinux/almalinux:8
|
||||
pre_build_image: false
|
||||
provisioner:
|
||||
name: ansible
|
||||
verifier:
|
||||
name: ansible
|
||||
23
molecule/default/verify.yml
Normal file
23
molecule/default/verify.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
# This is an example playbook to execute Ansible tests.
|
||||
|
||||
- name: Verify
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: Retrieve yum repofile
|
||||
shell: cat /etc/yum.repos.d/epel.repo
|
||||
ignore_errors: true
|
||||
register: repofile
|
||||
|
||||
- debug:
|
||||
var: repofile
|
||||
|
||||
- name: metalink is present
|
||||
assert:
|
||||
that:
|
||||
- "'metalink=' in repofile.stdout"
|
||||
|
||||
- name: baseurl is not defined
|
||||
assert:
|
||||
that:
|
||||
- "'baseurl=' not in repofile.stdout"
|
||||
22
molecule/mirror-is-set/INSTALL.rst
Normal file
22
molecule/mirror-is-set/INSTALL.rst
Normal file
@@ -0,0 +1,22 @@
|
||||
*******
|
||||
Docker driver installation guide
|
||||
*******
|
||||
|
||||
Requirements
|
||||
============
|
||||
|
||||
* Docker Engine
|
||||
|
||||
Install
|
||||
=======
|
||||
|
||||
Please refer to the `Virtual environment`_ documentation for installation best
|
||||
practices. If not using a virtual environment, please consider passing the
|
||||
widely recommended `'--user' flag`_ when invoking ``pip``.
|
||||
|
||||
.. _Virtual environment: https://virtualenv.pypa.io/en/latest/
|
||||
.. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ pip install 'molecule[docker]'
|
||||
10
molecule/mirror-is-set/converge.yml
Normal file
10
molecule/mirror-is-set/converge.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: Converge
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: "Include repo-almalinux"
|
||||
include_role:
|
||||
name: "repo-epel"
|
||||
vars:
|
||||
epel_specify_mirror: true
|
||||
epel_mirror_url: https://someproxyormirror.org.nz
|
||||
19
molecule/mirror-is-set/molecule.yml
Normal file
19
molecule/mirror-is-set/molecule.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
dependency:
|
||||
name: galaxy
|
||||
driver:
|
||||
name: docker
|
||||
platforms:
|
||||
- name: alma
|
||||
image: docker.io/guisea/py-almalinux
|
||||
pre_build_image: true
|
||||
- name: centos7
|
||||
image: docker.io/pycontribs/centos:7
|
||||
pre_build_image: true
|
||||
- name: centos8
|
||||
image: docker.io/pycontribs/centos:8
|
||||
pre_build_image: true
|
||||
provisioner:
|
||||
name: ansible
|
||||
verifier:
|
||||
name: ansible
|
||||
25
molecule/mirror-is-set/verify.yml
Normal file
25
molecule/mirror-is-set/verify.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
# This is an example playbook to execute Ansible tests.
|
||||
|
||||
- name: Verify
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: Retrieve yum repofile
|
||||
shell: cat /etc/yum.repos.d/epel.repo
|
||||
ignore_errors: true
|
||||
register: repofile
|
||||
|
||||
- name: metalink is not present
|
||||
assert:
|
||||
that:
|
||||
- "'metalink=' not in repofile.stdout"
|
||||
|
||||
- name: baseurl is defined
|
||||
assert:
|
||||
that:
|
||||
- "'baseurl=' in repofile.stdout"
|
||||
|
||||
- name: mirror is specified correctly
|
||||
assert:
|
||||
that:
|
||||
- "'https://someproxyormirror.org.nz' in repofile.stdout"
|
||||
Reference in New Issue
Block a user