Skip to content

Commit 58ac3be

Browse files
authored
Merge pull request #296 from lae/develop
Release 1.9.2
2 parents 28f5cfb + 3b619ef commit 58ac3be

File tree

4 files changed

+39
-11
lines changed

4 files changed

+39
-11
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ With clustering enabled, this role does (or allows you to do) the following:
2525
- Setup Ceph on a PVE cluster
2626
- Create and manage high availability groups
2727

28+
WARNING: Support for servers provisioned using the Proxmox ISO installer is limited. Use Debian as your base.
29+
2830
## Support/Contributing
2931

3032
For support or if you'd like to contribute to this role but want guidance, feel
@@ -57,8 +59,8 @@ Copy the following playbook to a file like `install_proxmox.yml`:
5759
- clock.nyc.he.net
5860
- role: lae.proxmox
5961
vars:
60-
- pve_group: all
61-
- pve_reboot_on_kernel_update: true
62+
pve_group: all
63+
pve_reboot_on_kernel_update: true
6264

6365
Install this role and a role for configuring NTP:
6466

@@ -905,6 +907,7 @@ It can be later removed by unsetting this role variable.
905907
## Troubleshooting
906908

907909
### The APT installation of proxmox-ve no longer responds, Ansible aborts, the SSH session stops.
910+
908911
Add this section to your ``ansible.cfg``.
909912

910913
```yaml
@@ -913,6 +916,19 @@ ssh_args = -o ServerAliveInterval=20
913916
```
914917
[Reference Issue](https://github.com/lae/ansible-role-proxmox/issues/279)
915918

919+
### Proxmox doesn't boot/does not update GRUB config correctly.
920+
921+
There is no known issue for this, however the following error message is silently ignored because of a false positive on certain systems using ZFS:
922+
923+
```
924+
$ sudo update-grub
925+
<...>
926+
/usr/sbin/grub-probe: error: unknown filesystem.
927+
<...>
928+
```
929+
930+
While this error is outside the scope of this role to fix, please open an issue with details if this ignore masks a true positive for your system.
931+
916932
## Developer Notes
917933

918934
When developing new features or fixing something in this role, you can test out

handlers/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,10 @@
3939
- name: update-grub
4040
command: update-grub
4141
register: _pve_grub_update
42-
failed_when: ('error' in _pve_grub_update.stderr)
42+
failed_when: >-
43+
'error' in (
44+
_pve_grub_update.stderr_lines |
45+
reject('equalto', '/usr/sbin/grub-probe: error: unknown filesystem.') |
46+
join('\n')
47+
)
4348
tags: skiponlxc

tasks/main.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@
132132
name: os-prober
133133
state: absent
134134

135+
- ansible.builtin.import_tasks: remove_enterprise_repos.yml
136+
when:
137+
- "'pve-no-subscription' in pve_repository_line"
138+
135139
- name: Add Proxmox repository
136140
apt_repository:
137141
repo: "{{ pve_repository_line }}"
@@ -195,14 +199,7 @@
195199
until: _proxmox_install is succeeded
196200

197201
- block:
198-
- name: Remove automatically installed PVE Enterprise repo configuration
199-
apt_repository:
200-
repo: "{{ item }}"
201-
filename: pve-enterprise
202-
state: absent
203-
with_items:
204-
- "deb https://enterprise.proxmox.com/debian {{ ansible_distribution_release }} pve-enterprise"
205-
- "deb https://enterprise.proxmox.com/debian/pve {{ ansible_distribution_release }} pve-enterprise"
202+
- ansible.builtin.import_tasks: remove_enterprise_repos.yml
206203

207204
- name: Remove subscription check wrapper function in web UI
208205
ansible.builtin.lineinfile:

tasks/remove_enterprise_repos.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
- name: Remove automatically installed PVE Enterprise repo configuration
2+
ansible.builtin.apt_repository:
3+
repo: "{{ item }}"
4+
filename: pve-enterprise
5+
state: absent
6+
update_cache: false
7+
with_items:
8+
- "deb https://enterprise.proxmox.com/debian {{ ansible_distribution_release }} pve-enterprise"
9+
- "deb https://enterprise.proxmox.com/debian/pve {{ ansible_distribution_release }} pve-enterprise"
10+
- "deb https://enterprise.proxmox.com/debian/ceph-quincy {{ ansible_distribution_release }} enterprise"

0 commit comments

Comments
 (0)