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

update the hpcsystems role to include the naggy_quota cronjob and update the tools via pip

parent 55e2e3c7
No related branches found
No related tags found
1 merge request!127update the hpcsystems role to include the naggy_quota cronjob and update the tools via pip
......@@ -6,6 +6,7 @@
- openldap-devel
- python-pip
- git
- python-virtualenv
become: true
become_user: root
when: ansible_os_family == "RedHat"
......@@ -19,21 +20,26 @@
become_user: root
when: ansible_os_family == "Debian"
- name: install merypytools
pip:
name: "git+https://gitlab.erc.monash.edu.au/hpc-team/mercpytools.git#egg=mercpytools"
extra_args: "--upgrade"
become: true
become_user: root
- name: create install dir
file: name={{ item }} state=directory owner={{ ansible_user }}
with_items:
- "/usr/local/hpcsystem"
- "/usr/local/hpcsystem_config"
- "/usr/local/virtualenvs/mercpytools"
become: true
become_user: root
- name: upgrade pip
pip:
virtualenv: "/usr/local/virtualenvs/mercpytools"
name: "pip"
extra_args: "--upgrade"
- name: install mercpytools
pip:
virtualenv: "/usr/local/virtualenvs/mercpytools"
name: "git+https://gitlab.erc.monash.edu.au/hpc-team/mercpytools.git#egg=mercpytools"
extra_args: "--upgrade"
- name: install hpcsystem
git:
......@@ -46,3 +52,12 @@
repo: git@gitlab.erc.monash.edu.au:hpc-team/m3_hpcsystem_config.git
dest: /usr/local/hpcsystem_config
accept_hostkey: True
- name: cron job to check quotas
cron:
name: "Naggy quota cron job"
value: '/usr/local/hpcsystem/naggy_quota.sh'
hour: 16
minute: 23
become: true
become_user: root
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