Skip to content

Added possibility to inject packages into the ansible pipx package - #106

Merged
koralowiec merged 3 commits into
devcontainers-extra:mainfrom
matpab:ansible-with-injections
Feb 27, 2025
Merged

Added possibility to inject packages into the ansible pipx package#106
koralowiec merged 3 commits into
devcontainers-extra:mainfrom
matpab:ansible-with-injections

Conversation

@matpab

@matpab matpab commented Feb 26, 2025

Copy link
Copy Markdown
Contributor

There are some ansible addon packages like the Hetzner inventory plugins needs to be installed into the ansible venv.

Currently the ansible package doesn't support installing ansible plugins.

I am also including dependencies now.

@koralowiec
koralowiec self-requested a review February 26, 2025 18:07
@koralowiec koralowiec added the existing feature This PR or issue is about modifying an existing Dev Container feature label Feb 26, 2025

@koralowiec koralowiec left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hey, thanks for the PR

I have to 2 change requests:

  1. Left as a code comment: ansible should be always injected
  2. As you introduce a new option for the feature, there should be a new test scenario that confirm it works properly. For example, the test scenario sets injections option to hcloud requests, and there are checks that confirm that these packages were additionally installed in the environment. If you need help with adding this, let me know, I'm happy to help you

Comment thread src/ansible/install.sh Outdated
@matpab

matpab commented Feb 27, 2025

Copy link
Copy Markdown
Contributor Author

I added the test case which just looks into the pipx environment and greps the injections

@matpab
matpab requested a review from koralowiec February 27, 2025 10:22

@koralowiec koralowiec left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@koralowiec
koralowiec merged commit 9455d85 into devcontainers-extra:main Feb 27, 2025
@matpab
matpab deleted the ansible-with-injections branch February 27, 2025 12:47
@koralowiec

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

existing feature This PR or issue is about modifying an existing Dev Container feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants