Merge branch 'master' of git.psi.ch:linux-infra/documentation

This commit is contained in:
2022-07-25 08:27:01 +02:00
4 changed files with 45 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ device name of the disk which should be used instead::
bob node set-attr $FQDN system_disk=md126
The default partition schema is:
The default partition schema for RHEL 7 is:
- create one primary ``/boot`` partition of 1Gb;
- create the ``vg_root`` Volume Group that uses the rest of the disk;
@@ -22,6 +22,19 @@ The default partition schema is:
- ``lv_var_log`` of 2 Gb size for ``/var/log``;
- ``lv_tmp`` of 2 Gb size for ``/tmp``.
For RHEL 8 it is:
- create one primary ``/boot`` partition of 1Gb;
- create the ``vg_root`` Volume Group that uses the rest of the disk;
- on ``vg_root`` create the following logical volumes:
- ``lv_root`` of 14 Gb size for ``/root``;
- ``lv_home`` of 2 Gb size for ``/home``;
- ``lv_var`` of 8 Gb size for ``/var``;
- ``lv_var_log`` of 3 Gb size for ``/var/log``;
- ``lv_var_tmp`` of 2 Gb size for ``/var/log``;
- ``lv_tmp`` of 2 Gb size for ``/tmp``.
To increase these sizes, you might use :doc:`vgroot::path <../puppet/profiles/vgroot>` in Hiera.
Custom Partitioning
-------------------
@@ -34,3 +47,5 @@ The ``partitions`` attribute can take two values:
If it is not possible to download the given URL the system fails-back to manual at installation time.
Please also note that no check is done on the URL content.
Note that if you want to do add partitions outside of the on the system disk (while keeping above default partitioning for it), you might use Puppet and the `lvm Puppet module <https://forge.puppet.com/modules/puppetlabs/lvm>`_ instead to define the full LVM volume group.

View File

@@ -243,6 +243,7 @@ Profiles
profiles/ssh_server.rst
profiles/sysinfo
profiles/telegraf
profiles/vgroot
profiles/web_server

View File

@@ -0,0 +1,27 @@
``profile::vgroot``
=======================
This module allows to resize logical volumes/partitions on the default volume group ``vg_root``.
If you alternatively want to control the full volume group or add an additional one, please configure in Hiera the `lvm Puppet module <https://forge.puppet.com/modules/puppetlabs/lvm>`_.
Parameters
----------
=============================== ======== ================================================
**Name** **Type** **Default**
------------------------------- -------- ------------------------------------------------
vgroot hash hiera_hash('vgroot::path')
=============================== ======== ================================================
``vgroot``
~~~~~~~~~~~
A hash containing as key the name of the volume group (``/dev/mapper/vg_root-$NAME``) to be adjusted and the volume size as value::
vgroot::path:
lv_root: 20GB
The contained file system will then automatically resized if needed.

View File

@@ -19,7 +19,7 @@ It looks like it works already a lot out of the box, but no guarantee can be giv
## Major Known Issues
- using a package snapshot tag (`yum_client::repo_tag` in hiera) different than `prod` will fail horribly
-
## Major Missing Features