Skip to content

Commit

Permalink
[skip travis] normalize molecule.yml files
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Mordant <[email protected]>
  • Loading branch information
Tcharl committed Jun 3, 2023
1 parent 74646ef commit bab0fd0
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 19 deletions.
2 changes: 0 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
# defaults file for lvm

idm_client_group: 'ipaclients'
idm_group: 'ipaservers' # do not change: convention from the ipa roles
datastore_firewall_zone: 'public'
keytab_path: '/etc/krb5.keytab'
standalone_role: True
Expand Down
8 changes: 4 additions & 4 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ driver:
name: virtualbox
platforms:
- name: consumer.osgiliath.test
box: fedora/38-cloud-base
box: ${TESTBOX:-fedora/38-cloud-base}
provider_options:
cpus: 2
memory: 3096
Expand All @@ -22,13 +22,13 @@ platforms:
# ip: "192.168.56.5"
auto_config: true
network_name: private_network
# virtualbox__intnet: "internalnetwork"
virtualbox__intnet: "internalnetwork"
groups:
- ipaservers
provider_raw_config_args:
- "customize ['storagectl', :id, '--name', 'IDE', '--hostiocache', 'on']"
- name: datastore.osgiliath.test
box: fedora/38-cloud-base
box: ${TESTBOX:-fedora/38-cloud-base}
provider_options:
cpus: 2
memory: 2048
Expand All @@ -37,7 +37,7 @@ platforms:
# ip: "192.168.56.5"
auto_config: true
network_name: private_network
# virtualbox__intnet: "internalnetwork"
virtualbox__intnet: "internalnetwork"
groups:
- ipaclients
provider_raw_config_args:
Expand Down
4 changes: 2 additions & 2 deletions molecule/kvm/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ driver:
name: libvirt
platforms:
- name: consumer.osgiliath.test
box: fedora/38-cloud-base
box: ${TESTBOX:-fedora/38-cloud-base}
provider_options:
driver: "kvm"
cpus: 2
Expand All @@ -25,7 +25,7 @@ platforms:
groups:
- ipaservers
- name: datastore.osgiliath.test
box: fedora/38-cloud-base
box: ${TESTBOX:-fedora/38-cloud-base}
provider_options:
driver: "kvm"
cpus: 2
Expand Down
4 changes: 2 additions & 2 deletions molecule/parallels/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ driver:
name: parallels
platforms:
- name: consumer.osgiliath.test
box: tcharl/fedora-36-aarch64
box: ${TESTBOX:-bento/fedora-38-arm64}
provider_options:
cpus: 2
memory: 2048
Expand All @@ -26,7 +26,7 @@ platforms:
groups:
- ipaservers
- name: datastore.osgiliath.test
box: tcharl/fedora-36-aarch64
box: ${TESTBOX:-bento/fedora-38-arm64}
provider_options:
cpus: 2
memory: 2048
Expand Down
6 changes: 3 additions & 3 deletions molecule/parallels/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
name: tcharl.nfs_client
tasks_from: requirements.yml
vars:
secure_logs: false
secure_logs: False
preferred_nic: "eth1"
company_domain: osgiliath.test
company_realm_password: '123ADMin'
company_ad_password: '123ADmPass'
- name: Expose NFS
hosts: datastore.osgiliath.test
vars:
secure_logs: false
secure_logs: False
preferred_nic: "eth1"
company_domain: osgiliath.test
company_realm_password: '123ADMin'
company_ad_password: '123ADmPass'
preferred_nic: "eth1"
lvm_groups:
- vgname: non-persistent
disks:
Expand Down
2 changes: 2 additions & 0 deletions tasks/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
- name: Requirements | install freeipa and declare dns
ansible.builtin.import_role:
name: tcharl.ansible_nameserver
tags:
- dependency
26 changes: 20 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env_list =
dependency
lint
create
create-monorepo
converge
converge-monorepo
test-exec
Expand Down Expand Up @@ -48,12 +49,6 @@ commands =
yamllint .
flake8
ansible-lint
[testenv:create]
setenv =
DEPENDENCY_ENABLED=False
deps =
-r requirements-dev.txt
commands = molecule create {posargs}
[common-ansible-path]
setenv =
ANSIBLE_ROLES_PATH={toxinidir}/../community:{toxinidir}/../oss:{toxinidir}/..
Expand All @@ -62,6 +57,25 @@ commands =
mkdir -p {toxinidir}/../community
mkdir -p {toxinidir}/../oss
mkdir -p {toxinidir}/../community-collections
[testenv:create]
allowlist_externals=mkdir
setenv =
{[common-ansible-path]setenv}
deps =
-r requirements-dev.txt
commands =
{[common-ansible-path]commands}
molecule create {posargs}
[testenv:create-monorepo]
allowlist_externals=mkdir
setenv =
{[common-ansible-path]setenv}
REQUIREMENTS_PATH={toxinidir}/requirements-monorepo.yml
deps =
-r requirements-dev.txt
commands =
{[common-ansible-path]commands}
molecule create {posargs}
[testenv:converge-monorepo]
allowlist_externals=mkdir
setenv =
Expand Down
4 changes: 4 additions & 0 deletions vars/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---

idm_client_group: 'ipaclients'
idm_group: 'ipaservers' # do not change: convention from the ipa roles

0 comments on commit bab0fd0

Please sign in to comment.