forked from ome/prod-playbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ome#370 from pwalczysko/fix-molecule
first attempt to fix molecule
- Loading branch information
Showing
47 changed files
with
1,355 additions
and
1,108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# .config/ansible-lint.yml | ||
warn_list: # or 'skip_list' to silence them completely | ||
- experimental # all rules tagged as experimental | ||
- latest[git] # Result of the command may vary on subsequent runs. | ||
- no-changed-when # Commands should not change things if nothing needs doing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
--- | ||
# Playbook which runs the necessary root-level steps so that a host can be managed by others | ||
- hosts: omedev | ||
# Playbook which runs the necessary root-level steps | ||
# so that a host can be managed by others | ||
- name: Boot1 | ||
hosts: omedev | ||
roles: | ||
|
||
- role: ome.network | ||
- role: ome.network | ||
|
||
- role: ome.lvm_partition | ||
lvm_lvname: var_log | ||
lvm_lvmount: /var/log | ||
lvm_lvsize: 4g | ||
lvm_lvfilesystem: xfs | ||
lvm_vgname: VolGroup00 | ||
- role: ome.lvm_partition | ||
lvm_lvname: root | ||
lvm_lvmount: / | ||
lvm_lvsize: 100%FREE | ||
lvm_lvfilesystem: xfs | ||
lvm_vgname: VolGroup00 | ||
lvm_shrink: False | ||
- role: ome.lvm_partition | ||
lvm_lvname: var_log | ||
lvm_lvmount: /var/log | ||
lvm_lvsize: 4g | ||
lvm_lvfilesystem: xfs | ||
lvm_vgname: VolGroup00 | ||
- role: ome.lvm_partition | ||
lvm_lvname: root | ||
lvm_lvmount: / | ||
lvm_lvsize: 100%FREE | ||
lvm_lvfilesystem: xfs | ||
lvm_vgname: VolGroup00 | ||
lvm_shrink: false | ||
|
||
- role: ome.sudoers | ||
sudoers_individual_commands: | ||
- user: "%omedev" | ||
become: ALL | ||
command: "NOPASSWD: ALL" | ||
- role: ome.sudoers | ||
sudoers_individual_commands: | ||
- user: "%omedev" | ||
become: ALL | ||
command: "NOPASSWD: ALL" | ||
|
||
- role: ome.upgrade_distpackages | ||
upgrade_distpackages_reboot_kernel: True | ||
- role: ome.upgrade_distpackages | ||
upgrade_distpackages_reboot_kernel: true | ||
|
||
|
||
- hosts: vlan-10ge-servers, vlan-ome-idr-docker | ||
- name: Network | ||
hosts: vlan-10ge-servers, vlan-ome-idr-docker | ||
roles: | ||
- role: ome.network | ||
- role: ome.network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
--- | ||
- hosts: vlan-10ge-servers | ||
- name: Bootkub | ||
hosts: vlan-10ge-servers | ||
roles: | ||
- role: ome.network | ||
- role: ome.network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
- hosts: kubernetes-lochy-k8s | ||
- name: Kuberneteslochy | ||
hosts: kubernetes-lochy-k8s | ||
roles: | ||
# No mounts are configured, this just installs required packages | ||
- role: ome.nfs_mount | ||
- role: ome.nfs_mount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Molecule managed | ||
|
||
{% if item.registry is defined %} | ||
FROM {{ item.registry.url }}/{{ item.image }} | ||
{% else %} | ||
FROM {{ item.image }} | ||
{% endif %} | ||
|
||
{% if item.env is defined %} | ||
{% for var, value in item.env.items() %} | ||
{% if value %} | ||
ENV {{ var }} {{ value }} | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
|
||
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo python-jmespath bash ca-certificates iproute2 && apt-get clean; \ | ||
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python*-dnf bash iproute && dnf clean all; \ | ||
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo python36-jmespath python38-jmespath yum-plugin-ovl bash iproute ca-certificates && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \ | ||
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml iproute2 && zypper clean -a; \ | ||
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \ | ||
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates iproute2 && xbps-remove -O; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Molecule managed | ||
|
||
{% if item.registry is defined %} | ||
FROM {{ item.registry.url }}/{{ item.image }} | ||
{% else %} | ||
FROM {{ item.image }} | ||
{% endif %} | ||
|
||
{% if item.env is defined %} | ||
{% for var, value in item.env.items() %} | ||
{% if value %} | ||
ENV {{ var }} {{ value }} | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
|
||
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates iproute2 && apt-get clean; \ | ||
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python*-dnf bash iproute && dnf clean all; \ | ||
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl bash iproute ca-certificates && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \ | ||
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml iproute2 && zypper clean -a; \ | ||
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \ | ||
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates iproute2 && xbps-remove -O; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
# Workaround lack of cron on Docker | ||
- hosts: ome-pg-prod1.openmicroscopy.org | ||
- name: Prepare pg prod | ||
hosts: ome-pg-prod1.openmicroscopy.org | ||
tasks: | ||
- name: Install cron | ||
become: yes | ||
yum: | ||
- name: Install cron | ||
become: true | ||
ansible.builtin.yum: | ||
name: cronie | ||
state: present |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.