Skip to content
Snippets Groups Projects
Commit ef5300d3 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

Merge remote-tracking branch 'origin/master' into upcomingMaintenance

parents f67481e6 f017d287
No related branches found
No related tags found
1 merge request!460Upcoming maintenance
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
- 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: '/usr/local/ucx/'
state: directory state: directory
owner: damienl owner: damienl
group: systems group: systems
...@@ -49,8 +49,8 @@ ...@@ -49,8 +49,8 @@
- name: symlink ucx to latest - name: symlink ucx to latest
file: file:
src: /usr/local/ucx/1.8.0 src: '/usr/local/ucx/1.8.0'
dest: /usr/local/ucx/latest dest: '/usr/local/ucx/latest'
state: link state: link
owner: damienl owner: damienl
group: systems group: systems
......
...@@ -18,7 +18,7 @@ where slurm_bk.yml contains ...@@ -18,7 +18,7 @@ where slurm_bk.yml contains
- hosts: 'ManagementNodes' - hosts: 'ManagementNodes'
gather_facts: True gather_facts: True
roles: roles:
- { role: slurm_mv_logs, copy_key: "True", BK_DEST_HOST: "118.138.234.186", BK_DEST_DIR: "/mnt/backup/monarch/slurm-logs", SLURM_LOG_DIR: "/mnt/slurm-logs", BK_DEST_USER: "ec2-user", MGR_BIN_DIR: "/root/bin", PRIVATE_KEY: slm_db_backup, PUBLIC_KEY: "files/slm_db_backup" } - { role: slurm_mv_logs, copy_key: "True", BK_DEST_HOST: "118.138.235.215", BK_DEST_DIR: "/mnt/backup/monarch/slurm-logs", SLURM_LOG_DIR: "/mnt/slurm-logs", BK_DEST_USER: "YOURUSERNAME", MGR_BIN_DIR: "/root/bin", PRIVATE_KEY: slm_db_backup, PUBLIC_KEY: "files/slm_db_backup" }
~~~~ ~~~~
Meaning: Meaning:
......
...@@ -19,7 +19,7 @@ do ...@@ -19,7 +19,7 @@ do
scp -i ~/.ssh/slm_db_backup $file {{ BK_DEST_USER }}@{{ BK_DEST_HOST }}:{{ BK_DEST_DIR }} scp -i ~/.ssh/slm_db_backup $file {{ BK_DEST_USER }}@{{ BK_DEST_HOST }}:{{ BK_DEST_DIR }}
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "scp $file worked. Deleting it" echo "scp $file worked. Deleting it"
echo "scp -i ~/.ssh/slm_db_backup $file ec2-user@118.138.234.186:$destName" | mail -s "Moved slurm log file $file" simon.michnowicz@monash.edu echo "scp -i ~/.ssh/slm_db_backup $file {{ BK_DEST_USER }}@{{ BK_DEST_HOST }}:$destName" | mail -s "Moved slurm log file $file" simon.michnowicz@monash.edu
#rm -f $file #rm -f $file
else else
echo "ERROR: Failure to scp $file $?" echo "ERROR: Failure to scp $file $?"
......
...@@ -20,11 +20,11 @@ where slurm_bk.yml contains ...@@ -20,11 +20,11 @@ where slurm_bk.yml contains
- hosts: 'ManagementNodes' - hosts: 'ManagementNodes'
gather_facts: True gather_facts: True
roles: roles:
- { role: slurm_sql_bk, create_key: "True", SQL_BK_DEST_HOST: "118.138.234.186", SQL_BK_DEST_DIR: "/mnt/backup/monarch", SQL_IP: "172.16.226.88" , sqlUsername: "slurmdb", sqlPasswd: "{{ slurmdb_passwd }}" } - { role: slurm_sql_bk, create_key: "True", SQL_BK_DEST_HOST: "118.138.235.215", SQL_BK_DEST_DIR: "/mnt/backup/monarch", SQL_IP: "172.16.226.88" , sqlUsername: "slurmdb", sqlPasswd: "{{ slurmdb_passwd }}" }
or or
- { role: slurm_sql_bk, copy_key: "True", SQL_BK_DEST_HOST: "118.138.234.186", SQL_BK_DEST_DIR: "/mnt/backup/monarch", SQL_IP: "172.16.226.88" , sqlUsername: "slurmdb", sqlPasswd: "{{ slurmdb_passwd }}", PRIVATE_KEY: slm_db_backup.private , PUBLIC_KEY: slm_db_backup.public } - { role: slurm_sql_bk, copy_key: "True", SQL_BK_DEST_HOST: "118.138.235.215", SQL_BK_DEST_DIR: "/mnt/backup/monarch", SQL_IP: "172.16.226.88" , sqlUsername: "slurmdb", sqlPasswd: "{{ slurmdb_passwd }}", PRIVATE_KEY: slm_db_backup.private , PUBLIC_KEY: slm_db_backup.public }
~~~~ ~~~~
......
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