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

Demo rhel9 #378

Closed
wants to merge 40 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
3b5fcf0
Add demo playbook and requirements file from private repo
pwalczysko Aug 26, 2024
8dabedd
Do not commit omero/roles folder
pwalczysko Nov 13, 2024
5ba42ad
try to add converge.yml file
pwalczysko Nov 13, 2024
3d30ab9
Add converge to the testing sequence
pwalczysko Nov 13, 2024
f68a85d
Add requirements.yml into molecule/resources
pwalczysko Nov 13, 2024
fd6c0e9
Replace -role with -src in requirements file
pwalczysko Nov 13, 2024
fabbaf9
Replace - role: with - src: in all requirement files
pwalczysko Nov 13, 2024
c30b067
test
pwalczysko Nov 13, 2024
c4159cf
add playbook
pwalczysko Nov 13, 2024
1e88469
remove converge
pwalczysko Nov 13, 2024
1308db9
test
pwalczysko Nov 13, 2024
dab9afb
test
pwalczysko Nov 13, 2024
10814cc
test
pwalczysko Nov 13, 2024
20d3ec7
test
pwalczysko Nov 13, 2024
2c1700b
test
pwalczysko Nov 13, 2024
ef84f55
test
pwalczysko Nov 13, 2024
bd307f8
Test
pwalczysko Nov 13, 2024
1d47a4c
test
pwalczysko Nov 13, 2024
64c41a4
Put requirements and playbook everywhere
pwalczysko Nov 13, 2024
1357f34
Change ansible config to look for roles in roles folder
pwalczysko Nov 14, 2024
e4a9dd9
Point to correct location of the playbook
pwalczysko Nov 14, 2024
257c21f
Point really to correct location of the playbook
pwalczysko Nov 14, 2024
15f549b
Sort it finally out
pwalczysko Nov 14, 2024
7351078
Delete what is not needed
pwalczysko Nov 14, 2024
81c76ef
Big cleanup
pwalczysko Nov 14, 2024
40f9fd0
Add .gitignore file to omero/roles
pwalczysko Nov 14, 2024
af730a7
Only do one "dependency" step as it was originally
pwalczysko Nov 14, 2024
de39de2
Revert "Only do one "dependency" step as it was originally"
pwalczysko Nov 14, 2024
ebe1155
Prepare for full test
pwalczysko Nov 14, 2024
0e416ee
Try to add molecule/default/playbook.yml with install of cron
pwalczysko Nov 14, 2024
3d474cf
Prepare the cron installation with prepare.yml
pwalczysko Nov 14, 2024
b0eab8b
Cleanup, remove commented-out text Check_MK and other
pwalczysko Nov 14, 2024
0a4c057
Do not define the signup email body second time
pwalczysko Nov 14, 2024
3a32221
Try to comment out the signup
pwalczysko Nov 14, 2024
a9f956c
Comment out more to find out the problem with OMERO.web
pwalczysko Nov 14, 2024
22c4488
Fix tagsearch and autotag in web config j2
pwalczysko Nov 15, 2024
acefc6a
Remove the uncomments
pwalczysko Nov 15, 2024
12324dc
Adjust README
pwalczysko Nov 15, 2024
abb3ddc
Return the -destroy step and comment better the testing scenario
pwalczysko Nov 15, 2024
0dada55
Reformulate README
pwalczysko Nov 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,33 @@ on:
jobs:

list-scenarios:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
outputs:
matrix: ${{ steps.listscenarios.outputs.scenarios }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: listscenarios
uses: ome/action-ansible-molecule-list-scenarios@main

test:
name: Test
needs:
- list-scenarios
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
# Keep running so we can see if other tests pass
fail-fast: false
matrix:
scenario: ${{fromJson(needs.list-scenarios.outputs.matrix)}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.9'
- name: Install Ansible & Molecule
run: |
pip install "ansible<8" "ansible-lint<6.13" flake8
pip install "molecule<5" "ansible-compat<4"
pip install molecule-plugins[docker] pytest-testinfra
pip3.8 install jmespath
- name: Run molecule
run: molecule test -s "${{ matrix.scenario }}"
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
OME production services playbooks
=================================

**NOTE: We are in the process of migration of the playbooks in this repo to Rocky Linux 9/RHEL 9 OS but at the moment, they function only on CentOS 7 !!**
These playbooks encapsulate the running of various production servers run by the OME team.

At the moment, only the `ome-demoserver.yml` playbook is available here. This is a playbook for OMERO.demo server on https://demo.openmicroscopy.org OMERO.server and OMERO.web. You can read more about this [OMERO.demo server on our website](https://www.openmicroscopy.org/explore/).

We are in the process of adding more OME team's production playbooks here.

If you are looking for examples of running your own production OMERO.server see

https://github.com/ome/omero-deployment-examples
Expand All @@ -13,11 +17,18 @@ Details

- Install `Ansible` >2.10.
- Install required roles: `ansible-galaxy install -r requirements.yml`
- Run the [`site.yml` playbook](site.yml).
- Run the `ome-demoserver.yml` playbook:

```
cd omero
ansible-playbook --ask-become --become -i $PATH/TO/INVENTORY ome-demoserver.yml -l $YOUR-HOST-ADDRESS-OR-IP --diff
```


For details of individual playbooks see the comments in [`site.yml`](site.yml).

Testing
-------

All server playbooks have a corresponding [molecule](https://molecule.readthedocs.io/) test scenario under [`molecule`](molecule).
We test the playbooks here on Rocky Linux 9 platform via [Ansible Molecule](https://molecule.readthedocs.io/), see test scenarios under [`molecule`](molecule).

The main components of the playbooks (roles) are being independently tested on both Rocky Linux 9 and Ubuntu 22.04. See e.g. [ome.omero_server role](https://github.com/ome/ansible-role-omero-server/tree/master/molecule).
24 changes: 0 additions & 24 deletions Vagrantfile

This file was deleted.

2 changes: 1 addition & 1 deletion ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[defaults]
# Galaxy roles
roles_path = ./vendor
roles_path = ./omero/roles

# These tend to be annoying.
retry_files_enabled = False
36 changes: 0 additions & 36 deletions bootstrap/playbook.yml

This file was deleted.

17 changes: 0 additions & 17 deletions k8s/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions k8s/bootstrap/playbook.yml

This file was deleted.

6 changes: 0 additions & 6 deletions k8s/prerequisites/playbook.yml

This file was deleted.

28 changes: 0 additions & 28 deletions molecule/bootstrap/molecule.yml

This file was deleted.

22 changes: 0 additions & 22 deletions molecule/docker-prod/Dockerfile.j2

This file was deleted.

19 changes: 0 additions & 19 deletions molecule/docker-prod/converge.yml

This file was deleted.

56 changes: 0 additions & 56 deletions molecule/docker-prod/molecule.yml

This file was deleted.

22 changes: 0 additions & 22 deletions molecule/docker-prod/prepare.yml

This file was deleted.

39 changes: 0 additions & 39 deletions molecule/docker-prod/tests/test_default.py

This file was deleted.

Loading
Loading