Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: OS_disk_size variable for pve1 #33

Merged
merged 5 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading