diff --git a/packer/azurehpc-lustre-2.12.5.json b/packer/azurehpc-lustre-2.12.5.json new file mode 100644 index 0000000..94aec15 --- /dev/null +++ b/packer/azurehpc-lustre-2.12.5.json @@ -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 + } + ] +}