-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes to make compat with new ansible versions
- Loading branch information
Eric Anderson
committed
Mar 5, 2024
1 parent
8a2b90c
commit af3341b
Showing
24 changed files
with
158 additions
and
169 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
name: "release" | ||
name: release | ||
on: | ||
release: | ||
types: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# ignore vscode settings | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
=================================== | ||
Ericsysmin.Kubernetes Release Notes | ||
=================================== | ||
|
||
.. contents:: Topics | ||
|
||
v1.0.0 | ||
====== | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,47 @@ | ||
--- | ||
- hosts: localhost | ||
# code: language=ansible | ||
- name: Deploy collection to galaxy | ||
hosts: localhost | ||
connection: local | ||
gather_facts: false | ||
vars: | ||
# This should be set via the command line at runtime. | ||
tag: "{{ github_tag.split('/')[-1] }}" | ||
pre_tasks: | ||
- name: Ensure the ANSIBLE_GALAXY_TOKEN environment variable is set. | ||
fail: | ||
ansible.builtin.fail: | ||
msg: ANSIBLE_GALAXY_TOKEN is not set. | ||
when: "lookup('env','ANSIBLE_GALAXY_TOKEN') | length == 0" | ||
when: lookup('env', 'ANSIBLE_GALAXY_TOKEN') | length == 0 | ||
|
||
- name: Ensure the ~/.ansible directory exists. | ||
file: | ||
ansible.builtin.file: | ||
path: ~/.ansible | ||
state: directory | ||
mode: "0755" | ||
|
||
- name: Write the Galaxy token to ~/.ansible/galaxy_token | ||
copy: | ||
ansible.builtin.copy: | ||
content: | | ||
token: {{ lookup('env','ANSIBLE_GALAXY_TOKEN') }} | ||
token: {{ lookup('env', 'ANSIBLE_GALAXY_TOKEN') }} | ||
dest: ~/.ansible/galaxy_token | ||
mode: "0644" | ||
|
||
tasks: | ||
- name: Template out the galaxy.yml file. | ||
template: | ||
ansible.builtin.template: | ||
src: templates/galaxy.yml.j2 | ||
dest: ../galaxy.yml | ||
mode: "0644" | ||
register: galaxy_yml | ||
- name: Build the collection. # noqa 503 | ||
command: > | ||
|
||
- name: Build the collection. # noqa no-changed-when no-handler | ||
ansible.builtin.command: > | ||
ansible-galaxy collection build | ||
chdir=../ | ||
when: galaxy_yml.changed | ||
- name: Publish the collection. # noqa 503 | ||
command: > | ||
|
||
- name: Publish the collection. # noqa no-changed-when no-handler | ||
ansible.builtin.command: > | ||
ansible-galaxy collection publish ./ericsysmin-kubernetes-{{ tag }}.tar.gz | ||
chdir=../ | ||
when: galaxy_yml.changed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
objects: | ||
role: {} | ||
plugins: | ||
become: {} | ||
cache: {} | ||
callback: {} | ||
cliconf: {} | ||
connection: {} | ||
filter: {} | ||
httpapi: {} | ||
inventory: {} | ||
lookup: {} | ||
module: {} | ||
netconf: {} | ||
shell: {} | ||
strategy: {} | ||
test: {} | ||
vars: {} | ||
version: 1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ancestor: null | ||
releases: | ||
1.0.0: | ||
release_date: '2024-03-05' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
changelog_filename_template: ../CHANGELOG.rst | ||
changelog_filename_version_depth: 0 | ||
changes_file: changelog.yaml | ||
changes_format: combined | ||
ignore_other_fragment_extensions: true | ||
keep_fragments: false | ||
mention_ancestor: true | ||
new_plugins_after_name: removed_features | ||
notesdir: fragments | ||
output_formats: | ||
- rst | ||
prelude_section_name: release_summary | ||
prelude_section_title: Release Summary | ||
sanitize_changelog: true | ||
sections: | ||
- - major_changes | ||
- Major Changes | ||
- - minor_changes | ||
- Minor Changes | ||
- - breaking_changes | ||
- Breaking Changes / Porting Guide | ||
- - deprecated_features | ||
- Deprecated Features | ||
- - removed_features | ||
- Removed Features (previously deprecated) | ||
- - security_fixes | ||
- Security Fixes | ||
- - bugfixes | ||
- Bugfixes | ||
- - known_issues | ||
- Known Issues | ||
title: Ericsysmin.Kubernetes | ||
trivial_section_name: trivial | ||
use_fqcn: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.