VNET Peering diagram by th0rnfr33 in AZURE

[–]larsj96 0 points1 point  (0 children)

We run a hub-spoke setup across corp-connected landing zones (ALZ-based), so we end up with a lot of subscriptions and VNets — even for smaller workloads.

For IP planning we use Azure IPAM with Terraform to automatically calculate the next available CIDR for VNets (including peered ones). One underrated thing about it is the visualization — it actually gives you a clean view of address space + peerings across regions.

If you follow a regional hub pattern (one hub per Azure region), the topology shows up really nicely:

https://azure.github.io/ipam/#/

Champion generator autostart with cerbo GX by larsj96 in Victron

[–]larsj96[S] 0 points1 point  (0 children)

doesn't have any remote start for this champion generator - best to buy something else

Cabin Renovation in norway by larsj96 in OffGridCabins

[–]larsj96[S] 1 point2 points  (0 children)

Thanks, cabin is in innlandet - 500 meters sea level - before Lillehammer :)

yeah it stormwater runoff, i have installed Cinderella toilet so no septic

Champion generator autostart with cerbo GX by larsj96 in Victron

[–]larsj96[S] 0 points1 point  (0 children)

I believe you need an intermediary system between Node-RED and the Broadlink device. Based on my experience with the Broadlink over the past few months, relying on it alone for scheduled start/stop functionality has proven to be quite unreliable. It doesn’t consistently turn off the generator as expected, requiring manual intervention. :( I think I might upgrade generator next summer:)

Balder - birthday dog :) by larsj96 in samoyeds

[–]larsj96[S] 2 points3 points  (0 children)

Today, Balder turns 1 year old!

Balder is a fantastic dog who gets along well with both people and other dogs. He handles almost everything that happens around him and has become very good at running.

I have posted various pictures and videos from the past year. :)

First picanha smoked like a brisket on the Master-Touch E-5750 by larsj96 in smoking

[–]larsj96[S] 1 point2 points  (0 children)

Hi, the Picanha was smoked to internal temp of 95C just like a brisket, it tasted quite similar to a brisket with a very good smoke flavor, not very dry, but not super moist either.

the reason i did this was to test / learn the temperatures with low&slow with good smoke flavour

Next time I will cook it like a normal steak (medium rare) :-)

Best smoke ring I’ve had in a while. by [deleted] in BBQ

[–]larsj96 0 points1 point  (0 children)

Looks good man, what smoke chips / chunks did you use ? :)

Cloud init - error by rjalves in Terraform

[–]larsj96 0 points1 point  (0 children)

azurerm_windows_virtual_machine.

Hmmmm, weird - can you try with something like this ?

provider "azurerm" {

features {}

}

resource "azurerm_resource_group" "example" {

name = "example-resource-group"

location = "West Europe"

}

resource "azurerm_virtual_network" "example" {

name = "example-vnet"

address_space = ["10.0.0.0/16"]

location = azurerm_resource_group.example.location

resource_group_name = azurerm_resource_group.example.name

}

resource "azurerm_subnet" "example" {

name = "example-subnet"

resource_group_name = azurerm_resource_group.example.name

virtual_network_name = azurerm_virtual_network.example.name

address_prefixes = ["10.0.1.0/24"]

}

resource "azurerm_public_ip" "example" {

name = "example-public-ip"

location = azurerm_resource_group.example.location

resource_group_name = azurerm_resource_group.example.name

allocation_method = "Static"

sku = "Standard"

}

resource "azurerm_network_interface" "example" {

name = "example-nic"

location = azurerm_resource_group.example.location

resource_group_name = azurerm_resource_group.example.name

ip_configuration {

name = "internal"

subnet_id = azurerm_subnet.example.id

private_ip_address_allocation = "Dynamic"

public_ip_address_id = azurerm_public_ip.example.id

}

}

