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 ansible container #163

Merged
merged 7 commits into from
Jun 26, 2017
Merged

Conversation

carbonin
Copy link
Member

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.

This will be used by the ansible pod so it can run as root and
also start its services using systemd
@@ -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
Copy link
Member Author

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.

@miq-bot miq-bot added the wip label Jun 21, 2017
@carbonin carbonin changed the title [WIP] Add ansible container Add ansible container Jun 22, 2017
@carbonin carbonin removed the wip label Jun 22, 2017
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.
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.
Copy link
Member

@bdunne bdunne left a 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

value: "${ANSIBLE_SERVICE_NAME}"
-
name: "ANSIBLE_ADMIN_PASSWORD"
value: "${ANSIBLE_ADMIN_PASSWORD}"
Copy link
Member

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?

value: "${ANSIBLE_SERVICE_NAME}"
-
name: "ANSIBLE_ADMIN_PASSWORD"
value: "${ANSIBLE_ADMIN_PASSWORD}"
Copy link
Member

Choose a reason for hiding this comment

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

Same

@miq-bot
Copy link
Member

miq-bot commented Jun 26, 2017

Checked commits carbonin/manageiq-pods@a21b14f~...0be3f72 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
0 files checked, 0 offenses detected
Everything looks fine. ⭐

@bdunne bdunne merged commit 571f998 into ManageIQ:master Jun 26, 2017
@bdunne bdunne added this to the Sprint 64 Ending Jul 3, 2017 milestone Jun 26, 2017
@carbonin carbonin deleted the add_ansible_container branch October 13, 2017 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants