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

trs/wip/deploy #11

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

trs/wip/deploy #11

wants to merge 1 commit into from

Conversation

tsibley
Copy link
Member

@tsibley tsibley commented Jul 27, 2021

Automate deployments

To do this, I think we need to bring in a lot more of the deployment
process (which is our longer-term goal anyway).

I'm 50% sure the organization of tasks into tasks/source.yaml isn't the
right factoring for deploys. I'm 90% sure that the bits in
tasks/uwsgi.yaml, tasks/python.yaml, and other files are a good
factoring, though.

Todos:

  • Merge in backoffice.git into this repo, with contents under a subdir
    (for now), while preserving git history. This will let files in there be
    managed/installed by Ansible instead of by running git pull on
    backoffice.

  • Port and adapt documented deploy steps into idempotent tasks in one
    or more Ansible playbooks.

  • Bring Apache and Shibboleth management under the wings of Ansible
    too. I would expect to merge in backoffice-apache2.git and
    backoffice-shibboleth.git into this repo too, along similar lines to
    (1).

There's a continuum here though, and each item above can be split into
separate, iterative steps that rachet towards the goal. That said,
upfront time aside, it might be easier to do things in one fell swoop to
reduce the overhead of coordinating changes.

The WIP here adds management of uWSGI apps, but it alone is not
sufficient for managing deploys.

To do this, I think we need to bring in a lot more of the deployment
process (which is our longer-term goal anyway).

I'm 50% sure the organization of tasks into tasks/source.yaml isn't the
right factoring for deploys.  I'm 90% sure that the bits in
tasks/uwsgi.yaml, tasks/python.yaml, and other files are a good
factoring, though.

Todos:

  - Merge in backoffice.git into this repo, with contents under a subdir
    (for now), while preserving git history. This will let files in there be
    managed/installed by Ansible instead of by running git pull on
    backoffice.

  - Port and adapt documented deploy steps into idempotent tasks in one
    or more Ansible playbooks.

  - Bring Apache and Shibboleth management under the wings of Ansible
    too. I would expect to merge in backoffice-apache2.git and
    backoffice-shibboleth.git into this repo too, along similar lines to
    (1).

There's a continuum here though, and each item above can be split into
separate, iterative steps that rachet towards the goal. That said,
upfront time aside, it might be easier to do things in one fell swoop to
reduce the overhead of coordinating changes.
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

Successfully merging this pull request may close these issues.

None yet

1 participant