Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

define a playbook to be referenced by other ansible based GPTs #133

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

cooktheryan
Copy link
Contributor

@cooktheryan cooktheryan commented Jun 23, 2023

What does this PR do / why we need it

Part of the ansible epic

Which issue(s) does this PR fix

Day 0 of the Ansible pipeline

Fixes #173

How to test changes / Special notes to the reviewer

This one is to just define an ansible playbook in your git repo

Signed-off-by: Ryan Cook <[email protected]>
@rtaniwa rtaniwa linked an issue Jul 27, 2023 that may be closed by this pull request
Copy link
Member

@tumido tumido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @cooktheryan just 1 nit in 2 places + a rebase required. Otherwise lgtm.🙂

Signed-off-by: Ryan Cook <[email protected]>
Signed-off-by: Ryan Cook <[email protected]>
Signed-off-by: Ryan Cook <[email protected]>
@cooktheryan cooktheryan requested a review from tumido July 27, 2023 20:05
@cooktheryan
Copy link
Contributor Author

thanks @tumido !!

@kadel
Copy link
Member

kadel commented Aug 7, 2023

When I was testing this, it was surprising to me that it tried to update my existing catalog-info.yaml.

If I understand this correctly, this is supposed to be used to add the Ansible playbook into an existing repository that would typically already be in Software Catalog.

Maybe I'm missing something?

name: Registering the Catalog Info Component
action: catalog:register
input:
repoContentsUrl: ${{ steps.publish.output.repoContentsUrl }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not going to work. There is no repoContentsUrl on the output of github:pull-request.

@cooktheryan cooktheryan requested a review from kadel August 10, 2023 19:48
@cooktheryan
Copy link
Contributor Author

@kadel can you review this when you get a chance?

githubOrg:
title: GitHub Organization
type: string
owner:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this parameter can be removed, it is not used anymore

@kadel
Copy link
Member

kadel commented Sep 13, 2023

Register step is failing with Invalid input passed to action catalog:register, instance is not exactly one from [subschema 0],[subschema 1]
Most likely due to repoContentsUrl not being a valid output of publish:github:pull-request step

@openshift-merge-robot
Copy link
Collaborator

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GPT: Create an Ansible Playbook and push to repo GPT: Create an Ansible Playbook and push to repo
4 participants