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

How to launch an ansible task/role from startup.sh #95

Closed
alexlenail opened this issue Aug 10, 2016 · 4 comments
Closed

How to launch an ansible task/role from startup.sh #95

alexlenail opened this issue Aug 10, 2016 · 4 comments

Comments

@alexlenail
Copy link

alexlenail commented Aug 10, 2016

@jmchilton, @mvdbeek, @afgane, @martenson
So for both my pull requests, #86 and #88, the tasks essentially rely on the specifics of the galaxy being launched. In #86, a username/pw which is unique to the galaxy admin is required, and in #88, a certificate specific to the galaxy fqdn is created.

I'm using these tasks through @bgruening's beautiful docker image, but the problem is that the username/pw and certificate can't be bundled into the image -- they need to be given at docker run time. That means the tasks need to be called from startup.sh I believe.

Should I establish a new ansible role for each of these, or is a set of tasks enough? How do I pass the variables (globus username/pw for #86 and galaxy fqdn for #88) to the role? Should I skip using ansible roles and just use shell scripts for each of those, which I can call from startup.sh?

Thanks!

@bgruening
Copy link
Member

@zfrenchee I need more time to think about it, but my initial feeling is that a simple script is enough and no extra role is needed.

Also see this line for some inspiration: https://github.com/galaxyproject/ansible-galaxy-extras/blob/master/templates/startup.sh.j2#L8

@alexlenail
Copy link
Author

@bgruening the line you linked for inspiration calls an ansible task from within startup.sh. Is that what you think I should do?

@bgruening
Copy link
Member

Just inspiration ;)
If I remember correctly I have done this to easily change a ini file. I was on my way to write a small python tool for it and found that build-in ansible function.

@alexlenail
Copy link
Author

I think I've come to realize that this isn't my actual issue -- going to open a new one =0

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

No branches or pull requests

2 participants