Skip to content

Commit

Permalink
parallels tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tcharl committed May 19, 2023
1 parent c5b8a6c commit c245ec3
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 27 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,28 +50,3 @@ jobs:
run: |
cd tcharl.etchost_append
tox -e lint
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
with:
path: tcharl.etchost_append
- name: update apt
run: |
sudo apt update
# - name: apt upgrade
# run: |
# sudo apt upgrade
- name: install aptitude packages
run: |
sudo apt -y install sudo python3 python3-pip podman
- name: pip install packages
run: |
pip3 install wheel setuptools tox
- name: Test with podman
run: |
cd tcharl.etchost_append
tox -e test-exec
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ Ansible Etchost_append
=========

* Galaxy: [![Ansible Galaxy](https://img.shields.io/badge/galaxy-tcharl.etchost_append-660198.svg?style=flat)](https://galaxy.ansible.com/tcharl/etchost_append)
* Lint, Tests & requirements: ![Molecule](https://github.com/OsgiliathEnterprise/etchost_append/workflows/Molecule/badge.svg)
* Lint & requirements: ![Molecule](https://github.com/OsgiliathEnterprise/etchost_append/workflows/Molecule/badge.svg)
* Tests: ![Travis](https://app.travis-ci.com/OsgiliathEnterprise/etchost_append.svg?branch=master)
* Chat: [![Join the chat at https://gitter.im/OsgiliathEnterprise/platform](https://badges.gitter.im/OsgiliathEnterprise/platform.svg)](https://gitter.im/OsgiliathEnterprise/platform?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Appends entries in /etc/hosts file
Expand Down
2 changes: 1 addition & 1 deletion molecule/kvm/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ driver:
name: libvirt
platforms:
- name: dns.osgiliath.test
box: fedora/35-cloud-base
box: fedora/38-cloud-base
provider_options:
driver: "kvm"
cpus: 2
Expand Down
13 changes: 13 additions & 0 deletions molecule/parallels/converge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
- name: Converge
hosts: all
vars:
hosts_entries:
- name: idm.osgiliath.test
ip: 192.168.122.1
- name: infra.osgiliath.test
ip: 192.168.122.2
- name: poc.osgiliath.test
ip: 192.168.122.2
roles:
- role: tcharl.etchost_append
38 changes: 38 additions & 0 deletions molecule/parallels/molecule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
dependency:
name: galaxy
options:
role-file: requirements.yml
roles-path: ${MOLECULE_PROJECT_DIRECTORY}/../community
requirements-file: requirements-collections.yml
collections-path: ${MOLECULE_PROJECT_DIRECTORY}/../community-collections
driver:
name: vagrant
provider:
name: parallels
platforms:
- name: dns.osgiliath.test
box: tcharl/fedora-36-aarch64
provider_options:
cpus: 2
memory: 2048
interfaces:
- type: dhcp
auto_config: true
network_name: private_network
provisioner:
name: ansible
# config_options:
# defaults:
# forks: 20
# ssh_connection:
# pipelining: true
# ssh_args: -o ControlMaster=auto -o ControlPersist=6000s
verifier:
name: testinfra
env:
PYTHONWARNINGS: "ignore:.*U.*mode is deprecated:DeprecationWarning"
options:
v: 1
scenario:
name: parallels
1 change: 1 addition & 0 deletions molecule/parallels/tests

0 comments on commit c245ec3

Please sign in to comment.