packer script for the marketplace lustre

This commit is contained in:
Paul Edwards 2021-09-08 09:46:18 +01:00
Родитель 8e2d92951d
Коммит f8bf9daace
1 изменённых файлов: 44 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,44 @@
{
"builders": [
{
"type": "azure-arm",
"subscription_id": "{{user `var_subscription_id`}}",
"tenant_id": "{{user `var_tenant_id`}}",
"client_id": "{{user `var_client_id`}}",
"client_secret": "{{user `var_client_secret`}}",
"image_publisher": "OpenLogic",
"image_offer": "CentOS",
"image_sku": "7_8",
"image_version": "7.8.2020111300",
"managed_image_resource_group_name": "{{user `var_resource_group`}}",
"managed_image_name": "{{user `var_image`}}",
"os_type": "Linux",
"vm_size": "Standard_D8s_v3",
"ssh_pty": "true",
"build_resource_group_name": "{{user `var_resource_group`}}"
}
],
"provisioners": [
{
"type": "file",
"source": "lustre-setup-scripts",
"destination": "/tmp"
},
{
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'",
"inline": [
"chmod +x /tmp/lustre-setup-scripts/*.sh",
"/tmp/lustre-setup-scripts/disable-selinux.sh",
"/tmp/lustre-setup-scripts/additional-pkgs.sh",
"/tmp/lustre-setup-scripts/lfsrepo.sh 2.12.5",
"/tmp/lustre-setup-scripts/lfspkgs.sh",
"rm -rf /tmp/lustre-setup-scripts",
"yum -y install https://azurehpc.azureedge.net/rpms/lemur-azure-hsm-agent-2.0.0-lustre_2.12.x86_64.rpm https://azurehpc.azureedge.net/rpms/lemur-azure-data-movers-2.0.0-lustre_2.12.x86_64.rpm",
"/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"
],
"inline_shebang": "/bin/sh -x",
"type": "shell",
"skip_clean": true
}
]
}