Ansible and running multiple satnogs client 'nodes'

Greetings,

I’m seeking help with the ansible/footloose/docker satnogs-client installation using this guide.

I’d like to run multiple containers on the same computer (i7/16 GB RAM/1TB HDD running Debian Buster) instead of just one but I don’t quite understand the Ansible file syntax enough to get it working despite my many many failed attempts.

I do have a single container working running as ‘satnogs-node0’ for ground station 2134.

Here’s the part of the guide I focusing on:

Optionally: Configure footloose.yaml and production/inventory/footloose for multiple SatNOGS containers

So footloose.yaml looks like


cluster:
name: satnogs
privateKey: satnogs-key
machines:

  • count: 2
    spec:
    backend: docker
    image: quay.io/footloose/debian10
    name: node%d
    portMappings:
    - containerPort: 22
    privileged: true
    volumes:
    - type: bind
    source: /sbin/modprobe
    destination: /sbin/modprobe
    - type: bind
    source: /lib/modules/
    destination: /lib/modules/

running

footloose create

works and generate two containers but I think I am not editing the 2nd file correctly

production/inventory/footloose

The file production/inventory/footloose reads:

---
all:
  hosts:
    satnogs:
      ansible_connection: docker
      ansible_python_interpreter: "/usr/bin/env python3"
      ansible_host: 'satnogs-node0'
      ansible_user: 'root'
      ansible_ssh_private_key_file: 'satnogs-key'
      ansible_ssh_pipelining: true
satnogs-setups:
  hosts:
    satnogs:
satnogs-radios:
  hosts:
    satnogs:
hamlib-utils:
  hosts:
    satnogs:
satnogs-clients:
  hosts:
    satnogs:
snmpds:
  hosts:
    satnogs:
gpsds:
  hosts:
    satnogs:

What do I add/change to this yml code to allow 2 (3 ,4 5 …) containers to properly generated?

I’ve tried changing this to

ansible_host: ‘satnogs-node2’

and

ansible_host: ‘satnogs-node%d’

No joy. Thanks for any help you can offer.

1 Like