#220 Write ansible roles/playbooks for MBS deployment (in Fedora).
Closed 2 years ago by ralph. Opened 2 years ago by ralph.

Before we think about going to staging/production, we should stub out some deployment scripts and ask fedora infrastructure team members to review them.


I am working on this. ETA before christmas holidays

Check with @herlo who I think is working on this also. Please post status updates here as you develop stuff so that we're not blocked on each other by timezone (maybe @frostyx can get some done, and then @herlo can take it further, or vice versa...).

I am not entirely sure how the REQUIRE_PACKAGER with FAS_* and the OIDC_CLIENT_SECRETS config options are supposed to be set in production. If you can elaborate on / document this, it would be very helpful.

Currently I have https://github.com/FrostyX/copr-mbs-ansible/blob/master/copr-mbs.yml

Was there a good reason to have a separate repo? I was writing it into this one. This looks pretty good start, otherwise.

@herlo I thought that it should be part of https://infrastructure.fedoraproject.org/cgit/ansible.git/ and since I am not very familiar with ansible yet, I wanted to start from scratch and then merge it to the repo. However, feel free to fork it here and we can continue working on it here.

@herlo I thought that it should be part of https://infrastructure.fedoraproject.org/cgit/ansible.git/ and since I am not very familiar with ansible yet, I wanted to start from scratch and then merge it to the repo. However, feel free to fork it here and we can continue working on it here.

@frostyx we should probably ask, actually. I was thinking that the job would just pull in the repos it needs to run the tasks.

@frostyx we should probably ask, actually. I was thinking that the job would just pull in the repos it needs to run the tasks.

You mean, having the playbook that actually do things, in this repository and then "calling" it from infrastructure playbook? Am I understanding correctly?

Let's talk about it on IRC


@herlo, what are your upcoming plans for MBS ansible? Today, I am going to change

  - name: Run mbs-frontend
    service: name=mbs-frontend enabled=yes state=started

to run via apache as @mprahl said in PR#250. Then I will be PTO so I would love to discuss your plans so we both know whats up.

Just FYI, I'm making progress on defining the stg and prod nodes over here: https://pagure.io/fedora-infrastructure/issue/5665

The link that I provided in some comment above is not relevant anymore. I forked the fedora infrastructure ansible repository and continue on the work there. Please see https://github.com/FrostyX/fedora-infra-ansible

Working on setting up the role for the staging frontend nodes here: https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/roles/mbs

Haven't had a chance to start on the backend nodes yet.

@ralph please note that msuchy already merged my work to fedora-infra ansible:
https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/roles/copr/mbs

I don't know how much it will help you, but you should know that it is there

Metadata Update from @ralph:
- Issue status updated to: Closed (was: Open)

2 years ago

This means that now I can modify Copr MBS instance to take roles of mbs/frontend and mbs/backend and have only copr-specific stuff in our copr/mbs playbook?

Login to comment on this ticket.

Metadata