-
Notifications
You must be signed in to change notification settings - Fork 11
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 execution environment file for ansible-builder #4
Conversation
Did you attempt to use the upstream ee base images from quay.io/ansible?
|
Also, can you add the 'How to run' information to the README? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working well. Just tested. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: acmenezes, bcrochet Associated issue: #1 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Adding execution environment file for building an ee container image via ansible-builder.
To build it:
ansible-builder build --container-runtime=podman --tag=opcap-ansible-ee --prune-images --verbosity 3
.Due to
openshift-clients
package requirement when pulling in kubernetes.core collection within ansible-builder's multi-stage build, it will require a subscription-manager login on the host running the build. I tried a variety of combinations of aap base images + additional dependencies with no success. An elegant solution may still exist. See https://access.redhat.com/solutions/6985157 and ansible/ansible-builder#472 for more info.Use ansible-navigator to run playbooks:
ansible-navigator run audits.yaml --eei quay.io/opdev/opcap-ansible-ee:latest -e @vars.yaml --senv K8S_AUTH_KUBECONFIG=/dir/config --eev /dir:/dir -m stdout
Issue #1