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

➕ Add default values to roles #509

Merged

Conversation

bdsoha
Copy link
Contributor

@bdsoha bdsoha commented May 12, 2024

Proposed Changes

  • Add default values to roles to refrain from missing values in the all.yml file.
  • Allow modular use of roles when consumed as a collection.
  • Add metadata to all roles with documented arguments.

Checklist

  • Tested locally
  • Ran site.yml playbook
  • Ran reset.yml playbook
  • Did not add any unnecessary changes
  • Ran pre-commit install at least once before committing
  • 🚀

@bdsoha bdsoha marked this pull request as draft May 13, 2024 04:04
@bdsoha
Copy link
Contributor Author

bdsoha commented May 21, 2024

@timothystewart6 It would be great to receive your input on whether or not such a PR is in the roadmap for this project.
If so, I will continue the work for all other roles.

@bdsoha
Copy link
Contributor Author

bdsoha commented Jun 3, 2024

@timothystewart6 Did you have a chance to look at this?

@timothystewart6
Copy link
Contributor

timothystewart6 commented Jun 3, 2024

@timothystewart6 Did you have a chance to look at this?

Hi! Yes, this sounds great as long as we don't break how it currently works. Unfortunately CI isn't working right now but I hope to have it working soon so that the tests will run!

Thanks!
Tim

@timothystewart6
Copy link
Contributor

Just let me know when this is ready!

@bdsoha
Copy link
Contributor Author

bdsoha commented Jun 9, 2024

No problem, I will change the PR status from draft to ready.

@bdsoha bdsoha marked this pull request as ready for review June 25, 2024 10:28
@bdsoha
Copy link
Contributor Author

bdsoha commented Jun 25, 2024

@timothystewart6 Ready for review!

@timothystewart6
Copy link
Contributor

timothystewart6 commented Jul 29, 2024

@bdsoha it seems this is failing CI

see logs: https://github.com/techno-tim/k3s-ansible/actions/runs/10134226628/job/28020331172

seems like you are mixing snake_case and camelCase. I would just make them all snake_case and one small conflict after all the merges

@bdsoha
Copy link
Contributor Author

bdsoha commented Jul 30, 2024

@timothystewart6 I didn't choose the variable names, just used the existing ones (which might cause regression failures for users of the playbook).
Therefore, I added ignore statements to the relevant lines.

pre-commit is passing locally for me.

@timothystewart6
Copy link
Contributor

timothystewart6 commented Jul 31, 2024

Well they were only in a template before now they are set as defaults and used elsewhere. I think you maybe have missed some ignores. There are also conflicts too. Although it does work locally, you might be on a different version? It does need to pass CI since it's the source of truth.

@bdsoha
Copy link
Contributor Author

bdsoha commented Aug 1, 2024

@timothystewart6
You are referring to a CI run from a previous commit (before I added the ignore statements).
There is no CI run for the most recent commit which resolves the issues.

The most recent commit is "requires approval from a maintainer".

@timothystewart6
Copy link
Contributor

@bdsoha sorry! Good call! There are still conflict though however

@bdsoha
Copy link
Contributor Author

bdsoha commented Aug 2, 2024

@timothystewart6 Done!

@timothystewart6
Copy link
Contributor

Unfortunately it's not passing CI

@timothystewart6 timothystewart6 merged commit 3a20500 into techno-tim:master Aug 5, 2024
8 checks passed
@bdsoha bdsoha deleted the feature/add-defaults-to-roles branch August 6, 2024 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants