Compare commits
3 Commits
4563957e80
...
ea6ae01f76
Author | SHA1 | Date | |
---|---|---|---|
ea6ae01f76 | |||
202de6d2b4 | |||
cf0380aee4 |
17
README.md
17
README.md
@ -5,3 +5,20 @@ Ansible configs for the Skylab Homelab
|
||||
Main entrypoint is through the `ansible` script in this repository. The script sets up
|
||||
basic environment variables to avoid conflicts with other environments and sets the
|
||||
inventory.
|
||||
|
||||
Bootstrap checklist:
|
||||
|
||||
1. Install a supported operating system: [Rocky Linux](https://rockylinux.org)
|
||||
2. During installation create a user named `ansible` with any password
|
||||
3. After installation copy SSH key to the `ansible` user
|
||||
4. Enable password-less sudo access for the `ansible` user with this command:
|
||||
|
||||
```bash
|
||||
sudo tee /etc/sudoers.d/30-ansible <<<"ansible ALL=(ALL) NOPASSWD:ALL"
|
||||
```
|
||||
|
||||
5. Change the UID of the `ansible` user to `1400` with this command:
|
||||
|
||||
```bash
|
||||
sudo usermod -u 1400 ansible
|
||||
```
|
||||
|
@ -29,22 +29,23 @@ en1:
|
||||
|
||||
cluster:
|
||||
vars:
|
||||
skylab_targets: [cluster, datastore]
|
||||
skylab_roles:
|
||||
- server
|
||||
- docker-swarm-manager
|
||||
- datastore
|
||||
|
||||
hosts:
|
||||
pegasus: # jupiter
|
||||
ansible_host: 10.42.101.100
|
||||
skylab_description: Arbiter Node
|
||||
skylab_targets: [cluster, datastore]
|
||||
skylab_cluster:
|
||||
address: 10.42.101.10/24
|
||||
interface: bond0
|
||||
|
||||
saturn: # remus
|
||||
ansible_host: 10.42.101.110
|
||||
skylab_description: Operation Node
|
||||
skylab_description: Operational Node
|
||||
skylab_cluster:
|
||||
address: 10.42.101.110/24
|
||||
interface: bond0
|
||||
@ -67,8 +68,7 @@ en1:
|
||||
|
||||
orion: # romulus
|
||||
ansible_host: 10.42.101.120
|
||||
skylab_description: Operation Node
|
||||
skylab_targets: [cluster, datastore]
|
||||
skylab_description: Operational Node
|
||||
skylab_cluster:
|
||||
address: 10.42.101.12/24
|
||||
interface: bond0
|
||||
|
@ -25,7 +25,7 @@
|
||||
- name: Set hostname
|
||||
become: true
|
||||
ansible.builtin.hostname:
|
||||
name: "{{ inventory_hostname }}"
|
||||
name: "{{ skylab_networking.hostname | default(inventory_hostname) }}"
|
||||
use: systemd
|
||||
|
||||
- name: Install global bash config
|
||||
|
@ -3,13 +3,13 @@ skylab_accounts:
|
||||
- name: enpaul
|
||||
uid: 1300
|
||||
fullname: Ethan N. Paul
|
||||
targets: [cloud, network]
|
||||
targets: [network, datastore, cluster]
|
||||
admin: true
|
||||
password: $y$j9T$cWkd9aGj4sNepyJm5NVZl0$yBhFy3cN3syM8r4doGYnsLZhsaTLQVoDIBs2kkXtxY2
|
||||
|
||||
- name: ansible
|
||||
uid: 1400
|
||||
targets: [cloud, network]
|
||||
targets: [network, datastore, cluster]
|
||||
admin: true
|
||||
service: true
|
||||
password: $y$j9T$w/pIBtZIMo3PmXccZ.LHi1$AbMVIks.P10CyuK8tWt21O4JuLpKGpWTFgX0WlTbiw6
|
||||
|
Reference in New Issue
Block a user