mirror of
https://github.com/fscotto/infra.git
synced 2026-09-27 19:03:47 +00:00
Add Rocky 9 Atlas NAS profile
This commit is contained in:
32
ansible/inventory/group_vars/platform_rocky.yml
Normal file
32
ansible/inventory/group_vars/platform_rocky.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
platform_profile: rocky
|
||||
platform_family: redhat
|
||||
platform_package_manager: dnf
|
||||
platform_service_manager: systemd
|
||||
|
||||
rocky_openzfs_release_rpm: https://zfsonlinux.org/epel/zfs-release-3-0.el9.noarch.rpm
|
||||
rocky_syncthing_version: 2.1.3
|
||||
rocky_syncthing_archive_checksum: sha256:f929eb8e5b72a85543eeeefb2c38f34a68e0c530e70758a2905b78840c76602c
|
||||
rocky_syncthing_archive_url: >-
|
||||
{{
|
||||
'https://github.com/syncthing/syncthing/releases/download/v'
|
||||
~ rocky_syncthing_version
|
||||
~ '/syncthing-linux-amd64-v'
|
||||
~ rocky_syncthing_version
|
||||
~ '.tar.gz'
|
||||
}}
|
||||
|
||||
enabled_services:
|
||||
- firewalld
|
||||
|
||||
rocky_packages_base:
|
||||
- cockpit
|
||||
- dnf-plugins-core
|
||||
- firewalld
|
||||
- nfs-utils
|
||||
- openssh-server
|
||||
- policycoreutils-python-utils
|
||||
- rsync
|
||||
- samba
|
||||
- sudo
|
||||
- zfs
|
||||
50
ansible/inventory/host_vars/atlas.yml
Normal file
50
ansible/inventory/host_vars/atlas.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
---
|
||||
# Replace every CHANGEME value before enabling Atlas storage management.
|
||||
hostname: atlas
|
||||
ansible_host: CHANGEME_ATLAS_HOST
|
||||
ansible_user: "{{ atlas_connection_username }}"
|
||||
ansible_port: 22
|
||||
ansible_ssh_private_key_file: CHANGEME_ATLAS_SSH_PRIVATE_KEY_PATH
|
||||
|
||||
atlas_admin_username: CHANGEME_ATLAS_ADMIN
|
||||
atlas_connection_username: "{{ atlas_admin_username }}"
|
||||
atlas_admin_group: "{{ atlas_admin_username }}"
|
||||
atlas_admin_home: "/home/{{ atlas_admin_username }}"
|
||||
atlas_admin_uid: 1000
|
||||
atlas_admin_gid: 1000
|
||||
atlas_admin_ssh_keys: "{{ vault_atlas_authorized_ssh_keys | default([]) }}"
|
||||
atlas_admin_password_hash: "{{ vault_atlas_admin_password_hash | default('!') }}"
|
||||
|
||||
atlas_lan_subnet: CHANGEME_LAN_SUBNET
|
||||
atlas_manage_firewall: false
|
||||
atlas_firewalld_zone: public
|
||||
atlas_zfs_pool: CHANGEME_ZFS_POOL
|
||||
atlas_zfs_dataset_work: work
|
||||
atlas_zfs_dataset_syncthing: syncthing
|
||||
atlas_zfs_dataset_backup_prometheus: backup_prometheus
|
||||
atlas_zfs_dataset_icloud_photos: icloud_photos
|
||||
atlas_mount_root: /CHANGEME_ATLAS_MOUNT_ROOT
|
||||
atlas_manage_storage: false
|
||||
|
||||
atlas_nfs_exports:
|
||||
- path: "{{ atlas_work_mountpoint }}"
|
||||
clients: "{{ atlas_lan_subnet }}(rw,sync,no_subtree_check,root_squash)"
|
||||
|
||||
atlas_samba_share_name: work
|
||||
atlas_samba_workgroup: WORKGROUP
|
||||
atlas_samba_valid_users:
|
||||
- "{{ atlas_admin_username }}"
|
||||
atlas_samba_password: "{{ vault_atlas_samba_password | default('') }}"
|
||||
|
||||
atlas_firewalld_rich_rules:
|
||||
- 'rule family="ipv4" source address="{{ atlas_lan_subnet }}" service name="ssh" accept'
|
||||
- 'rule family="ipv4" source address="{{ atlas_lan_subnet }}" service name="cockpit" accept'
|
||||
- 'rule family="ipv4" source address="{{ atlas_lan_subnet }}" port port="2049" protocol="tcp" accept'
|
||||
- 'rule family="ipv4" source address="{{ atlas_lan_subnet }}" service name="samba" accept'
|
||||
|
||||
host_enabled_services:
|
||||
- sshd
|
||||
- cockpit.socket
|
||||
- nfs-server
|
||||
- smb
|
||||
- zfs.target
|
||||
@@ -16,6 +16,10 @@ all:
|
||||
platform_freebsd:
|
||||
hosts: {}
|
||||
|
||||
platform_rocky:
|
||||
hosts:
|
||||
atlas:
|
||||
|
||||
void:
|
||||
children:
|
||||
platform_void:
|
||||
@@ -24,6 +28,10 @@ all:
|
||||
children:
|
||||
platform_fedora:
|
||||
|
||||
rocky:
|
||||
children:
|
||||
platform_rocky:
|
||||
|
||||
graphical_desktop:
|
||||
hosts:
|
||||
ikaros:
|
||||
|
||||
Reference in New Issue
Block a user