Skip to content

Commit

Permalink
Pre package_manager reconstruction
Browse files Browse the repository at this point in the history
  • Loading branch information
aybarsm committed Nov 27, 2024
1 parent 82d438c commit 9aa53e5
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 7 deletions.
6 changes: 5 additions & 1 deletion roles/network/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ network__hosts_all: "{{ network__all | selectattr('entry__type', 'eq', 'host') |
# Sort hosts by hostname to avoid unneccessary changes
network__hosts_all_ipv4: "{{ network__hosts_all | selectattr('ip', 'ansible.utils.ipv4') | sort(attribute='hostname') }}"
network__hosts_all_ipv6: "{{ network__hosts_all | selectattr('ip', 'ansible.utils.ipv6') | sort(attribute='hostname') }}"
##### END: network hosts vars
##### END: network hosts vars

##### BEGIN: network iptables vars
network__iptables_all: "{{ network__all | selectattr('entry__type', 'eq', 'iptables') }}"
##### END: network iptables vars
21 changes: 21 additions & 0 deletions roles/proxmox/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
proxmox__role_enabled: false

proxmox__repo_url_enterprise: https://enterprise.proxmox.com/debian
proxmox__repo_url_no_subscription: http://download.proxmox.com/debian
proxmox__repo_keys:
bookworm:
url: https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg
keyring: /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
bullseye:
url: https://enterprise.proxmox.com/debian/proxmox-release-bullseye.gpg
keyring: /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg

proxmox__purpose_names: ['pve', 'pbs', 'pmg', 'ceph_pacific', 'ceph_quincy', 'ceph_reef', 'zfs']
proxmox__purpose_types: ['enterprise', 'no-subscription']
proxmox__purpose_packages:
pve: ['pve-manager']
pbs: ['proxmox-backup-server']
pmg: ['proxmox-mailgateway']
ceph_pacific: ['ceph', 'ceph-common', 'ceph-mds', 'ceph-fuse']
ceph_quincy: ['ceph', 'ceph-common', 'ceph-mds', 'ceph-fuse']
ceph_reef: ['ceph', 'ceph-common', 'ceph-mds', 'ceph-fuse']
zfs: ['zfsutils-linux', 'zfs-initramfs', 'zfs-zed']

proxmox__clusters: {}

proxmox__use_only: ['host', 'group', 'default']
Expand Down
12 changes: 6 additions & 6 deletions roles/proxmox/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@
# - proxmox__role_enabled | default(false) | bool
# - (proxmox__ssl_certificate | default(undef(), true)) is defined or (proxmox__ssl_key | default(undef(), true)) is defined

- name: Include Proxmox datacenter tasks
ansible.builtin.include_tasks:
file: datacenter/datacenter.yml
when:
- proxmox__role_enabled
- __proxmox__cluster.init | default('', true) == inventory_hostname
# - name: Include Proxmox datacenter tasks
# ansible.builtin.include_tasks:
# file: datacenter.yml
# when:
# - proxmox__role_enabled
# - __proxmox__cluster.init | default('', true) == inventory_hostname

# - name: Include Proxmox QEMU tasks
# ansible.builtin.include_tasks:
Expand Down

0 comments on commit 9aa53e5

Please sign in to comment.