Provisioning works now

This commit is contained in:
Oliver Traber 2022-05-15 02:31:41 +02:00
parent c751a1e64d
commit 60df856435
Signed by: Bluemedia
GPG key ID: C0674B105057136C
16 changed files with 84 additions and 38 deletions

1
metal/group_vars/all/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
vault.yml

View file

@ -0,0 +1,14 @@
ansible_ssh_private_key_file: ~/.ssh/id_rsa
ssh_public_key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
# Network config
subnet: "192.168.6.0"
netmask: "255.255.255.0"
gateway: "192.168.6.1"
nameserver: "192.168.6.1"
domain: "lab.bluemedia.dev"
# User config from vault
user_fullname: "{{ vault_user_fullname }}"
ansible_user: "{{ vault_ansible_user }}"
ansible_become_password: "{{ vault_ansible_become_password }}"

View file

@ -0,0 +1,4 @@
# Copy this file to vault.yml, change the values below and encrypt it using ansible-vault.
vault_user_fullname: "Lab User"
vault_ansible_user: lab
vault_ansible_become_password: "insecure" # Become password will also be the users password.