feat: variable file by env
squash
This commit is contained in:
parent
5b0ae2ddad
commit
1c199082c6
45
ansible/group_vars/VPS/VPS
Normal file
45
ansible/group_vars/VPS/VPS
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
# defaults file for ansible-arch-provissionning
|
||||||
|
partition_table:
|
||||||
|
- device: "/dev/sda"
|
||||||
|
label: gpt
|
||||||
|
settings:
|
||||||
|
- number: 1
|
||||||
|
part_end: 64MB
|
||||||
|
flags: [boot, esp]
|
||||||
|
fstype: vfat
|
||||||
|
format: yes
|
||||||
|
- number: 2
|
||||||
|
part_start: 512MB
|
||||||
|
part_end: 1524MB
|
||||||
|
flags: []
|
||||||
|
fstype: swap
|
||||||
|
format: yes
|
||||||
|
- number: 3
|
||||||
|
part_start: 1524MB
|
||||||
|
flags: [lvm]
|
||||||
|
fstype: ext4
|
||||||
|
format: yes
|
||||||
|
#- device: "/dev/sdb"
|
||||||
|
#settings:
|
||||||
|
#- number: 1
|
||||||
|
#name: home
|
||||||
|
#fstype: ext4
|
||||||
|
#format:
|
||||||
|
mount_table:
|
||||||
|
- device: "/dev/sda"
|
||||||
|
settings:
|
||||||
|
- number: 3
|
||||||
|
mountpath: /mnt
|
||||||
|
fstype: ext4
|
||||||
|
- number: 1
|
||||||
|
mountpath: /mnt/boot
|
||||||
|
fstype: vfat
|
||||||
|
|
||||||
|
#need vfat boot partition with esp label
|
||||||
|
provissionning_UEFI_Enable: True
|
||||||
|
#sssd_configure: False
|
||||||
|
nomad_datacenter: hetzner
|
||||||
|
|
||||||
|
consul_server: False
|
||||||
|
nomad_server: False
|
||||||
|
|
@ -1,11 +1,11 @@
|
|||||||
systemd_mounts:
|
systemd_mounts:
|
||||||
diskstation_nomad:
|
diskstation_nomad:
|
||||||
share: "{{ nas_ip }}:/volume2/nomad"
|
share: "{{ nas_ip }}:{{ env_default_nfs_path }}/nomad"
|
||||||
mount: /mnt/diskstation/nomad
|
mount: /mnt/diskstation/nomad
|
||||||
type: nfs
|
type: nfs
|
||||||
options:
|
options:
|
||||||
- " "
|
- " "
|
||||||
automount: true
|
automount: "{{ env_automount }}"
|
||||||
hetzner_storage:
|
hetzner_storage:
|
||||||
share: //u304977.your-storagebox.de/backup
|
share: //u304977.your-storagebox.de/backup
|
||||||
mount: /mnt/hetzner/storagebox
|
mount: /mnt/hetzner/storagebox
|
||||||
@ -16,7 +16,14 @@ systemd_mounts:
|
|||||||
- gid= 10
|
- gid= 10
|
||||||
- vers=3.0
|
- vers=3.0
|
||||||
- mfsymlinks
|
- mfsymlinks
|
||||||
automount: true
|
automount: "{{ env_automount }}"
|
||||||
|
|
||||||
|
credentials_files:
|
||||||
|
1:
|
||||||
|
type: smb
|
||||||
|
path: /etc/creds/hetzner_credentials
|
||||||
|
username: u304977
|
||||||
|
password: "{{ lookup('hashi_vault','secret=secrets/data/ansible/storage:hetzner') }}"
|
||||||
|
|
||||||
systemd_mounts_enabled:
|
systemd_mounts_enabled:
|
||||||
- diskstation_nomad
|
- diskstation_nomad
|
||||||
|
@ -1,74 +1,74 @@
|
|||||||
systemd_mounts:
|
systemd_mounts:
|
||||||
diskstation_git:
|
diskstation_git:
|
||||||
share: "{{ nas_ip }}:/volume2/git"
|
share: "{{ nas_ip }}:{{ env_default_nfs_path }}//git"
|
||||||
mount: /mnt/diskstation/git
|
mount: /mnt/diskstation/git
|
||||||
type: nfs
|
type: nfs
|
||||||
options:
|
options:
|
||||||
- " "
|
- " "
|
||||||
automount: true
|
automount: "{{ env_automount }}"
|
||||||
diskstation_CardDav:
|
diskstation_CardDav:
|
||||||
share: "{{ nas_ip }}:/volume2/CardDav"
|
share: "{{ nas_ip }}:{{ env_default_nfs_path }}/CardDav"
|
||||||
mount: /mnt/diskstation/CardDav
|
mount: /mnt/diskstation/CardDav
|
||||||
type: nfs
|
type: nfs
|
||||||
options:
|
options:
|
||||||
- " "
|
- " "
|
||||||
automount: true
|
automount: "{{ env_automount }}"
|
||||||
backup_disk:
|
backup_disk:
|
||||||
share: /dev/sdb1
|
share: /dev/sdb1
|
||||||
mount: /mnt/backup
|
mount: /mnt/backup
|
||||||
type: ntfs-3g
|
type: ntfs-3g
|
||||||
options:
|
options:
|
||||||
- " "
|
- " "
|
||||||
automount: true
|
automount: "{{ env_automount }}"
|
||||||
diskstation_home:
|
diskstation_home:
|
||||||
share: "{{ nas_ip }}:/volume2/homes/admin"
|
share: "{{ nas_ip }}:{{ env_default_nfs_path }}/homes/admin"
|
||||||
mount: /mnt/diskstation/home
|
mount: /mnt/diskstation/home
|
||||||
type: nfs
|
type: nfs
|
||||||
options:
|
options:
|
||||||
- " "
|
- " "
|
||||||
automount: true
|
automount: "{{ env_automount }}"
|
||||||
diskstation_photo:
|
diskstation_photo:
|
||||||
share: "{{ nas_ip }}:/volume2/photo"
|
share: "{{ nas_ip }}:{{ env_default_nfs_path }}/photo"
|
||||||
mount: /mnt/diskstation/photo
|
mount: /mnt/diskstation/photo
|
||||||
type: nfs
|
type: nfs
|
||||||
options:
|
options:
|
||||||
- " "
|
- " "
|
||||||
automount: true
|
automount: "{{ env_automount }}"
|
||||||
diskstation_music:
|
diskstation_music:
|
||||||
share: "{{ nas_ip }}:/volume2/music"
|
share: "{{ nas_ip }}:{{ env_default_nfs_path }}/music"
|
||||||
mount: /mnt/diskstation/music
|
mount: /mnt/diskstation/music
|
||||||
type: nfs
|
type: nfs
|
||||||
options:
|
options:
|
||||||
- " "
|
- " "
|
||||||
automount: true
|
automount: "{{ env_automount }}"
|
||||||
diskstation_media:
|
diskstation_media:
|
||||||
share: "{{ nas_ip }}:/volume1/media"
|
share: "{{ nas_ip }}:{{ env_default_nfs_path }}/media"
|
||||||
mount: /mnt/diskstation/media
|
mount: /mnt/diskstation/media
|
||||||
type: nfs
|
type: nfs
|
||||||
options:
|
options:
|
||||||
- " "
|
- " "
|
||||||
automount: true
|
automount: "{{ env_automount }}"
|
||||||
diskstation_ebook:
|
diskstation_ebook:
|
||||||
share: "{{ nas_ip }}:/volume2/ebook"
|
share: "{{ nas_ip }}:{{ env_default_nfs_path }}/ebook"
|
||||||
mount: /mnt/diskstation/ebook
|
mount: /mnt/diskstation/ebook
|
||||||
type: nfs
|
type: nfs
|
||||||
options:
|
options:
|
||||||
- " "
|
- " "
|
||||||
automount: true
|
automount: "{{ env_automount }}"
|
||||||
diskstation_archMirror:
|
diskstation_archMirror:
|
||||||
share: "{{ nas_ip }}:/volume2/archMirror"
|
share: "{{ nas_ip }}:{{ env_default_nfs_path }}/archMirror"
|
||||||
mount: /mnt/diskstation/archMirror
|
mount: /mnt/diskstation/archMirror
|
||||||
type: nfs
|
type: nfs
|
||||||
options:
|
options:
|
||||||
- " "
|
- " "
|
||||||
automount: true
|
automount: "{{ env_automount }}"
|
||||||
diskstation_nomad:
|
diskstation_nomad:
|
||||||
share: "{{ nas_ip }}:/volume2/nomad"
|
share: "{{ nas_ip }}:{{ env_default_nfs_path }}/nomad"
|
||||||
mount: /mnt/diskstation/nomad
|
mount: /mnt/diskstation/nomad
|
||||||
type: nfs
|
type: nfs
|
||||||
options:
|
options:
|
||||||
- " "
|
- " "
|
||||||
automount: true
|
automount: "{{ env_automount }}"
|
||||||
|
|
||||||
systemd_mounts_enabled:
|
systemd_mounts_enabled:
|
||||||
- diskstation_git
|
- diskstation_git
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
|
<<<<<<< HEAD
|
||||||
domain:
|
domain:
|
||||||
name: ducamps.eu
|
name: ducamps.eu
|
||||||
consul_bootstrap_expect: 3
|
consul_bootstrap_expect: 3
|
||||||
consul_domain: "consul"
|
consul_domain: "consul"
|
||||||
nomad_bootstrap_expect: 3
|
nomad_bootstrap_expect: 3
|
||||||
vault_unseal_keys_dir_output: "~/vaultUnseal/production"
|
vault_unseal_keys_dir_output: "~/vaultUnseal/production"
|
||||||
|
env_default_nfs_path: "/volume2"
|
||||||
|
env_media_nfs_path: "/volume1"
|
||||||
|
env_automount: true
|
||||||
|
@ -1,8 +1,16 @@
|
|||||||
|
<<<<<<< HEAD
|
||||||
domain:
|
domain:
|
||||||
name: ducamps-dev.win
|
name: ducamps-dev.win
|
||||||
systemd_mounts: []
|
#systemd_mounts: []
|
||||||
systemd_mounts_enabled: []
|
#systemd_mounts_enabled: []
|
||||||
consul_bootstrap_expect: 2
|
consul_bootstrap_expect: 2
|
||||||
consul_domain: "consul"
|
consul_domain: "consul"
|
||||||
nomad_bootstrap_expect: 2
|
nomad_bootstrap_expect: 2
|
||||||
vault_unseal_keys_dir_output: "~/vaultUnseal/staging"
|
vault_unseal_keys_dir_output: "~/vaultUnseal/staging"
|
||||||
|
hosts_entries:
|
||||||
|
- ip: "{{ hostvars['nas-dev']['ansible_default_ipv4']['address'] }}"
|
||||||
|
name: diskstation.ducamps.win
|
||||||
|
|
||||||
|
env_default_nfs_path: "/var/local/volume1"
|
||||||
|
env_media_nfs_path: "{{ env_default_nfs_path }}"
|
||||||
|
env_automount: false
|
||||||
|
Loading…
Reference in New Issue
Block a user