diff --git a/group_vars/k3s/vars.yml b/group_vars/k3s/vars.yml index 7b8527a..2837ee0 100644 --- a/group_vars/k3s/vars.yml +++ b/group_vars/k3s/vars.yml @@ -12,6 +12,7 @@ k3s: ips: - 192.168.20.21 - 192.168.20.24 + - 192.168.20.30 loadbalancer: ip: 192.168.20.22 default_port: 6443 @@ -24,4 +25,4 @@ k3s: - 192.168.20.26 - 192.168.20.27 -k3s_db_connection_string: "postgres://{{db.user}}:{{db.password}}@{{k3s.db.ip}}:{{k3s.db.default_port}}/{{db.name}}" +k3s_db_connection_string: "postgres://{{ db.user }}:{{ db.password }}@{{ k3s.db.ip }}:{{ k3s.db.default_port }}/{{ db.name }}" diff --git a/host_vars/k3s-server02.yml b/host_vars/k3s-server02.yml new file mode 100644 index 0000000..2ad33d2 --- /dev/null +++ b/host_vars/k3s-server02.yml @@ -0,0 +1,10 @@ +--- +ansible_user: "{{ user }}" +ansible_host: 192.168.20.30 +ansible_port: 22 +ansible_ssh_private_key_file: "{{ pk_path }}" +ansible_become_pass: "{{ vault.k3s.server01.sudo }}" + +host: + hostname: "k3s-server02" + ip: "{{ ansible_host }}" diff --git a/production b/production index 91b9cfa..3614d20 100644 --- a/production +++ b/production @@ -6,6 +6,7 @@ k3s-postgres k3s-loadbalancer k3s-server00 k3s-server01 +k3s-server02 k3s-agent00 k3s-agent01 k3s-agent02 @@ -13,6 +14,7 @@ k3s-agent02 [k3s_server] k3s-server00 k3s-server01 +k3s-server02 [k3s_agent] k3s-agent00 @@ -25,12 +27,14 @@ k3s-agent01 k3s-agent02 k3s-server00 k3s-server01 +k3s-server02 k3s-postgres k3s-loadbalancer [k3s_nodes] k3s-server00 k3s-server01 +k3s-server02 k3s-agent00 k3s-agent01 k3s-agent02