From bd5ba6834c429fe2e14b8d61fbd993b3f23175a3 Mon Sep 17 00:00:00 2001 From: binary Date: Fri, 20 Nov 2020 16:52:18 +0100 Subject: Simplify pubkey organisation with symlinks. --- files/pubkeys/WS-bentonite | 2 -- files/pubkeys/bentonite.pub | 2 ++ files/pubkeys/git/bentonite.pub | 1 + files/pubkeys/git/graphite.pub | 1 + files/pubkeys/root/rgoncalves.pub | 1 + inventory.yml | 71 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 76 insertions(+), 2 deletions(-) delete mode 100644 files/pubkeys/WS-bentonite create mode 100644 files/pubkeys/bentonite.pub create mode 120000 files/pubkeys/git/bentonite.pub create mode 120000 files/pubkeys/git/graphite.pub create mode 120000 files/pubkeys/root/rgoncalves.pub diff --git a/files/pubkeys/WS-bentonite b/files/pubkeys/WS-bentonite deleted file mode 100644 index 7e89f14..0000000 --- a/files/pubkeys/WS-bentonite +++ /dev/null @@ -1,2 +0,0 @@ -ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGNF3yM6iA56l9Yt87ee7D0qwNeYFqOk2pmUg2HLFXm7 git%WS-bentonite - diff --git a/files/pubkeys/bentonite.pub b/files/pubkeys/bentonite.pub new file mode 100644 index 0000000..7e89f14 --- /dev/null +++ b/files/pubkeys/bentonite.pub @@ -0,0 +1,2 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGNF3yM6iA56l9Yt87ee7D0qwNeYFqOk2pmUg2HLFXm7 git%WS-bentonite + diff --git a/files/pubkeys/git/bentonite.pub b/files/pubkeys/git/bentonite.pub new file mode 120000 index 0000000..40703f4 --- /dev/null +++ b/files/pubkeys/git/bentonite.pub @@ -0,0 +1 @@ +../bentonite.pub \ No newline at end of file diff --git a/files/pubkeys/git/graphite.pub b/files/pubkeys/git/graphite.pub new file mode 120000 index 0000000..7cfa192 --- /dev/null +++ b/files/pubkeys/git/graphite.pub @@ -0,0 +1 @@ +../graphite.pub \ No newline at end of file diff --git a/files/pubkeys/root/rgoncalves.pub b/files/pubkeys/root/rgoncalves.pub new file mode 120000 index 0000000..f869ceb --- /dev/null +++ b/files/pubkeys/root/rgoncalves.pub @@ -0,0 +1 @@ +../rgoncalves.pub \ No newline at end of file diff --git a/inventory.yml b/inventory.yml index 06fe97e..e715339 100644 --- a/inventory.yml +++ b/inventory.yml @@ -14,6 +14,18 @@ all: - 8.8.8.8 - 8.8.4.4 + packages: + zsh: "zsh" + curl: "curl" + tmux: "tmux" + wget: "wget" + figlet: "figlet" + neovim: "neovim" + pip: "pip3" + + group: + root: "root" + ansible_port: "22" ansible_python_interpreter: "/usr/bin/python3" @@ -23,9 +35,53 @@ all: # --- hosts: + # SERVER for domain controller dcontroller: + ansible_host: "dcontroller" + ip: { in: "10.10.0.1", out: "185.203.114.234" } + services: + - { name: "ssh", proto: "tcp", port: "22", public: true } + - { name: "httpd", proto: "tcp", port: "80", public: true, domain: "www" } + - { name: "wireguard", proto: "udp", port: "53", public: true } + + # SERVER for vm stack0: + ansible_host: "stack0" + ip: { in: "10.10.0.40", out: "192.168.5.40" } + services: + - { name: "ssh", proto: "tcp", port: "22" } + vms: + - { name: "vm0", iso: "alpine", memory: "6G", size: "4G", enabled: true } + - { name: "vm1", iso: "alpine", memory: "2G", size: "4G", enabled: true } + hypervisor: + enabled: "true" + interface: "bnx0" + switch: "bridge0" + gateway: "192.168.5.1" + mask: "255.255.255.0" + + # SERVER for personnal file sync emb0: + ansible_host: "emb0" + ip: { in: "10.10.0.41", out: "192.168.5.41" } + services: + - { name: "ssh", proto: "tcp", port: "22" } + - { name: "syncthing", proto: "tcp", port: "8384" } + + # VM + vm0: + ansible_host: "vm0" + ip: { in: "10.10.0.60", out: "192.168.5.60" } + services: + - { name: "ssh", proto: "tcp", port: "22" } + - { name: "minecraft", proto: "tcp, udp", port: "25565", public: true } + + vm1: + ansible_host: "vm1" + ip: { in: "10.10.0.61", out: "192.168.5.61" } + services: + - { name: "ssh", proto: "tcp", port: "22"} + - { name: "nextcloud", proto: "tcp", port: "8080", public: true, domain: "cloud" } # CLIENTS graphite: @@ -53,6 +109,21 @@ all: dcontroller: stack0: emb0: + vm0: + vm1: + + # GROUP physical + ph: + hosts: + dcontroller: + stack0: + emb0: + + # GROUP virtual machine + vm: + hosts: + vm0: + vm1: # GROUP openbsd openbsd: -- cgit v1.2.3