Alex Savatieiev | 5118de0 | 2019-02-20 15:50:42 -0600 | [diff] [blame] | 1 | # Cfg Checker |
Oleksandr Savatieiev | 0f77e14 | 2018-11-23 17:52:01 +0100 | [diff] [blame] | 2 | # Environment file example |
| 3 | |
| 4 | # Either open a tunnel from your hosts using |
| 5 | # 'ssh -L 16969:<cfg-IP>:6969 <user>@<lab-IP>' |
| 6 | # Or run it from within a cloud |
| 7 | |
Oleksandr Savatieiev | 0f77e14 | 2018-11-23 17:52:01 +0100 | [diff] [blame] | 8 | # Main log file of the tests |
Alex | 9a4ad21 | 2020-10-01 18:04:25 -0500 | [diff] [blame] | 9 | MCP_LOGFILE = 'cfg_checker.log' |
Oleksandr Savatieiev | 0f77e14 | 2018-11-23 17:52:01 +0100 | [diff] [blame] | 10 | |
Alex Savatieiev | 6357683 | 2019-02-27 15:46:26 -0600 | [diff] [blame] | 11 | # SSH is used when environment is not local to get salt password |
| 12 | # in order set options and user for the ssh, |
| 13 | # please, use ~/.ssh/config |
| 14 | # SSH hostname of salt master node |
Alex | 9a4ad21 | 2020-10-01 18:04:25 -0500 | [diff] [blame] | 15 | MCP_SSH_KEY=<ssh_keyfile_path> |
| 16 | MCP_SSH_USER=<ssh_user> |
| 17 | MCP_SSH_HOST=<ssh_hostname> |
| 18 | |
| 19 | |
| 20 | ### Salt type section |
| 21 | # All vars should start with SALT |
Alex Savatieiev | 6357683 | 2019-02-27 15:46:26 -0600 | [diff] [blame] | 22 | |
Oleksandr Savatieiev | 0f77e14 | 2018-11-23 17:52:01 +0100 | [diff] [blame] | 23 | # Salt master host to connect to |
Alex | 9a4ad21 | 2020-10-01 18:04:25 -0500 | [diff] [blame] | 24 | MCP_ENV_HOST=127.0.0.1 |
Oleksandr Savatieiev | 0f77e14 | 2018-11-23 17:52:01 +0100 | [diff] [blame] | 25 | |
| 26 | # Salt master port. |
Alex Savatieiev | d48994d | 2018-12-13 12:13:00 +0100 | [diff] [blame] | 27 | # Note that you can safely execute second master (not on production) |
Oleksandr Savatieiev | 0f77e14 | 2018-11-23 17:52:01 +0100 | [diff] [blame] | 28 | # on the same cfg node with diferent port and set logging to ALL |
Alex Savatieiev | 6357683 | 2019-02-27 15:46:26 -0600 | [diff] [blame] | 29 | SALT_PORT=6969 |
Oleksandr Savatieiev | 0f77e14 | 2018-11-23 17:52:01 +0100 | [diff] [blame] | 30 | |
| 31 | # User and password to auth on master. Can be found in /srv/salt/... |
| 32 | SALT_USER=salt |
Oleksandr Savatieiev | 0f77e14 | 2018-11-23 17:52:01 +0100 | [diff] [blame] | 33 | |
| 34 | # default timeout for salt calls |
| 35 | SALT_TIMEOUT=30 |
| 36 | |
| 37 | # Folder where salt points its filesystem: salt:// |
| 38 | SALT_FILE_ROOT=/usr/share/salt-formulas/env/ |
| 39 | |
| 40 | # Subfolder with scripts to be uploaded |
| 41 | SALT_SCRIPTS_FOLDER=test_scripts |
| 42 | |
Alex | 0bcf31b | 2022-03-29 17:38:58 -0500 | [diff] [blame] | 43 | # All nodes list file overide when salt.keys request failed |
Oleksandr Savatieiev | 0f77e14 | 2018-11-23 17:52:01 +0100 | [diff] [blame] | 44 | SALT_NODE_LIST_FILE=etc/example._list |
Alex | 9a4ad21 | 2020-10-01 18:04:25 -0500 | [diff] [blame] | 45 | |
| 46 | ### K8s section |
Alex | 0bcf31b | 2022-03-29 17:38:58 -0500 | [diff] [blame] | 47 | # Kube config root when it is being looked up on remote host |
| 48 | KUBE_CONFIG_ROOT=/root |
| 49 | # Script folder to store scripts in pod |
| 50 | KUBE_SCRIPTS_FOLDER=cfg-checker-scripts |
| 51 | # Kube host's username to use when accessing it via SSH |
| 52 | KUBE_NODE_USER=mcc-user |
| 53 | # Key to use when accessing kube hosts remotely |
| 54 | KUBE_NODE_KEYPATH=/.../<project_folder>/envs/node.key |