-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ansible: Move group vars to specific directory
Move the group variables from `hosts.yaml` to a specific `group_vars` directory, keeping the `hosts.yaml` file clean and simple. Moreover, this keeps the host definition from their configuration separate, making the project more maintainable. Signed-off-by: Dimitris Poulopoulos <[email protected]>
- Loading branch information
1 parent
1e7ce06
commit c6eeb74
Showing
3 changed files
with
41 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
# Ansible will SSH into managed machines as this user | ||
ansible_user: root | ||
|
||
# Local user on the control machine | ||
user: dimpo | ||
|
||
# Home directory of the local user | ||
home: /home/{{ user }} | ||
|
||
# Name of the Python virtual environment | ||
virtualenv: kubeflow-on-kvm | ||
|
||
# Path to the Ansible Python interpreter | ||
python_interpreter: | | ||
"{{ home }}/.pyenv/versions/{{ virtualenv }}/bin/python" | ||
# Password for the root user on the managed machines | ||
rootpw_hash: | | ||
$6$QDiGMXBTKPwTglrM$JJ4yRe4mw.SgPWVIOb/E/SYN5wQlRatEFR96NkHTqoBco334jh1pmulQ.Y64EAKc7KVNvepKdzWTjp5NxzjGz1 | ||
# SSH key for the root user on the managed machines | ||
ssh_key: "{{ lookup('file', '/home/{{ user }}/.ssh/id_rsa.pub') }}" | ||
|
||
# Name of the VM host | ||
vm_host: boogie | ||
|
||
# Name of the PXE server | ||
pxe_server: pxe-server | ||
|
||
# Network configuration for the PXE server | ||
dhcp_network: 192.168.122.0 | ||
dhcp_gateway: 192.168.122.1 | ||
dhcp_netmask: 255.255.255.0 | ||
dhcp_nameserver: 192.168.122.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
# libvirt VM hardware defaults | ||
vm_vcpus: 4 | ||
vm_ram_mb: 16384 | ||
vm_disk_gb: 64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters