Update
This commit is contained in:
parent
c1805010f4
commit
b210098824
2 changed files with 88 additions and 78 deletions
|
@ -8,7 +8,6 @@
|
||||||
sqlrootpwd: "{{ env_root_sql_pw}}"
|
sqlrootpwd: "{{ env_root_sql_pw}}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: export munge user
|
- name: export munge user
|
||||||
shell: "export MUNGEUSER=10001"
|
shell: "export MUNGEUSER=10001"
|
||||||
|
|
||||||
|
@ -43,8 +42,8 @@
|
||||||
MARIADB_DATABASE: "slurm"
|
MARIADB_DATABASE: "slurm"
|
||||||
MARIADB_USER: "slurm"
|
MARIADB_USER: "slurm"
|
||||||
MARIADB_PASSWORD: "{{ sqlpwd }}"
|
MARIADB_PASSWORD: "{{ sqlpwd }}"
|
||||||
MARIADB_ROOT_PASSWORD : "{{ sqlrootpwd }}"
|
MARIADB_ROOT_PASSWORD: "{{ sqlrootpwd }}"
|
||||||
MYSQL_ROOT_HOST: '%'
|
MYSQL_ROOT_HOST: "%"
|
||||||
published_ports:
|
published_ports:
|
||||||
- "3306:3306/tcp"
|
- "3306:3306/tcp"
|
||||||
networks:
|
networks:
|
||||||
|
@ -54,33 +53,49 @@
|
||||||
volumes:
|
volumes:
|
||||||
- "slurm_maria_db:/var/lib/mysql"
|
- "slurm_maria_db:/var/lib/mysql"
|
||||||
|
|
||||||
|
|
||||||
- name: remove other files
|
- name: remove other files
|
||||||
include_tasks: yaml_sub/myrepo_clean.yaml
|
include_tasks: yaml_sub/myrepo_clean.yaml
|
||||||
- name: update file myrepo.repo
|
- name: update file myrepo.repo
|
||||||
import_tasks: yaml_sub/myrepo_data.yaml
|
import_tasks: yaml_sub/myrepo_data.yaml
|
||||||
|
|
||||||
|
- name: install putative dependencies (1)
|
||||||
- name: install slurm
|
|
||||||
dnf:
|
dnf:
|
||||||
name: munge,python3-mysql
|
name: rpm-build,gcc,python3,openssl,openssl-devel,pam-devel,numactl,numactl-devel,hwloc,hwloc-devel,munge,munge-libs,munge-devel,lua,lua-devel,readline-devel,rrdtool-devel,ncurses-devel,gtk2-devel,libibmad,libibumad,perl-Switch,perl-ExtUtils-MakeMaker,xorg-x11-xauth
|
||||||
state: present
|
state: present
|
||||||
update_cache: true
|
update_cache: true
|
||||||
skip_broken: true
|
skip_broken: true
|
||||||
nobest: false
|
nobest: false
|
||||||
allowerasing: true
|
allowerasing: true
|
||||||
|
|
||||||
|
- name: install putative dependencies (2)
|
||||||
# - name: install slurm
|
dnf:
|
||||||
# dnf:
|
name: munge,munge-libs,munge-devel,libssh2-devel,man2html,freeipmi-devel,http-parser-devel,json-c-devel,libjwt-devel,jq,libyaml-devel,python3-mysql
|
||||||
# name: slurm,slurm-slurmctld,slurm-slurmdbd,slurm-slurmrestd,slurm-gui,munge,python3-mysql
|
state: present
|
||||||
# state: present
|
update_cache: true
|
||||||
# update_cache: true
|
skip_broken: true
|
||||||
# skip_broken: true
|
nobest: false
|
||||||
# nobest: false
|
allowerasing: true
|
||||||
# allowerasing: true
|
|
||||||
|
|
||||||
- name: install munge server
|
- name: install munge server
|
||||||
include_tasks: yaml_sub/install_munge_server.yaml
|
include_tasks: yaml_sub/install_munge_server.yaml
|
||||||
|
|
||||||
|
- name: install slurm
|
||||||
|
dnf:
|
||||||
|
name: slurm,slurm-slurmctld,slurm-slurmdbd,slurm-slurmrestd,slurm-gui
|
||||||
|
state: present
|
||||||
|
update_cache: true
|
||||||
|
skip_broken: true
|
||||||
|
nobest: false
|
||||||
|
allowerasing: true
|
||||||
|
|
||||||
|
- name: Make sure slurmctld service unit is started
|
||||||
|
systemd_service:
|
||||||
|
enabled: true
|
||||||
|
state: started
|
||||||
|
name: slurmctld
|
||||||
|
|
||||||
|
- name: Make sure slurmdbd service unit is started
|
||||||
|
systemd_service:
|
||||||
|
enabled: true
|
||||||
|
state: started
|
||||||
|
name: slurmdbd
|
||||||
|
|
|
@ -1,67 +1,62 @@
|
||||||
---
|
---
|
||||||
- name: remove other files
|
- name: remove other files
|
||||||
include_tasks: yaml_sub/myrepo_clean.yaml
|
include_tasks: yaml_sub/myrepo_clean.yaml
|
||||||
- name: update file myrepo.repo
|
- name: update file myrepo.repo
|
||||||
import_tasks: yaml_sub/myrepo_data.yaml
|
import_tasks: yaml_sub/myrepo_data.yaml
|
||||||
|
|
||||||
- name: export munge user
|
- name: export munge user
|
||||||
shell: "export MUNGEUSER=10001"
|
shell: "export MUNGEUSER=10001"
|
||||||
|
|
||||||
- name: install slurm
|
- name: install munge
|
||||||
dnf:
|
dnf:
|
||||||
name: munge
|
name: munge
|
||||||
state: present
|
state: present
|
||||||
update_cache: true
|
update_cache: true
|
||||||
skip_broken: true
|
skip_broken: true
|
||||||
nobest: false
|
nobest: false
|
||||||
allowerasing: true
|
allowerasing: true
|
||||||
|
|
||||||
- name: save munge key
|
- name: save munge key
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "../munge.key"
|
src: "../munge.key"
|
||||||
dest: "/etc/munge/munge.key"
|
dest: "/etc/munge/munge.key"
|
||||||
owner: "munge"
|
owner: "munge"
|
||||||
group: "munge"
|
group: "munge"
|
||||||
mode: 0400
|
mode: 0400
|
||||||
|
|
||||||
- name: deal with directories /etc/munge
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "/etc/munge"
|
|
||||||
owner: "munge"
|
|
||||||
group: "munge"
|
|
||||||
mode: 0700
|
|
||||||
state: "directory"
|
|
||||||
|
|
||||||
- name: deal with directories /var/log/munge/
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "/var/log/munge"
|
|
||||||
owner: "munge"
|
|
||||||
group: "munge"
|
|
||||||
mode: 0700
|
|
||||||
state: "directory"
|
|
||||||
|
|
||||||
- name: Make sure munge is running
|
|
||||||
systemd_service:
|
|
||||||
daemon_reload: true
|
|
||||||
state: started
|
|
||||||
enabled: true
|
|
||||||
name: munge
|
|
||||||
|
|
||||||
- name: Set number of munge threads
|
|
||||||
lineinfile:
|
|
||||||
path: "/etc/systemd/system/multi-user.target.wants/munge.service"
|
|
||||||
regexp: "^ExecStart=/usr/sbin/munged"
|
|
||||||
line: "ExecStart=/usr/sbin/munged --num-threads 10"
|
|
||||||
create: true
|
|
||||||
|
|
||||||
- name: Make sure munge is restarted
|
|
||||||
systemd_service:
|
|
||||||
daemon_reload: true
|
|
||||||
state: restarted
|
|
||||||
enabled: true
|
|
||||||
name: munge
|
|
||||||
|
|
||||||
|
- name: deal with directories /etc/munge
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "/etc/munge"
|
||||||
|
owner: "munge"
|
||||||
|
group: "munge"
|
||||||
|
mode: 0700
|
||||||
|
state: "directory"
|
||||||
|
|
||||||
|
- name: deal with directories /var/log/munge/
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "/var/log/munge"
|
||||||
|
owner: "munge"
|
||||||
|
group: "munge"
|
||||||
|
mode: 0700
|
||||||
|
state: "directory"
|
||||||
|
|
||||||
|
- name: Make sure munge is running
|
||||||
|
systemd_service:
|
||||||
|
daemon_reload: true
|
||||||
|
state: started
|
||||||
|
enabled: true
|
||||||
|
name: munge
|
||||||
|
|
||||||
|
- name: Set number of munge threads
|
||||||
|
lineinfile:
|
||||||
|
path: "/etc/systemd/system/multi-user.target.wants/munge.service"
|
||||||
|
regexp: "^ExecStart=/usr/sbin/munged"
|
||||||
|
line: "ExecStart=/usr/sbin/munged --num-threads 10"
|
||||||
|
create: true
|
||||||
|
|
||||||
|
- name: Make sure munge is restarted
|
||||||
|
systemd_service:
|
||||||
|
daemon_reload: true
|
||||||
|
state: restarted
|
||||||
|
enabled: true
|
||||||
|
name: munge
|
||||||
|
|
Loading…
Reference in a new issue