Skip to content

Commit

Permalink
Add default Molecule scenario
Browse files Browse the repository at this point in the history
Signed-off-by: Webster Mudge <wmudge@cloudera.com>
  • Loading branch information
wmudge committed Sep 13, 2024
1 parent fd346c1 commit 3c581b2
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 0 deletions.
20 changes: 20 additions & 0 deletions extensions/molecule/default/converge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

- name: Default test
hosts: all
gather_facts: yes
tasks:
- name: Heartbeat
ansible.builtin.ping:
37 changes: 37 additions & 0 deletions extensions/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

driver:
name: podman
dependency:
name: galaxy
options:
requirements-file: requirements.yml
platforms:
- name: rhel9.4
image: ubi9/ubi:9.4
dockerfile: Dockerfile-rhel.j2
command: /sbin/init
- name: rhel8.10
image: ubi8/ubi:8.10
dockerfile: Dockerfile-rhel.j2
command: /sbin/init
- name: ubuntu22.04
image: ubuntu:22.04
dockerfile: Dockerfile-ubuntu.j2
command: /lib/systemd/systemd
- name: ubuntu20.04
image: ubuntu:20.04
dockerfile: Dockerfile-ubuntu.j2
command: /lib/systemd/systemd
17 changes: 17 additions & 0 deletions extensions/molecule/default/requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

collections:
- containers.podman
- ansible.posix

0 comments on commit 3c581b2

Please sign in to comment.