Commit 6681c8cb authored by Swann Perarnau's avatar Swann Perarnau
Browse files

Merge branch 'more-playbooks' into 'master'

Improve playbooks

See merge request !6
parents 26e42039 5f657f82
...@@ -7,4 +7,5 @@ ...@@ -7,4 +7,5 @@
- { role: aml, ci: true, install: false} - { role: aml, ci: true, install: false}
- { role: nrm, ci: true, install: false} - { role: nrm, ci: true, install: false}
- { role: umap, ci: true, install: false} - { role: umap, ci: true, install: false}
- { role: power-slurm, ci: true, install: false}
- { role: ci-runner, become: yes } - { role: ci-runner, become: yes }
---
- hosts: all
roles:
- common
- { role: aml, ci: false, install: true}
- { role: nrm, ci: false, install: true}
- { role: umap, ci: false, install: true}
- { role: power-slurm, ci: false, install: true}
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
name: "{{ item }}" name: "{{ item }}"
state: present state: present
with_items: with_items:
- python-virtualenv
- python-setuptools
- python-pip - python-pip
- gcc - gcc
- automake - automake
......
---
dependencies:
- { role: msr-safe }
- name: fetch libmsr repository
git:
repo: https://github.com/LLNL/libmsr.git
dest: /argo/libmsr.git
update: yes
- name: checkout libmsr skylake branch
shell: git checkout origin/patki-skylake-0655-fix
args:
chdir: /argo/libmsr.git
- name: compile libmsr
shell: cmake3 -DCMAKE_INSTALL_PREFIX=/usr && make && make install
args:
chdir: /argo/libmsr.git
- { include: install.yaml, become: yes, when: install }
- name: add msr-safe dependencies
package:
name: "{{ item }}"
state: present
with_items:
- kernel-headers
- name: fetch msr-safe repository
git:
repo: https://github.com/LLNL/msr-safe.git
dest: /argo/msr-safe.git
update: yes
- name: compile msr-safe
shell: make
args:
chdir: /argo/msr-safe.git
- name: reload msr-safe
shell: rmmod msr-safe.ko || insmod msr-safe.ko
args:
chdir: /argo/msr-safe.git
- { include: dependencies.yaml, become: yes }
- { include: install.yaml, become: yes, when: install }
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
name: "{{ item }}" name: "{{ item }}"
state: present state: present
with_items: with_items:
flake8 - python-flake8
---
dependencies:
- { role: msr-safe }
- { role: libmsr }
- name: add power-slurm CI dependencies
package:
name: "{{ item }}"
state: present
with_items:
- dejagnu
- name: add power-slurm dependencies
package:
name: "{{ item }}"
state: present
with_items:
- munge-devel
- gtk+-devel
- gtk2-devel
- glibc
- name: fetch power-slurm repository
git:
repo: https://github.com/tpatki/power-slurm.git
dest: /argo/power-slurm.git
update: yes
- name: compile power-slurm
shell: ./autogen.sh && ./configure --prefix=/usr && make && make install
args:
chdir: /argo/power-slurm.git
- { include: dependencies.yaml, become: yes }
- { include: install.yaml, become: yes, when: install }
- { include: ci.yaml, become: yes, when: ci }
...@@ -10,6 +10,6 @@ ...@@ -10,6 +10,6 @@
path: /argo/umap.git/build path: /argo/umap.git/build
- name: compile umap - name: compile umap
shell: cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release && make && make install shell: cmake3 -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .. && make && make install
args: args:
chdir: /argo/umap.git/build chdir: /argo/umap.git/build
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment