зеркало из https://github.com/Azure/sterling.git
fixing cloud-init files for errors
This commit is contained in:
Родитель
ea824b6542
Коммит
f53f66fc61
|
@ -8,13 +8,6 @@ runcmd:
|
|||
- export VM_NAME=${virtualMachineName}
|
||||
- export ANF_ACCOUNT_NAME=${anfAccountName}
|
||||
- export ANF_POOL_NAME=${anfPoolName}
|
||||
- #export DB2_VM_PREFIX=${db2vmprefix}
|
||||
- #export INSTALLER_STORAGEACCOUNT_NAME=${installerStorageAccountName}
|
||||
- #export INSTALLER_STORAGECONTAINER_NAME=${installerContainerName}
|
||||
- #export INSTALLER_SAS_TOKEN="${installerSASToken}"
|
||||
- #export DB2_INSTALLER_ARCHIVE_FILENAME=${db2InstallerArchiveName}
|
||||
- #export DB2_DATABASE_NAME=${db2DatabaseName}
|
||||
- #export DB2_SCHEMA_NAME=${db2SchemaName}
|
||||
- export BRANCH_NAME=${branchName}
|
||||
- mkdir ~/.azure/
|
||||
- echo '{"subscriptionId":"${subscriptionID}","clientId":"${clientID}","clientSecret":"${clientSecret}","tenantId":"${tenantID}","resourceGroup":"${resourceGroupName}"}' > ~/.azure/osServicePrincipal.json
|
||||
|
@ -29,13 +22,6 @@ runcmd:
|
|||
- sudo tar -xvf /tmp/azcopy.tar.gz -C /tmp
|
||||
- sudo mv /tmp/azcopy_linux* /tmp/azcopy
|
||||
- sudo sed -i 's/enforcing/disabled/g' /etc/selinux/config /etc/selinux/config
|
||||
- #sudo parted /dev/sdb --script mklabel gpt mkpart xfspart xfs 0% 100%
|
||||
- #sudo mkfs.xfs /dev/sdb1
|
||||
- #sudo partprobe /dev/sdb1
|
||||
- #sudo mkdir /db2data
|
||||
- #sudo mount /dev/sdb1 /db2data
|
||||
- #FSTAB="$(blkid | grep sdb1 | awk '$0=$2' | sed 's/"//g') /db2data xfs defaults,nofail 1 2"
|
||||
- #sudo su -c "echo $fstab >> /etc/fstab"
|
||||
- [ wget, -nv, "https://raw.githubusercontent.com/Azure/sterling/${branchName}/config/db2/configure-db2-anf-storage.sh", -O, /tmp/install-db2-from-storageaccount.sh ]
|
||||
- chmod +x /tmp/install-db2-from-storageaccount.sh
|
||||
- sudo -E /tmp/install-db2-from-storageaccount.sh
|
|
@ -1,9 +1,6 @@
|
|||
#cloud-config
|
||||
|
||||
runcmd:
|
||||
- #export INSTALLER_STORAGEACCOUNT_NAME=${installerStorageAccountName}
|
||||
- #export INSTALLER_STORAGECONTAINER_NAME=${installerContainerName}
|
||||
- #export INSTALLER_SAS_TOKEN="${installerSASToken}"
|
||||
- #export MQ_INSTALLER_ARCHIVE_FILENAME=${mqInstallerArchiveName}
|
||||
- sudo yum update
|
||||
- sudo yum install -y nfs-utils
|
||||
- sudo yum install -y java-1.8.0-openjdk
|
||||
|
@ -16,7 +13,4 @@ runcmd:
|
|||
- sudo useradd app
|
||||
- sudo wget https://aka.ms/downloadazcopy-v10-linux -O /tmp/azcopy.tar.gz
|
||||
- sudo tar -xvf /tmp/azcopy.tar.gz -C /tmp
|
||||
- sudo mv /tmp/azcopy_linux* /tmp/azcopy
|
||||
- #[ wget, -nv, "https://raw.githubusercontent.com/Azure/sterling/${branchName}/config/installers/install-mq-from-storageaccount.sh", -O, /tmp/install-mq-from-storageaccount.sh ]
|
||||
- #chmod +x /tmp/install-mq-from-storageaccount.sh
|
||||
- #sudo -E /tmp/install-mq-from-storageaccount.sh
|
||||
- sudo mv /tmp/azcopy_linux* /tmp/azcopy
|
|
@ -3,7 +3,7 @@
|
|||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"branchName": {
|
||||
"value": "main"
|
||||
"value": "anfurgiu/init"
|
||||
},
|
||||
"omsNamespace":{
|
||||
"value": "oms"
|
||||
|
|
Загрузка…
Ссылка в новой задаче