root / trunk / python / ciab_common_vars.py @ 53
Historique | Voir | Annoter | Télécharger (1,78 ko)
1 | 4 | storres | # Common configuration variables
|
---|---|---|---|
2 | 4 | storres | #
|
3 | 4 | storres | commonVariables = { |
4 | 4 | storres | |
5 | 4 | storres | 'CLUSTER_DOMAIN_NAME' :'ciab.lip.ens-lyon.fr', |
6 | 4 | storres | 'CLUSTER_STATIC_NETWORK_PREFIX' :'192.168.1', |
7 | 4 | storres | 'COMPUTE_NODE_BRIDGE' :'internal', |
8 | 4 | storres | 'COMPUTE_NODE_CPUS_FILE' :'compute-nodes-cpus', |
9 | 4 | storres | 'COMPUTE_NODE_DISK_MOUNT_POINT' :'/mnt/compute-node-system-disk', |
10 | 4 | storres | 'COMPUTE_NODE_KERNEL' :'/boot/vmlinuz-`uname -r`', |
11 | 4 | storres | 'COMPUTE_NODE_RAMDISK' :'/boot/initrd.img-`uname -r`', |
12 | 4 | storres | 'COMPUTE_NODE_MAC_ADDRESS_PREFIX' :'00:16:3E:0F:6A', |
13 | 4 | storres | 'COMPUTE_NODE_MAX_NUM' :'250', |
14 | 4 | storres | 'COMPUTE_NODE_MEMORY' :'3072', |
15 | 4 | storres | 'COMPUTE_NODE_MODEL_STATIC_NETWORK_POSTFIX' :'252', |
16 | 4 | storres | 'COMPUTE_NODE_MODEL_NAME' :'compute-node-model', |
17 | 4 | storres | 'COMPUTE_NODE_NAME_PREFIX' :'compute-node-', |
18 | 4 | storres | 'COMPUTE_NODE_NUM' :'3', |
19 | 4 | storres | 'COMPUTE_NODE_VCPUS' :'2', |
20 | 4 | storres | 'DHCP_HOSTSFILE_BASENAME' :'dhcp-hostsfile', |
21 | 4 | storres | 'FRONT_END_STATIC_NETWORK_POSTFIX' :'251', |
22 | 4 | storres | 'FRONT_END_NAME' :'frontend', |
23 | 4 | storres | 'HOSTS_FILE_BASENAME' :'hosts', |
24 | 4 | storres | 'SWAP_DISK_LOGICAL_VOLUME' :'/dev/vg_guests', |
25 | 4 | storres | 'SWAP_DISK_POSTFIX' :'-swap', |
26 | 4 | storres | 'SWAP_DISK_PREFIX' :'compute-node-', |
27 | 4 | storres | 'SWAP_DISK_SIZE' :'1G', |
28 | 4 | storres | 'SYSTEM_DISK_CLONE_POSTFIX' :'-disk', |
29 | 4 | storres | 'SYSTEM_DISK_CLONE_SIZE' :'20G', # Half of the master size. |
30 | 4 | storres | 'SYSTEM_DISK_FILE_SYSTEM' :'ext3', |
31 | 4 | storres | 'SYSTEM_DISK_LOGICAL_VOLUME' :'/dev/vg_guests', |
32 | 4 | storres | 'TEMPLATES_DIR' :'templates', |
33 | 4 | storres | 'USERS_HOME_DISK' :'users-home-disk', |
34 | 4 | storres | 'USERS_HOME_DISK_SIZE' :'40G', |
35 | 4 | storres | } |
36 | 4 | storres | commonVariables['COMPUTE_NODE_STATIC_NETWORK_PREFIX'] = \
|
37 | 4 | storres | commonVariables['CLUSTER_STATIC_NETWORK_PREFIX']
|
38 | 4 | storres | commonVariables['SYSTEM_DISK_CLONE_PREFIX'] = \
|
39 | 4 | storres | commonVariables['COMPUTE_NODE_NAME_PREFIX']
|
40 | 4 | storres | commonVariables['SYSTEM_DISK_MASTER'] = \
|
41 | 4 | storres | commonVariables['SYSTEM_DISK_LOGICAL_VOLUME'] + \
|
42 | 4 | storres | '/compute-node-model-disk'
|
43 | 4 | storres | |
44 | 4 | storres | def main(): |
45 | 4 | storres | for key in sorted(commonVariables.keys()): |
46 | 4 | storres | print key, ' = ', commonVariables[key] |
47 | 4 | storres | |
48 | 4 | storres | if __name__ == "__main__": |
49 | 4 | storres | main() |