Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding galaxy collection #252

Merged
merged 5 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# CHANGELOG

25 changes: 25 additions & 0 deletions galaxy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
namespace: rancherfederal
name: rke2_ansible
version: 0.0.2

Check failure on line 4 in galaxy.yml

View workflow job for this annotation

GitHub Actions / Lint for push

galaxy[version-incorrect]

collection version should be greater than or equal to 1.0.0

Check failure on line 4 in galaxy.yml

View workflow job for this annotation

GitHub Actions / Lint for PR

galaxy[version-incorrect]

collection version should be greater than or equal to 1.0.0

Check failure on line 4 in galaxy.yml

View workflow job for this annotation

GitHub Actions / Lint for PR

galaxy[version-incorrect]

collection version should be greater than or equal to 1.0.0
readme: README.md
authors:
- Rancher Government <carbide@ranchergovernment.com>
description: Collection for rancherfederal/rke2-ansible

license_file: 'LICENSE'

tags: [infrastructure, linux, kubernetes, rancher, rke2]

dependencies:
ansible.utils: 4.1.0

repository: https://github.com/rancherfederal/rke2-ansible
documentation: https://github.com/rancherfederal/rke2-ansible
homepage: https://github.com/rancherfederal/rke2-ansible
issues: https://github.com/rancherfederal/rke2-ansible/issues

build_ignore:
- tarball_install/*
- testing
- .github
52 changes: 52 additions & 0 deletions meta/runtime.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
# Collections must specify a minimum required ansible version to upload
# to galaxy
requires_ansible: '>=2.16.0'

# Content that Ansible needs to load from another location or that has
# been deprecated/removed
# plugin_routing:
# action:
# redirected_plugin_name:
# redirect: ns.col.new_location
# deprecated_plugin_name:
# deprecation:
# removal_version: "4.0.0"
# warning_text: |
# See the porting guide on how to update your playbook to
# use ns.col.another_plugin instead.
# removed_plugin_name:
# tombstone:
# removal_version: "2.0.0"
# warning_text: |
# See the porting guide on how to update your playbook to
# use ns.col.another_plugin instead.
# become:
# cache:
# callback:
# cliconf:
# connection:
# doc_fragments:
# filter:
# httpapi:
# inventory:
# lookup:
# module_utils:
# modules:
# netconf:
# shell:
# strategy:
# terminal:
# test:
# vars:

# Python import statements that Ansible needs to load from another location
# import_redirection:
# ansible_collections.ns.col.plugins.module_utils.old_location:
# redirect: ansible_collections.ns.col.plugins.module_utils.new_location

# Groups of actions/modules that take a common set of options
# action_groups:
# group_name:
# - module1
# - module2
23 changes: 23 additions & 0 deletions playbooks/site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
- name: Server play
hosts: rke2_servers
any_errors_fatal: true
become: true
roles:
- role: rke2_server
serial: 5

- name: Agent play
hosts: rke2_agents
any_errors_fatal: true
become: true
roles:
- role: rke2_agent
serial: 10

- name: Cluster manifest play
hosts: rke2_servers
any_errors_fatal: true
become: true
roles:
- role: cluster_manifest
6 changes: 6 additions & 0 deletions playbooks/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- name: Testing play
hosts: all
become: yes
roles:
- role: testing
Empty file.
Empty file added roles/rke2_agent/README.md
Empty file.
Empty file added roles/rke2_common/README.md
Empty file.
Empty file added roles/rke2_server/README.md
Empty file.
Empty file added roles/testing/README.md
Empty file.
25 changes: 2 additions & 23 deletions site.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@
---

- name: Server play
hosts: rke2_servers
any_errors_fatal: true
become: true
roles:
- role: rke2_server
serial: 5

- name: Agent play
hosts: rke2_agents
any_errors_fatal: true
become: true
roles:
- role: rke2_agent
serial: 10

- name: Cluster manifest play
hosts: rke2_servers
any_errors_fatal: true
become: true
roles:
- role: cluster_manifest
- name: Playbook for rke2-ansible
import_playbook: playbooks/site.yml
7 changes: 2 additions & 5 deletions testing.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
---
- name: Testing play
hosts: all
become: yes
roles:
- role: testing
- name: Playbook for testing
import_playbook: playbooks/testing.yml
Loading