Browse Source

roles/lxc_guest: xfs fixed

Now xfs is working, `prepare_host.yaml` is modified to add `xfs` to
the list of modules loaded at each boot.

If module is added to that list, than is also loaded with a modprobe
handler.

If xfs is not working with `role/lxc_guest`, run the patched
`prepare_host.yaml` againg.
python3
Zolfa 4 years ago
parent
commit
cbf22c879c
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
3 changed files with 24 additions and 13 deletions
  1. +12
    -12
      MIGRATION.md
  2. +11
    -0
      prepare_host.yaml
  3. +1
    -1
      roles/lxc_guest/tasks/main.yaml

+ 12
- 12
MIGRATION.md View File

@ -18,18 +18,18 @@ On the hosts:
## Roles
| Role name | Modified? | Tested? | Production? | Notes |
|----------------------|:---------:|:--------:|:-----------:|----------------------------------------------------------------------|
|`roles/service` | **YES** | **YES** | NO | New `apt` module style for packages. |
|`roles/ssh_server` | **YES** | **YES** | NO | `lxc_ssh.py` --> `ssh_lxc.py`, multi-key support. |
|`roles/ca` | **YES** | ReadNote | NO | New `apt` module style for pacakges. Works with this [ca_manager]. |
|`prepare_host.yaml` | **YES** | **YES** | NO | Migrate Debian release to Buster and Python 2 to 3. |
|`roles/lxc_guest` | **YES** | **YES** | NO | Updated Debian and LXC. `xfs` ***broken***, `ext4` working. |
|`roles/ldap` | **YES** | **YES** | NO | `phamm.schema` now provided locally. |
|`roles/nginx` | NO | NO | NO | |
|`roles/projects` | NO | NO | NO | |
|`roles/dns_record` | NO | NO | NO | |
|`roles/openvpn` | NO | NO | NO | |
| Role name | Modified? | Tested? | Production? | Notes |
|---------------------|:---------:|:--------:|:-----------:|--------------------------------------------------------------------|
| `roles/service` | **YES** | **YES** | NO | New `apt` module style for packages. |
| `roles/ssh_server` | **YES** | **YES** | NO | `lxc_ssh.py` --> `ssh_lxc.py`, multi-key support. |
| `roles/ca` | **YES** | ReadNote | NO | New `apt` module style for pacakges. Works with this [ca_manager]. |
| `prepare_host.yaml` | **YES** | **YES** | NO | Migrate Debian release to Buster and Python 2 to 3. |
| `roles/lxc_guest` | **YES** | **YES** | NO | Updated Debian and LXC. |
| `roles/ldap` | **YES** | **YES** | NO | `phamm.schema` now provided locally. |
| `roles/nginx` | NO | NO | NO | |
| `roles/projects` | NO | NO | NO | |
| `roles/dns_record` | NO | NO | NO | |
| `roles/openvpn` | NO | NO | NO | |
## Plugins and Modules


+ 11
- 0
prepare_host.yaml View File

@ -20,6 +20,13 @@
apt:
name: xfsprogs
state: present
notify: load xfs module
- name: autoload xfs module
copy:
content: "xfs\n"
dest: /etc/modules-load.d/xfs.conf
notify: load xfs module
- name: install network bridge utilities
apt:
@ -62,6 +69,10 @@
state: restarted
- name: restart lvm
shell: /etc/init.d/lvm2 reload
- name: load xfs module
modprobe:
name: xfs
state: present
- hosts: status
roles:


+ 1
- 1
roles/lxc_guest/tasks/main.yaml View File

@ -22,7 +22,7 @@
fs_size: "{{ vm_size }}"
vg_name: "{{ vg_name | default(inventory_hostname+'vg') }}"
lv_name: "vm_{{ vm_name }}"
fs_type: ext4
fs_type: xfs
container_log: true
template: debian
template_options: --release {{ distro }} --packages=ssh,python3


Loading…
Cancel
Save