Added jumpbox with ANF mount block

This commit is contained in:
Davide Vanzo 2020-07-08 16:43:48 -05:00
Родитель 773a4d840c
Коммит 0f3094921f
2 изменённых файлов: 50 добавлений и 1 удалений

49
blocks/jumpbox-anf.json Normal file
Просмотреть файл

@ -0,0 +1,49 @@
{
"location": "variables.location",
"resource_group": "variables.resource_group",
"install_from": "jumpbox",
"admin_user": "variables.admin_user",
"variables": {
"location": "<NOT-SET>",
"resource_group": "<NOT-SET>",
"vnet_resource_group": "variables.resource_group",
"vnet_name": "hpcvnet",
"admin_user": "hpcadmin",
"image": "OpenLogic:CentOS:7.7:latest",
"jb_vm_type": "Standard_D8s_v3"
},
"vnet": {
"resource_group": "variables.vnet_resource_group",
"name": "variables.vnet_name"
},
"resources": {
"jumpbox": {
"type": "vm",
"vm_type": "variables.jb_vm_type",
"accelerated_networking": true,
"public_ip": true,
"image": "variables.image",
"subnet": "admin",
"tags": [
"jumpbox"
]
}
},
"install": [
{
"script": "disable-selinux.sh",
"tag": "jumpbox",
"sudo": true
},
{
"script": "cndefault.sh",
"tag": "jumpbox",
"sudo": true
},
{
"script": "auto_netappfiles_mount.sh",
"tag": "jumpbox",
"sudo": true
}
]
}

2
examples/cc_anf/init.sh Normal file → Executable file
Просмотреть файл

@ -3,7 +3,7 @@ block_dir=$azhpc_dir/blocks
AZHPC_CONFIG=config.json
AZHPC_VARIABLES=variables.json
blocks="$block_dir/vnet.json $block_dir/anf.json $block_dir/jumpbox.json $block_dir/cycle-install-server-managed-identity.json $block_dir/cycle-cli-local.json $block_dir/cycle-cli-jumpbox.json $azhpc_dir/examples/cc_anf/slurmcycle.json"
blocks="$block_dir/vnet.json $block_dir/anf.json $block_dir/jumpbox-anf.json $block_dir/cycle-install-server-managed-identity.json $block_dir/cycle-cli-local.json $block_dir/cycle-cli-jumpbox.json $azhpc_dir/examples/cc_anf/slurmcycle.json"
# Initialize config file
echo "{}" >$AZHPC_CONFIG