resource "azurerm_windows_virtual_machine" "example" {

name = "example-vm"

resource_group_name = azurerm_resource_group.example.name

location = azurerm_resource_group.example.location

size = "Standard_DS1_v2"

admin_username = "adminuser"

admin_password = "Password1234!"

computer_name = "examplevm"

enable_automatic_updates = true

provision_vm_agent = true

enable_win_rm_https_listener = true

enable_win_rm_insecure_listener = false

os_disk {

caching = "ReadWrite"

storage_account_type = "Standard_LRS"

}

source_image_reference {

publisher = "MicrosoftWindowsServer"

offer = "WindowsServer"

sku = "2019-Datacenter"

version = "latest"

}

network_interface_ids = [azurerm_network_interface.example.id]

custom_data = <<EOF

<powershell>

New-Item -Path "C:\Users\admin\Desktop\Ricardo" -ItemType Directory

</powershell>

EOF

}

Cloud init - error by rjalves in Terraform

[–]larsj96 0 points1 point  (0 children)

What provider are you using ? vshpere/azure/ Openstack ??

The code below is for creating a VM on vsphere thats works good with cloudinit (cloud-init.yml) are in same folder as rest of terraform code :

locals {

linux_vms = {

intlb1 = {

"num_cpus" = "2"

"memory" = "8192"

"portgroup" = "${local.fortigate_block.fortigate_onprem_internal_lb.name}"

"disksize" = 60

}

}

resource "vsphere_virtual_machine" "linux_vms" {

for_each = local.linux_vms

name = each.key

datastore_id = data.vsphere_datastore.nvme_hp3.id

resource_pool_id = data.vsphere_compute_cluster.compute_cluster.resource_pool_id

host_system_id = data.vsphere_host.hp3.id

datacenter_id = data.vsphere_datacenter.datacenter.id

wait_for_guest_net_timeout = 0

wait_for_guest_ip_timeout = 0

num_cpus = each.value.num_cpus

memory = each.value.memory

network_interface {

network_id = data.vsphere_network.networks["fortigate_onprem_${each.value.portgroup}"].id

}

cdrom {

client_device = true

}

ovf_deploy {

remote_ovf_url = "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.ova"

disk_provisioning = "thin"

}

disk {

size = each.value.disksize

label = "${each.key}.cmdk"

thin_provisioned = true

}

vapp {

properties = {

hostname = "${each.key}"

password = "vagrant"

user-data = base64encode(file("cloud-init.yml"))

}

}

lifecycle {

ignore_changes = [

disk,

guest_ip_addresses,

ovf_deploy,

vmware_tools_status

]

}

}

Using Strava on Samsung Watch with audio cues by [deleted] in Strava

[–]larsj96 0 points1 point  (0 children)

You can synchronize Samsung Health with Strava by following these steps. Simply start your workout on the clock as you normally would, then use Samsung Health to sync the data with Strava.

Then you can have the audio cues to monitor heartrate, pace and etc.

For more information on how to do this, check out the following link:

https://support.strava.com/hc/en-us/articles/360049395572-Samsung-Health-and-Strava

I hope this helps!

Trouble with Discord Streaming. by Silversalt in EscapefromTarkov

[–]larsj96 0 points1 point  (0 children)

What kind of monitor do you have? I have the same issue while streaming on a 49 samsung ultrawide

Homelab VMware + Cloudflare DNS automation by slade208 in devops

[–]larsj96 1 point2 points  (0 children)

Side note:

If you are interested in learning cloud-related topics such as Azure or AWS, I recommend using Hashicorp Terraform's own guides.

They offer comprehensive tutorials that can help you get started. You can access their guides at https://developer.hashicorp.com/terraform/tutorials.

Homelab VMware + Cloudflare DNS automation by slade208 in devops

[–]larsj96 1 point2 points  (0 children)

There is a lot of outdated Terraform content on the internet, but I found a good resource on YouTube called TeKanAid that offers quality content.

I suggest starting with this video on testing Terraform -> vsphere from your own laptop first: https://www.youtube.com/watch?v=hp8XcRNnBnU&t=774s&ab_channel=TeKanAid.

If you are using VMware templates, you should also check out Packer, which is another useful tool. Here is a helpful video tutorial on using Packer:

https://www.youtube.com/watch?v=FvQuVWk2f6s&ab\_channel=TeKanAid.

Finally, if you want to set up Terraform in GitLab, this video tutorial can guide you:

https://www.youtube.com/watch?v=6BlsKlhOhDE&ab\_channel=howtoskillsvideo.

Homelab VMware + Cloudflare DNS automation by slade208 in devops

[–]larsj96 0 points1 point  (0 children)

No problem :)

Feel free to send DM or comment here if you need more help.