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

omego-for-ansible #102

Open
joshmoore opened this issue Mar 10, 2017 · 2 comments
Open

omego-for-ansible #102

joshmoore opened this issue Mar 10, 2017 · 2 comments

Comments

@joshmoore
Copy link
Member

cF:

To simplify adding requirements for the various install targets that omego provides, the following could be added:

  • dependency on ansible so that pip installing also installs ansible
  • a command req (or deps or ansible or setup) or a flag like install --setup could be added which:
    • generates a requirements.yml
    • runs ansible-galaxy
    • generates a playbook
    • (optionally) runs the playbook
  • skip generating those files if they already exist

The requirements.yml file might look like:

# web
- src: openmicroscopy.ice
- src: openmicroscopy.omero-web-runtime
- src: openmicroscopy.nginx # optionally

# server
 - src: openmicroscopy.java
 - src: openmicroscopy.omero-server

# etc.

The playbook would largely might look like:

# server
- hosts: localhost:
   roles:
   - role: openmicroscopy.omero-server

The goal would be to reduce the number of steps and necessary files needed for the likes of docker to:

RUN pip install omego && omego install --with-playbook
@manics
Copy link
Member

manics commented Mar 10, 2017

It sounds like this would introduce two-way coupling: omego requires ansible, but ansible OMERO roles require omego for downloading artefacts. I think it'd be better to split omego into:

  • library of tools, e.g. for downloading, or database operations
  • An application that contains the logic for installing OMERO, and makes use of the tools library.

@joshmoore
Copy link
Member Author

Good point. How would you see breaking it apart? All in this repo? Multiple "omego plugins"?

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