Konubinix' opinionated web of thoughts

Trying to Install Nomad in My Macos

Fleeting

nomad

My stack is composed of several rpi connected using tinc.

Something like this:

digraph {
    rpi1 -> rpi2 [label="tinc"]
    rpi2 -> rpi3 [label="tinc"]
    rpi3 -> rpi4 [label="tinc"]
    rpi4 -> rpi5 [label="tinc"]
    rpi5 -> rpi1 [label="tinc"]
}

Each one of those rpi runs nomad, with a docker engine running the jobs.

digraph G {
    subgraph cluster_rpi1 {
        label = "rpi1"
        nomad1
        docker1
    }
    subgraph cluster_rpi2 {
        label = "rpi2"
        nomad2
        docker2
    }
    nomad1 -> docker1 [label="provides address to listen to using network_interface"]
    nomad2 -> docker2 [label="provides address to listen to using network_interface"]
    nomad1 -> nomad2 [label="tinc", dir="both", style="dotted"]
    docker1 -> docker2 [label="tinc", dir="both", style="dotted"]
}

Now, when I want to put the mac into all of this.

digraph G {
    subgraph cluster_mac {
        label = "docker, bound to 192.168.10.1"
        label = "mac"
        nomad1
        subgraph cluster_docker {
            label = "linux virtual machine, bound to 192.168.10.2, not able to bind to tinc"
            docker1 [label="docker1, unable to bind to 192.168.10.1", color="red"]
        }
    }
    subgraph cluster_rpi2 {
        label = "rpi2"
        nomad2
        docker2
    }
    nomad1 -> docker1 [label="provides address 192.168.10.1 to listen to using network_interface"]
    nomad2 -> docker2 [label="provides address to listen to using network_interface"]
    nomad1 -> nomad2 [label="tinc", dir="both", style="dotted"]
    docker1 -> docker2 [label="unable to use tinc", dir="both", style="dotted", color="red"]
}

I can try running nomad in the virtual machine.

digraph G {
    subgraph cluster_mac {
        label = "mac"
        subgraph cluster_docker {
            label = "linux virtual machine"
            nomad1
            docker1
        }
    }
    subgraph cluster_rpi2 {
        label = "rpi2"
        nomad2
        docker2
    }
    nomad1 -> docker1 [label="provides address 192.168.10.2 to listen to using network_interface"]
    nomad2 -> docker2 [label="provides address to listen to using network_interface"]
    nomad1 -> nomad2 [label="tinc", style="dotted"]
    nomad2 -> nomad1 [label="unable to discuss via tinc", style="dotted", color="red"]
    docker1 -> docker2 [label="tinc", style="dotted"]
    docker2 -> docker1 [label="unable to use tinc", style="dotted", color="red"]
}