Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P486
graph.tf
Active
Public
Actions
Authored by
ardumont
on Aug 1 2019, 5:40 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
System administration
Compressed graph service
Subscribers
seirl
variable
"region"
{
type
=
"string"
default
=
"northeurope"
}
resource
"azurerm_resource_group" "euwest-graph"
{
name
=
"euwest-graph"
location
=
"${var.region}"
tags
{
environment
=
"SWH Graph"
}
}
resource
"azurerm_network_interface" "graph-interface"
{
name
=
"graph"
location
=
"westeurope"
resource_group_name
=
"${azurerm_resource_group.euwest-graph.name}"
network_security_group_id
=
"${data.azurerm_network_security_group.worker-nsg.id}"
ip_configuration
{
name
=
"graphNicConfiguration"
subnet_id
=
"${data.azurerm_subnet.default.id}"
public_ip_address_id
=
""
private_ip_address_allocation
=
"Dynamic"
}
tags
{
environment
=
"SWH Graph"
}
}
resource
"azurerm_virtual_machine" "graph-server"
{
name
=
"graph0"
location
=
"${var.region}"
resource_group_name
=
"euwest-vault"
network_interface_ids
=
[
"${azurerm_network_interface.graph-interface.id}"
]
vm_size
=
"Standard_H16m_Promo"
storage_image_reference
{
publisher
=
"credativ"
offer
=
"Debian"
sku
=
"9"
version
=
"latest"
}
storage_os_disk
{
name
=
"graph0-osdisk"
caching
=
"ReadWrite"
create_option
=
"FromImage"
}
os_profile
{
computer_name
=
"graph0"
admin_username
=
"${var.user_admin}"
}
os_profile_linux_config
{
disable_password_authentication
=
true
ssh_keys
{
path
=
"/home/${var.user_admin}/.ssh/authorized_keys"
key_data
=
"${var.ssh_key_data}"
}
}
tags
{
environment
=
"SWH Graph"
}
}
Event Timeline
ardumont
created this paste.
Aug 1 2019, 5:40 PM
2019-08-01 17:40:50 (UTC+2)
ardumont
added projects:
System administration
,
Compressed graph service
.
ardumont
added a subscriber:
seirl
.
Log In to Comment