Skip to content

Commit

Permalink
Merge pull request #635 from rebtoor/update_skel
Browse files Browse the repository at this point in the history
[_skeleton_role_] year updated and fixes
  • Loading branch information
openshift-merge-bot[bot] authored Apr 24, 2024
2 parents 76edab9 + 5a80a70 commit 616af7b
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 47 deletions.
2 changes: 1 addition & 1 deletion contribute/_skeleton_role_/defaults/main.yml.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# Copyright 2023 Red Hat, Inc.
# Copyright 2024 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
Expand Down
2 changes: 1 addition & 1 deletion contribute/_skeleton_role_/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# Copyright 2023 Red Hat, Inc.
# Copyright 2024 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
Expand Down
4 changes: 2 additions & 2 deletions contribute/_skeleton_role_/meta/main.yml.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# Copyright 2023 Red Hat, Inc.
# Copyright 2024 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
Expand All @@ -21,7 +21,7 @@ galaxy_info:
company: Red Hat
license: Apache-2.0
min_ansible_version: '2.14'
namespace: openstack
namespace: osp
#
# Provide a list of supported platforms, and for each platform a list of versions.
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
Expand Down
3 changes: 3 additions & 0 deletions contribute/_skeleton_role_/molecule/default/collections.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
collections:
- name: community.general
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# Copyright 2023 Red Hat, Inc.
# Copyright 2024 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
Expand Down
42 changes: 22 additions & 20 deletions contribute/_skeleton_role_/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
---
dependency:
name: galaxy
options:
role-file: collections.yml
driver:
name: podman

platforms:
- command: /sbin/init
dockerfile: ../../../../molecule/common/Containerfile.j2
image: ${EDPM_ANSIBLE_MOLECULE_IMAGE:-"ubi9/ubi-init"}
name: instance
privileged: true
registry:
url: ${EDPM_ANSIBLE_MOLECULE_REGISTRY:-"registry.access.redhat.com"}
ulimits:
- host
provisioner:
inventory:
hosts:
all:
hosts:
centos:
ansible_python_interpreter: /usr/bin/python3
name: ansible
log: true
env:
ANSIBLE_STDOUT_CALLBACK: yaml

name: ansible
scenario:
test_sequence:
- destroy
- create
- prepare
- converge
- check
- verify
- destroy

- dependency
- destroy
- create
- prepare
- converge
- destroy
verifier:
name: testinfra
name: ansible
2 changes: 1 addition & 1 deletion contribute/_skeleton_role_/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# Copyright 2023 Red Hat, Inc.
# Copyright 2024 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
Expand Down
21 changes: 1 addition & 20 deletions contribute/_skeleton_role_/tasks/main.yml.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# Copyright 2023 Red Hat, Inc.
# Copyright 2024 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
Expand All @@ -13,22 +13,3 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.


# "{{ role_name }}" will search for and load any operating system variable file
{% raw %}
# found within the "vars/" path. If no OS files are found the task will skip.
- name: Gather variables for each operating system
include_vars: "{{ item }}"
with_first_found:
- skip: true
files:
- "{{ ansible_facts['distribution'] | lower }}-{{ ansible_facts['distribution_version'] | lower }}.yml"
- "{{ ansible_facts['distribution'] | lower }}-{{ ansible_facts['distribution_major_version'] | lower }}.yml"
- "{{ ansible_facts['os_family'] | lower }}-{{ ansible_facts['distribution_major_version'] | lower }}.yml"
- "{{ ansible_facts['distribution'] | lower }}.yml"
- "{{ ansible_facts['os_family'] | lower }}-{{ ansible_facts['distribution_version'].split('.')[0] }}.yml"
- "{{ ansible_facts['os_family'] | lower }}.yml"
tags:
- always
{% endraw %}
2 changes: 1 addition & 1 deletion contribute/_skeleton_role_/vars/main.yml.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# Copyright 2023 Red Hat, Inc.
# Copyright 2024 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
Expand Down

0 comments on commit 616af7b

Please sign in to comment.