-
Notifications
You must be signed in to change notification settings - Fork 13
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 #7 from rug-cit-hpc/develop
Reviewed develop -> master.
- Loading branch information
Showing
187 changed files
with
8,522 additions
and
650 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 |
---|---|---|
@@ -1,5 +1,15 @@ | ||
*.DS_Store | ||
*.project | ||
*.settings | ||
*.md.html | ||
*.vagrant | ||
*.pydevproject | ||
*.retry | ||
*.swp | ||
documentation/.~lock.UMCG Research IT HPC cluster technical design.docx# | ||
.vault_pass.txt | ||
documentation/.~lock.UMCG Research IT HPC cluster technical design.docx# | ||
promtools/results/* | ||
roles/hpc-cloud | ||
roles/HPCplaybooks | ||
roles/HPCplaybooks/* | ||
ssh-host-ca |
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,2 +1,3 @@ | ||
[defaults] | ||
inventory = hosts | ||
stdout_callback = debug | ||
vault_password_file = .vault_pass.txt |
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,78 @@ | ||
--- | ||
- name: Install roles needed for all virtual cluster components except jumphosts. | ||
hosts: cluster | ||
become: true | ||
tasks: | ||
roles: | ||
- spacewalk_client | ||
- ldap | ||
- node_exporter | ||
- cluster | ||
|
||
- name: Install roles needed for jumphosts. | ||
hosts: jumphost | ||
become: true | ||
roles: | ||
- ldap | ||
- cluster | ||
- geerlingguy.security | ||
tasks: | ||
- cron: | ||
name: Reboot to load new kernel. | ||
weekday: 1 | ||
minute: 45 | ||
hour: 11 | ||
user: root | ||
job: /bin/needs-restarting -r >/dev/null 2>&1 || /sbin/shutdown -r +60 "restarting to apply updates" | ||
cron_file: reboot | ||
|
||
- hosts: slurm | ||
become: true | ||
roles: | ||
- prom_server | ||
- cadvisor | ||
- slurm | ||
|
||
- name: Install virtual compute nodes | ||
hosts: compute-vm | ||
become: true | ||
tasks: | ||
roles: | ||
- compute-vm | ||
- isilon | ||
- datahandling | ||
- slurm-client | ||
|
||
- name: Install user interface | ||
hosts: interface | ||
become: true | ||
tasks: | ||
roles: | ||
- slurm_exporter | ||
- user-interface | ||
- datahandling | ||
- isilon | ||
- slurm-client | ||
|
||
- name: Install ansible on admin interfaces (DAI & SAI). | ||
hosts: | ||
- imperator | ||
- sugarsnax | ||
become: True | ||
tasks: | ||
- name: install Ansible | ||
yum: | ||
name: ansible-2.6.6-1.el7.umcg | ||
|
||
- name: export /home | ||
hosts: user-interface:&talos-cluster | ||
roles: | ||
- nfs_home_server | ||
|
||
- name: export /home | ||
hosts: compute-vm&talos-cluster | ||
roles: | ||
- nfs_home_client | ||
|
||
- import_playbook: users.yml | ||
#- import_playbook: ssh-host-signer.yml |
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,86 @@ | ||
--- | ||
- hosts: deploy-admin-interface | ||
become: true | ||
tasks: | ||
- name: Install OS depedencies (with yum). | ||
yum: | ||
state: latest | ||
update_cache: yes | ||
name: | ||
# | ||
# 'Development tools' package group and other common deps. | ||
# | ||
- "@Development tools" | ||
- libselinux-devel | ||
- kernel-devel | ||
- gcc-c++ | ||
# | ||
# Slurm dependencies. | ||
# | ||
- readline-devel | ||
- pkgconfig | ||
- perl-ExtUtils-MakeMaker | ||
- perl | ||
- pam-devel | ||
- openssl-devel | ||
- numactl-devel | ||
- nss-softokn-freebl | ||
- ncurses-devel | ||
- mysql-devel | ||
- munge-libs | ||
- munge-devel | ||
- mariadb-devel | ||
- man2html | ||
- lua-devel | ||
- hwloc-devel | ||
- hdf5-devel | ||
- blcr-devel | ||
- blcr | ||
# | ||
# Ansible dependencies. | ||
# | ||
- python2-devel | ||
- python-nose | ||
- python-coverage | ||
- python-mock | ||
- python-boto3 | ||
- python-botocore | ||
- python-passlib | ||
- python2-sphinx-theme-alabaster | ||
- pytest | ||
# | ||
# Lua, Lmod, EasyBuild dependencies. | ||
# | ||
- rdma-core-devel | ||
- libxml2-devel | ||
|
||
- name: Set lustre client source url. | ||
set_fact: | ||
lustre_rpm_url: https://downloads.whamcloud.com/public/lustre/lustre-2.10.4/el7/client/SRPMS | ||
lustre_src_rpm_name: lustre-2.10.4-1.src.rpm | ||
lustre_client_rpm_name: lustre-client-2.10.4-1.el7.x86_64.rpm | ||
|
||
- name: check if the buildserver has already built the client. | ||
stat: | ||
path: /root/rpmbuild/RPMS/x86_64/{{ lustre_client_rpm_name }} | ||
register: remote_file | ||
|
||
- name: build the lustre client. | ||
block: | ||
- name: Fetch the lustre client source | ||
get_url: | ||
url: "{{ lustre_rpm_url }}/{{ lustre_src_rpm_name }}" | ||
dest: /tmp/{{ lustre_src_rpm_name }} | ||
|
||
- name: build the lustre client. | ||
command: rpmbuild --rebuild --without servers /tmp/{{ lustre_src_rpm_name }} | ||
become: true | ||
when: remote_file.stat.exists == false | ||
|
||
- name: Mount isilon apps | ||
mount: | ||
path: /apps | ||
src: gcc-storage001.stor.hpc.local:/ifs/rekencluster/umcgst10/.envsync/tmp01 | ||
fstype: nfs | ||
opts: defaults,_netdev,nolock,vers=4.0,noatime,nodiratime | ||
state: present |
Oops, something went wrong.