Skip to content

Commit

Permalink
fix: os_disk_size variable for pve1, missing k8s-services-db mount (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
lholota authored Nov 8, 2023
1 parent 85db4e6 commit 0d5e839
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 31 deletions.
1 change: 1 addition & 0 deletions environments/prod/group_vars/gluster_nodes/mounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ gluster_tls_certificate_validity_days: 7300

gluster_volume_mounts:
- k8s-services
- k8s-services-db
- k8s-monitoring
- k8s-nvr
2 changes: 1 addition & 1 deletion environments/prod/host_vars/pve1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pve_vm_machines:
shutdown_timeout_seconds: 120
nic_bridge: vmbr0
os_storage: local-zfs
os_disk_size: 128
os_disk_size: 128G
cpu_type: "cputype=host,flags=+aes"
cpu_count: 2
cpu_cores_per_cpu: 20
Expand Down
8 changes: 8 additions & 0 deletions playbooks/proxmox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@
name: homecentr.system.zfs_configuration
tags: [ usbhid-quirk ]

- name: Configure local storage
ansible.builtin.import_role:
name: homecentr.proxmox.pve_local_storage
tags: [ vm, pve-storage ]
vars:
pve_local_storage_api_user: root@pam
pve_local_storage_api_password: "{{ users_root_password }}"

- name: Flush handlers before starting the VMs
ansible.builtin.meta: flush_handlers

Expand Down
4 changes: 0 additions & 4 deletions roles/pve_virtual_machines/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
name: python3-proxmoxer
state: present

- name: Enable snippets in local storage
ansible.builtin.include_tasks:
file: snippets.yml

- name: Download installation cloud images
ansible.builtin.include_tasks:
file: images.yml
Expand Down
25 changes: 0 additions & 25 deletions roles/pve_virtual_machines/tasks/snippets.yml

This file was deleted.

2 changes: 1 addition & 1 deletion roles/pve_virtual_machines/tasks/vm.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- name: Create cloud-init config
ansible.builtin.copy:
dest: "{{ pve_virtual_machines_local_storage.proxmox_storages[0].path }}/snippets/{{ vm.vmid }}.yml"
dest: "{{ hostvars[inventory_hostname].pve_local_storage_path }}/snippets/{{ vm.vmid }}.yml"
owner: root
group: root
mode: 0640
Expand Down

0 comments on commit 0d5e839

Please sign in to comment.