<commit_before>provider "vix" {
    product = "fusion"
    verify_ssl = false
}

/*
resource "vix_vswitch" "vmnet10" {
    nat = true
    dhcp = true
    range = "192.168.1.0/24"
    host_access = true
}
*/

resource "vix_vm" "ubuntu" {
    description = "Terraform VMWARE VIX manual test"

    image {
        url = "https://github.com/c4milo/dobby-boxes/releases/download/alpha/coreos-alpha-vmware.box"
        // If image is encrypted we need to provide credentials
        username = "test"
        password = "<PASSWORD>"
    }

    cpus = 2
    memory = "1g"
    networks = [
        //"vmnet10", 
        "bridged", 
        //"nat"
    ]

    provisioner "remote-exec" {
        inline = [
            "sudo apt-get -y update",
            "sudo apt-get -y install nginx",
            "sudo service nginx start",<commit_msg>There should be count to spin up more than one virtual machine from the same resource<commit_after>provider "vix" {
    product = "fusion"
    verify_ssl = false
}

/*
resource "vix_vswitch" "vmnet10" {
    nat = true
    dhcp = true
    range = "192.168.1.0/24"
    host_access = true
}
*/

resource "vix_vm" "ubuntu" {
    description = "Terraform VMWARE VIX manual test"

    image {
        url = "https://github.com/c4milo/dobby-boxes/releases/download/alpha/coreos-alpha-vmware.box"
        // If image is encrypted we need to provide credentials
        username = "test"
        password = "<PASSWORD>"
    }

    cpus = 2
    memory = "1g"
    networks = [
        //"vmnet10", 
        "bridged", 
        //"nat"
    ]

    count = 1

    provisioner "remote-exec" {
        inline = [
            "sudo apt-get -y update",
            "sudo apt-get -y install nginx",
            "sudo service nginx start",
{'fraction_non_alphanumeric': 0.12164477441462021, 'fraction_numerical': 0.019988577955454025, 'mean_word_length': 1.9395973154362416, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1124672', 'n_tokens_mistral': 621, 'n_tokens_neox': 572, 'n_words': 148}