Skip to content
Snippets Groups Projects
Commit 29aa5f5f authored by Simon Michnowicz's avatar Simon Michnowicz
Browse files

more cosmetic

parent 88bf7fc2
No related branches found
No related tags found
1 merge request!229Sql backup
...@@ -22,17 +22,17 @@ where slurm_bk.yml contains ...@@ -22,17 +22,17 @@ where slurm_bk.yml contains
- { 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.234.186", SQL_BK_DEST_DIR: "/mnt/backup/monarch", SQL_IP: "172.16.226.88" , sqlUsername: "slurmdb", sqlPasswd: "{{ slurmdb_passwd }}" }
Meaning: Meaning:
* create_key: If defined to True then ssh-keygen is called on local machine and then: * **create_key**: If defined to True then ssh-keygen is called on local machine and then:
private key copied to ~/.ssh on management node private key copied to ~/.ssh on management node
public key inserted into authroized_keys on SQL_BK_DEST_HOST public key inserted into authroized_keys on SQL_BK_DEST_HOST
* SQL_BK_DEST_HOST: IP number of Machine where we store mysql dumps * **SQL_BK_DEST_HOST:** IP number of Machine where we store mysql dumps
* SQL_BK_DEST_DIR: Directory on backup machine for mysql dumps. Note this is owned by ec2-user and is manually created. It should be cluster-specific, i.e. different for each cluster * **SQL_BK_DEST_DIR:** Directory on backup machine for mysql dumps. Note this is owned by ec2-user and is manually created. It should be cluster-specific, i.e. different for each cluster
* SQL_IP: IP number of slurm mysql machine * **SQL_IP:** IP number of slurm mysql machine
* sqlUsername,sqlPasswd Mysql username/password, same as in slurmdbd.conf * **sqlUsername,sqlPasswd** Mysql username/password, same as in slurmdbd.conf
Other VARIABLES: Other VARIABLES:
defined in default/main.yml defined in default/main.yml
* BIN_DIR: "/root/bin" #where the backup shell script and mysql.conf exists on Management Node * **BIN_DIR:** "/root/bin" #where the backup shell script and mysql.conf exists on Management Node
* SQL_BK_DATA_DIR: "/tmp" # where the inital dump exists on the management node. The file is deleted after a scp so it should not fill up disk * **SQL_BK_DATA_DIR:** "/tmp" # where the inital dump exists on the management node. The file is deleted after a scp so it should not fill up disk
* SQL_USER: "ec2-user" The user account on SQL_BK_DEST_HOST. Normally ec2-user but could be something else for security reasons * **SQL_USER: "ec2-user"** The user account on SQL_BK_DEST_HOST. Normally ec2-user but could be something else for security reasons
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