Prep for lnd, update packages + make hashi stuff a little more generic

This commit is contained in:
Amarpreet Minhas 2021-01-07 20:01:52 -05:00
parent b7fd16cc81
commit a06971afc4
7 changed files with 25 additions and 6 deletions

View file

@ -2,12 +2,15 @@
# main
main_dc_name: columbia
# hashicorp defaults
hashi_arch: amd64
# consul
consul_version: 1.8.4
consul_version: 1.9.1
consul_domain: masked.name
# vault
vault_version: 1.5.2
vault_version: 1.6.1
vault_pki_policy: masked-dot-name
vault_ca_cert_name: MaskedName_Root_CA.crt
vault_ca_cert_payload: |
@ -56,9 +59,12 @@ vault_ca_cert_payload: |
-----END CERTIFICATE-----
# nomad
nomad_version: 0.12.5
nomad_version: 1.0.1
nomad_podman_driver_version: 0.1.0
# podman
podman_version: 2.0.6+dfsg1-2
podman_version: 2.1.1+dfsg1-4
# lnd
lnd_version: v0.12.0-beta.rc3
...

View file

@ -0,0 +1,5 @@
---
hashi_arch: arm
consul_arch: armhfv6
lnd_arch: armv7
...

View file

@ -3,12 +3,16 @@ fatman.minhas.io
ivyking.minhas.io
ranger.minhas.io
sedan.minhas.io
redwingcherokee.minhas.io
[consul_server]
fatman.minhas.io
ivyking.minhas.io
sedan.minhas.io
[lnd]
redwingcherokee.minhas.io
[nexus]
ivyking.minhas.io

View file

@ -14,10 +14,12 @@
- name: install default packages
apt:
name:
- acl
- dbus
- git
- htop
- inxi
- make
- ncdu
- netcat
- ntp
@ -27,6 +29,7 @@
- sysstat
- tmux
- tree
- unzip
- vim
state: present

View file

@ -25,7 +25,7 @@
- name: get vault
unarchive:
src: "https://releases.hashicorp.com/vault/{{ vault_version }}/vault_{{ vault_version }}_linux_amd64.zip"
src: "https://releases.hashicorp.com/vault/{{ vault_version }}/vault_{{ vault_version }}_linux_{{ hashi_arch }}.zip"
dest: /usr/local/bin/
mode: 0755
owner: root

View file

@ -1,3 +1,4 @@
---
consul_config_path: /etc/consul.d
consul_arch: '{{ hashi_arch }}'
...

View file

@ -55,7 +55,7 @@
- name: get consul
unarchive:
src: "https://releases.hashicorp.com/consul/{{ consul_version }}/consul_{{ consul_version }}_linux_amd64.zip"
src: "https://releases.hashicorp.com/consul/{{ consul_version }}/consul_{{ consul_version }}_linux_{{ consul_arch }}.zip"
dest: /usr/local/bin/
mode: 0755
owner: root