mirror of
https://github.com/BluemediaDev/homelab.git
synced 2025-05-10 14:21:35 +02:00
Provisioning works now
This commit is contained in:
parent
c751a1e64d
commit
60df856435
16 changed files with 84 additions and 38 deletions
1
metal/group_vars/all/.gitignore
vendored
Normal file
1
metal/group_vars/all/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
vault.yml
|
14
metal/group_vars/all/all.yml
Normal file
14
metal/group_vars/all/all.yml
Normal 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 }}"
|
4
metal/group_vars/all/vault.tmpl
Normal file
4
metal/group_vars/all/vault.tmpl
Normal 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.
|
Loading…
Add table
Add a link
Reference in a new issue