зеркало из https://github.com/Azure/Avere.git
Azure rendering solution deployment framework
This commit is contained in:
Родитель
3a45220e9e
Коммит
dedd343fde
|
@ -39,19 +39,8 @@ variable "resourceGroupName" {
|
||||||
variable "virtualMachines" {
|
variable "virtualMachines" {
|
||||||
type = list(object(
|
type = list(object(
|
||||||
{
|
{
|
||||||
name = string
|
name = string
|
||||||
image = object(
|
imageId = string
|
||||||
{
|
|
||||||
id = string
|
|
||||||
plan = object(
|
|
||||||
{
|
|
||||||
name = string
|
|
||||||
product = string
|
|
||||||
publisher = string
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
)
|
|
||||||
machineSize = string
|
machineSize = string
|
||||||
operatingSystem = object(
|
operatingSystem = object(
|
||||||
{
|
{
|
||||||
|
@ -264,7 +253,7 @@ resource "azurerm_linux_virtual_machine" "scheduler" {
|
||||||
name = each.value.name
|
name = each.value.name
|
||||||
resource_group_name = azurerm_resource_group.scheduler.name
|
resource_group_name = azurerm_resource_group.scheduler.name
|
||||||
location = azurerm_resource_group.scheduler.location
|
location = azurerm_resource_group.scheduler.location
|
||||||
source_image_id = each.value.image.id
|
source_image_id = each.value.imageId
|
||||||
size = each.value.machineSize
|
size = each.value.machineSize
|
||||||
admin_username = each.value.adminLogin.userName
|
admin_username = each.value.adminLogin.userName
|
||||||
admin_password = data.azurerm_key_vault_secret.admin_password.value
|
admin_password = data.azurerm_key_vault_secret.admin_password.value
|
||||||
|
@ -360,7 +349,7 @@ resource "azurerm_windows_virtual_machine" "scheduler" {
|
||||||
name = each.value.name
|
name = each.value.name
|
||||||
resource_group_name = azurerm_resource_group.scheduler.name
|
resource_group_name = azurerm_resource_group.scheduler.name
|
||||||
location = azurerm_resource_group.scheduler.location
|
location = azurerm_resource_group.scheduler.location
|
||||||
source_image_id = each.value.image.id
|
source_image_id = each.value.imageId
|
||||||
size = each.value.machineSize
|
size = each.value.machineSize
|
||||||
admin_username = each.value.adminLogin.userName
|
admin_username = each.value.adminLogin.userName
|
||||||
admin_password = data.azurerm_key_vault_secret.admin_password.value
|
admin_password = data.azurerm_key_vault_secret.admin_password.value
|
||||||
|
|
|
@ -35,19 +35,8 @@ variable "resourceGroupName" {
|
||||||
variable "virtualMachineScaleSets" {
|
variable "virtualMachineScaleSets" {
|
||||||
type = list(object(
|
type = list(object(
|
||||||
{
|
{
|
||||||
name = string
|
name = string
|
||||||
image = object(
|
imageId = string
|
||||||
{
|
|
||||||
id = string
|
|
||||||
plan = object(
|
|
||||||
{
|
|
||||||
name = string
|
|
||||||
product = string
|
|
||||||
publisher = string
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
)
|
|
||||||
machine = object (
|
machine = object (
|
||||||
{
|
{
|
||||||
size = string
|
size = string
|
||||||
|
@ -204,7 +193,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "farm" {
|
||||||
name = each.value.name
|
name = each.value.name
|
||||||
resource_group_name = azurerm_resource_group.farm.name
|
resource_group_name = azurerm_resource_group.farm.name
|
||||||
location = azurerm_resource_group.farm.location
|
location = azurerm_resource_group.farm.location
|
||||||
source_image_id = each.value.image.id
|
source_image_id = each.value.imageId
|
||||||
sku = each.value.machine.size
|
sku = each.value.machine.size
|
||||||
instances = each.value.machine.count
|
instances = each.value.machine.count
|
||||||
admin_username = each.value.adminLogin.userName
|
admin_username = each.value.adminLogin.userName
|
||||||
|
@ -314,7 +303,7 @@ resource "azurerm_windows_virtual_machine_scale_set" "farm" {
|
||||||
name = each.value.name
|
name = each.value.name
|
||||||
resource_group_name = azurerm_resource_group.farm.name
|
resource_group_name = azurerm_resource_group.farm.name
|
||||||
location = azurerm_resource_group.farm.location
|
location = azurerm_resource_group.farm.location
|
||||||
source_image_id = each.value.image.id
|
source_image_id = each.value.imageId
|
||||||
sku = each.value.machine.size
|
sku = each.value.machine.size
|
||||||
instances = each.value.machine.count
|
instances = each.value.machine.count
|
||||||
admin_username = each.value.adminLogin.userName
|
admin_username = each.value.adminLogin.userName
|
||||||
|
|
|
@ -35,19 +35,8 @@ variable "resourceGroupName" {
|
||||||
variable "virtualMachines" {
|
variable "virtualMachines" {
|
||||||
type = list(object(
|
type = list(object(
|
||||||
{
|
{
|
||||||
name = string
|
name = string
|
||||||
image = object(
|
imageId = string
|
||||||
{
|
|
||||||
id = string
|
|
||||||
plan = object(
|
|
||||||
{
|
|
||||||
name = string
|
|
||||||
product = string
|
|
||||||
publisher = string
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
)
|
|
||||||
machineSize = string
|
machineSize = string
|
||||||
operatingSystem = object(
|
operatingSystem = object(
|
||||||
{
|
{
|
||||||
|
@ -181,7 +170,7 @@ resource "azurerm_linux_virtual_machine" "workstation" {
|
||||||
name = each.value.name
|
name = each.value.name
|
||||||
resource_group_name = azurerm_resource_group.workstation.name
|
resource_group_name = azurerm_resource_group.workstation.name
|
||||||
location = azurerm_resource_group.workstation.location
|
location = azurerm_resource_group.workstation.location
|
||||||
source_image_id = each.value.image.id
|
source_image_id = each.value.imageId
|
||||||
size = each.value.machineSize
|
size = each.value.machineSize
|
||||||
admin_username = each.value.adminLogin.userName
|
admin_username = each.value.adminLogin.userName
|
||||||
admin_password = data.azurerm_key_vault_secret.admin_password.value
|
admin_password = data.azurerm_key_vault_secret.admin_password.value
|
||||||
|
@ -262,7 +251,7 @@ resource "azurerm_windows_virtual_machine" "workstation" {
|
||||||
name = each.value.name
|
name = each.value.name
|
||||||
resource_group_name = azurerm_resource_group.workstation.name
|
resource_group_name = azurerm_resource_group.workstation.name
|
||||||
location = azurerm_resource_group.workstation.location
|
location = azurerm_resource_group.workstation.location
|
||||||
source_image_id = each.value.image.id
|
source_image_id = each.value.imageId
|
||||||
size = each.value.machineSize
|
size = each.value.machineSize
|
||||||
admin_username = each.value.adminLogin.userName
|
admin_username = each.value.adminLogin.userName
|
||||||
admin_password = data.azurerm_key_vault_secret.admin_password.value
|
admin_password = data.azurerm_key_vault_secret.admin_password.value
|
||||||
|
|
Загрузка…
Ссылка в новой задаче