Skip to content
Snippets Groups Projects
Commit 7ecb6a5f authored by Chris Hines's avatar Chris Hines
Browse files

download bits from github instead of consistency0

parent 84da9071
No related branches found
No related tags found
3 merge requests!518modifications to playbooks because 1. we're not using ldap 2. we're mounting...,!517modifications to playbooks because 1. we're not using ldap 2. we're mounting...,!513modifications to playbooks because 1. we're not using ldap 2. we're mounting...
...@@ -18,24 +18,24 @@ ...@@ -18,24 +18,24 @@
- name: unarchive nhc - name: unarchive nhc
unarchive: unarchive:
args: args:
src: "http://consistency0/src/{{ nhc_version }}.tar.gz" src: "https://github.com/mej/nhc/archive/refs/tags/{{ nhc_version }}.tar.gz"
copy: no copy: no
dest: /tmp dest: /opt/src
creates: /tmp/nhc-{{ nhc_version }}/autogen.sh creates: /opt/src/nhc-{{ nhc_version }}/autogen.sh
when: not nhc_binary.stat.exists when: not nhc_binary.stat.exists
- name: build nhc - name: build nhc
shell: ./autogen.sh && ./configure --prefix={{ nhc_dir }} && make shell: ./autogen.sh && ./configure --prefix={{ nhc_dir }} && make
args: args:
chdir: /tmp/nhc-{{ nhc_version }} chdir: /opt/src/nhc-{{ nhc_version }}
creates: /tmp/nhc-{{ nhc_version }}/configure creates: /opt/src/nhc-{{ nhc_version }}/configure
when: not nhc_binary.stat.exists when: not nhc_binary.stat.exists
- name: install nhc - name: install nhc
shell: make install shell: make install
become: true become: true
args: args:
chdir: /tmp/nhc-{{ nhc_version }} chdir: /opt/src/nhc-{{ nhc_version }}
when: not nhc_binary.stat.exists when: not nhc_binary.stat.exists
- name: ensure sysconfig dir exists - name: ensure sysconfig dir exists
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
- name: unarchive munge - name: unarchive munge
unarchive: unarchive:
args: args:
src: "http://consistency0/src/munge-{{ munge_version }}.tar.bz2" #src: "http://consistency0/src/munge-{{ munge_version }}.tar.bz2"
src: "https://github.com/dun/munge/releases/download/munge-{{ munge_version }}/munge-{{ munge_version }}.tar.xz"
copy: no copy: no
dest: /tmp dest: /tmp
creates: /tmp/munge-{{ munge_version }}/configure creates: /tmp/munge-{{ munge_version }}/configure
......
- name: Create ucx directory if it does not exist
file:
path: /opt/src
state: directory
owner: "{{ ansible_user }}"
group: root
mode: u=rwx,g=rx,o=rx
become: true
- name: remove all install - name: remove all install
file: file:
path: "/tmp/slurm-{{ slurm_version }}" path: "/opt/src/{{ slurm_src_dir }}"
state: absent state: absent
become: true become: true
when: force_slurm_recompile is defined when: force_slurm_recompile is defined
...@@ -14,64 +24,62 @@ ...@@ -14,64 +24,62 @@
- name: unarchive slurm - name: unarchive slurm
unarchive: unarchive:
src: "http://consistency0/src/slurm-{{ slurm_version }}.tar.bz2" src: "https://github.com/SchedMD/slurm/archive/refs/tags/slurm-{{ slurm_version_hyphen }}.tar.gz"
dest: /tmp dest: /opt/src
remote_src: yes remote_src: yes
creates: "{{ slurm_dir }}/bin/srun" creates: "/opt/src/{{ slurm_src_dir }}"
- name: stat srun - name: stat srun
stat: path="{{ slurm_dir }}/bin/srun" stat: path="{{ slurm_dir }}/bin/srun"
register: stat_srun register: stat_srun
- name: stat ucx - name: stat ucx
stat: path="/usr/local/ucx/" stat:
path: "{{ ucx_dir }}"
register: stat_ucx register: stat_ucx
- name: Create ucx directory if it does not exist - name: Create ucx directory if it does not exist
file: file:
path: '/usr/local/ucx/' path: "{{ ucx_dir }}"
state: directory state: directory
owner: root owner: root
group: root group: root
mode: u=rw,g=rx,o=rx mode: u=rwx,g=rx,o=rx
become: true become: true
when: not stat_ucx.stat.exists when: not stat_ucx.stat.exists
- name: unarchive ucx - name: unarchive ucx
unarchive: unarchive:
args: args:
src: "http://consistency0/src/ucx_1_8_0.tar.gz" src: "https://github.com/openucx/ucx/releases/download/v{{ ucx_version }}/ucx-{{ ucx_version }}.tar.gz"
copy: no copy: no
dest: /usr/local/ucx/ dest: /opt/src
creates: /usr/local/ucx/1.8.0 creates: "/opt/src/ucx-{{ ucx_version }}"
become: true become: true
register: newucx register: newucx
- name: symlink ucx to latest - name: install ucx
file: shell: "./contrib/configure-release --prefix={{ ucx_dir }} && make -j8 && make install"
src: '/usr/local/ucx/1.8.0' args:
dest: '/usr/local/ucx/latest' chdir: "/opt/src/ucx-{{ ucx_version }}"
state: link create: " {{ ucx_dir }}/bin/ucx_info"
owner: root
group: root
mode: u=rw,g=rx,o=rx
become: true become: true
when: newucx.changed # when: not stat_ucx.stat.exists
- name: configure slurm centos - name: configure slurm centos
command: /tmp/slurm-{{ slurm_version }}/configure --prefix={{ slurm_dir }} --with-munge={{ munge_dir }} --enable-pam --with-pmix=/usr/local/pmix/latest --with-ucx=/usr/local/ucx/1.8.0 command: /opt/src/{{ slurm_src_dir }}/configure --prefix={{ slurm_dir }} --with-munge={{ munge_dir }} --enable-pam --with-pmix=/usr/local/pmix/latest --with-ucx={{ ucx_dir }}
args: args:
creates: "{{ slurm_dir }}/bin/srun" creates: "{{ slurm_dir }}/bin/srun"
chdir: /tmp/slurm-{{ slurm_version }} chdir: /opt/src/{{ slurm_src_dir }}
when: when:
- force_slurm_recompile is defined or not stat_srun.stat.exists - force_slurm_recompile is defined or not stat_srun.stat.exists
- ansible_os_family == 'RedHat' - ansible_os_family == 'RedHat'
- name: configure slurm ubuntu - name: configure slurm ubuntu
command: /tmp/slurm-{{ slurm_version }}/configure --prefix={{ slurm_dir }} --with-munge={{ munge_dir }} --enable-pam --with-pmix --with-ucx=/usr/local/ucx/1.8.0 command: /opt/src/{{ slurm_src_dir }}/configure --prefix={{ slurm_dir }} --with-munge={{ munge_dir }} --enable-pam --with-pmix --with-ucx={{ ucx_dir }}
args: args:
creates: "{{ slurm_dir }}/bin/srun" creates: "{{ slurm_dir }}/bin/srun"
chdir: /tmp/slurm-{{ slurm_version }} chdir: /opt/src/{{ slurm_src_dir }}
when: when:
- force_slurm_recompile is defined or not stat_srun.stat.exists - force_slurm_recompile is defined or not stat_srun.stat.exists
- ansible_os_family == 'Debian' - ansible_os_family == 'Debian'
...@@ -80,64 +88,64 @@ ...@@ -80,64 +88,64 @@
command: make command: make
args: args:
creates: "{{ slurm_dir }}/bin/srun" creates: "{{ slurm_dir }}/bin/srun"
chdir: /tmp/slurm-{{ slurm_version }} chdir: /opt/src/{{ slurm_src_dir }}
when: force_slurm_recompile is defined or not stat_srun.stat.exists when: force_slurm_recompile is defined or not stat_srun.stat.exists
- name: install slurm - name: install slurm
shell: make install shell: make install
become: true become: true
args: args:
chdir: /tmp/slurm-{{ slurm_version }} chdir: /opt/src/{{ slurm_src_dir }}
creates: "{{ slurm_dir }}/bin/srun" creates: "{{ slurm_dir }}/bin/srun"
when: force_slurm_recompile is defined or not stat_srun.stat.exists when: force_slurm_recompile is defined or not stat_srun.stat.exists
- name: build pmi - name: build pmi
command: make command: make
args: args:
chdir: /tmp/slurm-{{ slurm_version }}/contribs/pmi chdir: /opt/src/{{ slurm_src_dir }}/contribs/pmi
when: force_slurm_recompile is defined or not stat_srun.stat.exists when: force_slurm_recompile is defined or not stat_srun.stat.exists
- name: install pmi - name: install pmi
shell: make install shell: make install
become: true become: true
args: args:
chdir: /tmp/slurm-{{ slurm_version }}/contribs/pmi chdir: /opt/src/{{ slurm_src_dir }}/contribs/pmi
when: force_slurm_recompile is defined or not stat_srun.stat.exists when: force_slurm_recompile is defined or not stat_srun.stat.exists
- name: build pmi2 - name: build pmi2
command: make command: make
args: args:
chdir: /tmp/slurm-{{ slurm_version }}/contribs/pmi2 chdir: /opt/src/{{ slurm_src_dir }}/contribs/pmi2
when: force_slurm_recompile is defined or not stat_srun.stat.exists when: force_slurm_recompile is defined or not stat_srun.stat.exists
- name: install pmi2 - name: install pmi2
shell: make install shell: make install
become: true become: true
args: args:
chdir: /tmp/slurm-{{ slurm_version }}/contribs/pmi2 chdir: /opt/src/{{ slurm_src_dir }}/contribs/pmi2
when: force_slurm_recompile is defined or not stat_srun.stat.exists when: force_slurm_recompile is defined or not stat_srun.stat.exists
- name: build pam_slurm - name: build pam_slurm
command: make command: make
args: args:
chdir: /tmp/slurm-{{ slurm_version }}/contribs/pam chdir: /opt/src/{{ slurm_src_dir }}/contribs/pam
when: force_slurm_recompile is defined or not stat_srun.stat.exists when: force_slurm_recompile is defined or not stat_srun.stat.exists
- name: install pam_slurm - name: install pam_slurm
shell: make install shell: make install
become: true become: true
args: args:
chdir: /tmp/slurm-{{ slurm_version }}/contribs/pam chdir: /opt/src/{{ slurm_src_dir }}/contribs/pam
when: force_slurm_recompile is defined or not stat_srun.stat.exists when: force_slurm_recompile is defined or not stat_srun.stat.exists
- name: build pam_slurm_adopt - name: build pam_slurm_adopt
make: make:
chdir: /tmp/slurm-{{ slurm_version }}/contribs/pam_slurm_adopt chdir: /opt/src/{{ slurm_src_dir }}/contribs/pam_slurm_adopt
when: force_slurm_recompile is defined or not stat_srun.stat.exists when: force_slurm_recompile is defined or not stat_srun.stat.exists
- name: install pam_slurm_adopt - name: install pam_slurm_adopt
make: make:
chdir: /tmp/slurm-{{ slurm_version }}/contribs/pam_slurm_adopt chdir: /opt/src/{{ slurm_src_dir }}/contribs/pam_slurm_adopt
target: install target: install
when: force_slurm_recompile is defined or not stat_srun.stat.exists when: force_slurm_recompile is defined or not stat_srun.stat.exists
become: true become: true
......
...@@ -82,6 +82,7 @@ ...@@ -82,6 +82,7 @@
state: present state: present
name: name:
- gcc - gcc
- build-essential
- wget - wget
- libssl-dev # downgrade needed for bionic see https://github.com/dun/munge/issues/54 - libssl-dev # downgrade needed for bionic see https://github.com/dun/munge/issues/54
- libpam0g-dev - libpam0g-dev
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment