Skip to content

Commit

Permalink
Cleanup, remove commented-out text Check_MK and other
Browse files Browse the repository at this point in the history
  • Loading branch information
pwalczysko committed Nov 14, 2024
1 parent 3d474cf commit b0eab8b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 138 deletions.
12 changes: 0 additions & 12 deletions molecule/default/playbook.yml

This file was deleted.

2 changes: 2 additions & 0 deletions molecule/ome-demoserver/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ provisioner:
omero_server_dbpassword: omero
omero_server_mail_from: example.com
omero_server_mail_host: localhost
omero_server_rootpassword: omero
omero_signup_email_body: 'Thank you for signing up.'
lint:
name: ansible-lint
scenario:
Expand Down
126 changes: 0 additions & 126 deletions omero/ome-demoserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,88 +15,7 @@
((ansible_virtualization_type is defined)
and (ansible_virtualization_type == "VMware"))
# # Perhaps alter the role at
# # https://github.com/openmicroscopy/ansible-role-lvm-partition/
# # to make some of the variables non-required.
# - name: Resize root FS without altering mount options
# tags: lvm
# become: true
# lvol:
# lv: root
# vg: VolGroup00
# size: "{{ provision_root_lvsize }}"
# shrink: false

# - name: Install Make Movie script Prerequisite | MEncoder - Repo
# become: true
# ansible.builtin.yum:
# name: "http://li.nux.ro/download/nux/dextop/el7\
# /x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm"
# state: present

# - name: Install Make Movie script Prerequisite | MEncoder - Package
# become: true
# ansible.builtin.yum:
# name: mencoder
# state: present

# - name: Server-side script prerequisites
# become: true
# ansible.builtin.yum:
# name: "{{ item }}"
# state: present
# with_items:
# - mencoder # For the 'make movie' script

roles:
# Now OME are using RHEL without Spacewalk, the current best-method of
# checking `is server deployed in Dundee/SLS` is
# checking for the SLS nameservers.
# - role: ome.system_monitor_agent
# tags: monitoring
# when: "'10.1.255.216' in ansible_dns.nameservers"

# Disk Layout - PostgreSQL | data dir on separate VG (SSD)
# - role: ome.lvm_partition
# tags: lvm
# lvm_lvname: pgdata
# lvm_vgname: "{{ provision_postgres_vgname }}"
# lvm_lvmount: /var/lib/pgsql
# lvm_lvsize: "{{ provision_postgres_lvsize }}"
# lvm_lvfilesystem: "{{ filesystem }}"
# lvm_shrink: false

# # Disk Layout - OMERO | VG and LV (separate disk) for Binary Repository
# - role: ome.lvm_partition
# tags: lvm
# lvm_lvname: datadir
# lvm_vgname: "{{ provision_omero_server_datadir_vgname }}"
# lvm_lvmount: "{{ omero_server_datadir }}"
# lvm_lvsize: "{{ provision_omero_server_datadir_lvsize }}"
# lvm_lvfilesystem: "{{ filesystem }}"
# lvm_shrink: false

# # Disk Layout - OMERO.server | LV for dist & logs
# - role: ome.lvm_partition
# tags: lvm
# lvm_lvname: omero_server_basedir
# lvm_vgname: VolGroup00
# lvm_lvmount: "{{ omero_server_basedir }}"
# lvm_lvsize: "{{ provision_omero_server_basedir_lvsize }}"
# lvm_lvfilesystem: "{{ filesystem }}"
# lvm_shrink: false

# # Disk Layout - OMERO.web | LV for dist & logs
# - role: ome.lvm_partition
# tags: lvm
# lvm_lvname: omero_web_basedir
# lvm_vgname: VolGroup00
# lvm_lvmount: "{{ omero_web_basedir }}"
# lvm_lvsize: "{{ provision_omero_web_basedir_lvsize }}"
# lvm_lvfilesystem: "{{ filesystem }}"
# lvm_shrink: false

# nginx_version: 1.16.1

- role: ome.postgresql
# no_log: true
Expand Down Expand Up @@ -260,51 +179,6 @@
- restart omero-web
no_log: true

# - name: Check_MK postgres plugin | check for plugin existence
# tags: monitoring
# ansible.builtin.stat:
# path: "{{ check_mk_agent_plugin_path }}/mk_postgres"
# register: check_mk_postgres_plugin_st

# - name: Check_MK postgres plugin | activate the plugin
# tags: monitoring
# become: true
# command: >
# cp "{{ check_mk_agent_plugin_path }}/mk_postgres"
# /usr/share/check-mk-agent/plugins/
# creates=/usr/share/check-mk-agent/plugins/mk_postgres
# when: check_mk_postgres_plugin_st.stat.exists

# - name: Check_MK logwatch plugin | check for plugin existence
# tags: monitoring
# ansible.builtin.stat:
# path: "{{ check_mk_agent_plugin_path }}/mk_logwatch"
# register: check_mk_logwatch_plugin_st

# - name: Check_MK logwatch plugin | activate the plugin
# tags: monitoring
# become: true
# command: >
# cp "{{ check_mk_agent_plugin_path }}/mk_logwatch"
# /usr/share/check-mk-agent/plugins/
# creates=/usr/share/check-mk-agent/plugins/mk_logwatch
# when: check_mk_logwatch_plugin_st.stat.exists

# - name: Check_MK logwatch plugin | check for default config file
# tags: monitoring
# ansible.builtin.stat:
# path: "{{ check_mk_agent_config_example_path }}/logwatch.cfg"
# register: check_mk_logwatch_plugin_conf_st

# - name: Check_MK logwatch plugin | copy the default config
# tags: monitoring
# become: true
# command: >
# cp "{{ check_mk_agent_config_example_path }}/logwatch.cfg"
# "{{ check_mk_agent_config_path }}/logwatch.cfg"
# creates="{{ check_mk_agent_config_path }}/logwatch.cfg"
# when: check_mk_logwatch_plugin_conf_st.stat.exists

- name: PostgreSQL Nightly Backups | Remove old cron job
become: true
ansible.builtin.file:
Expand Down

0 comments on commit b0eab8b

Please sign in to comment.