You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

61 lines
1.5 KiB

- name: Install containerhost for LFB BBB
hosts: containerhost
remote_user: root
become: no
vars_files: vault
vars:
extra_pkgs:
- ufw
- bc
- systemd-container
- debootstrap
- bridge-utils
- tmux
- fail2ban
guest_network: "{{ vault_guest_network }}"
static_auth_secret: "{{ vault_static_auth_secret }}"
container_image: "{{ vault_container_image }}"
HA_scalelite: "{{ vault_HA_scalelite }}"
monhost_ip: "{{ vault_monhost_ip }}"
debproxy: "{{ vault_debproxy }}"
sharedsecret: "{{ vault_sharedsecret }}"
## list of debian containers to set up:
turnserver: "turn{{ inventory_hostname | replace('b3srv', '')}}"
debcontainer:
- "{{ turnserver.split('.')[0] }}"
## Default number of BBBs on the host (use --extra-vars="max_num_bbbs=XX" to override).
## The formula is chosen in a way, that for 32 cores we deploy 4 BBBs, but for the older
## 24 core machines only 2 BBBs:
max_num_bbbs: "{{ ansible_processor_cores**2 // 240 }}"
tasks:
- import_role:
name: up2date-debian
tags:
- always
- import_role:
name: security
tags:
- on_install
- import_role:
name: prepare-containerhost
tags:
- on_install
- import_role:
name: debcontainer
- import_role:
name: bbbcontainer
- import_role:
name: monitoring
tags:
- on_install
- monitoring
- import_role:
name: munin-node
tags:
- on_install