-
Notifications
You must be signed in to change notification settings - Fork 100
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 ansible container #163
Conversation
This will be used by the ansible pod so it can run as root and also start its services using systemd
images/miq-app/Dockerfile
Outdated
@@ -76,7 +76,7 @@ RUN mkdir -p ${APP_ROOT} && \ | |||
|
|||
## Add ManageIQ source from local directory (dockerfile development) or from Github (official build) | |||
#ADD . ${APP_ROOT} | |||
RUN curl -L https://github.com/ManageIQ/manageiq/tarball/${REF} | tar vxz -C ${APP_ROOT} --strip 1 | |||
RUN curl -L https://github.com/carbonin/manageiq/tarball/use_ansible_service_in_containers | tar vxz -C ${APP_ROOT} --strip 1 |
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.
This will go away once ManageIQ/manageiq#15423 is merged.
29859ca
to
d90d1c4
Compare
This pod will provide the "embedded" ansible service to manageiq. It will share the database service, but will create its own database when it is first deployed.
d90d1c4
to
e768183
Compare
This is required for jobs to run correctly. When not running as privileged job runs fail with a traceback saying that the bubblewrap package is not installed.
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.
Overall, looks great! Just the one concern
templates/miq-template-ext-db.yaml
Outdated
value: "${ANSIBLE_SERVICE_NAME}" | ||
- | ||
name: "ANSIBLE_ADMIN_PASSWORD" | ||
value: "${ANSIBLE_ADMIN_PASSWORD}" |
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.
Should we be pulling this value from the Ansible secret?
templates/miq-template.yaml
Outdated
value: "${ANSIBLE_SERVICE_NAME}" | ||
- | ||
name: "ANSIBLE_ADMIN_PASSWORD" | ||
value: "${ANSIBLE_ADMIN_PASSWORD}" |
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.
Same
Checked commits carbonin/manageiq-pods@a21b14f~...0be3f72 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
This will add support for "embedded ansible" as a service in our project.
In combination with ManageIQ/manageiq#15423 this should allow the embedded ansible role to work in the podified application just as it does in the appliance.
We add the miq-sysadmin scc here so that the ansible pod can run systemd without requiring the full list of entitlements that the existing privileged scc grants.