From 448356f36f71eb0cb794156fd39ce1d335da1ca3 Mon Sep 17 00:00:00 2001 From: Konrad Bucheli Date: Fri, 22 Jul 2022 10:03:56 +0200 Subject: [PATCH 1/5] currently no major issues --- rhel8/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhel8/index.md b/rhel8/index.md index 3fd990b6..47bc21a4 100644 --- a/rhel8/index.md +++ b/rhel8/index.md @@ -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 From 9c8da903dd6a1327df8d9d41450ab3b90571eb88 Mon Sep 17 00:00:00 2001 From: Konrad Bucheli Date: Fri, 22 Jul 2022 15:46:36 +0200 Subject: [PATCH 2/5] document vgroot puppet module --- admin-guide/puppet/modules.rst | 1 + admin-guide/puppet/profiles/vgroot.rst | 27 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 admin-guide/puppet/profiles/vgroot.rst diff --git a/admin-guide/puppet/modules.rst b/admin-guide/puppet/modules.rst index 1cc425ef..18cba66d 100644 --- a/admin-guide/puppet/modules.rst +++ b/admin-guide/puppet/modules.rst @@ -243,6 +243,7 @@ Profiles profiles/ssh_server.rst profiles/sysinfo profiles/telegraf + profiles/vgroot profiles/web_server diff --git a/admin-guide/puppet/profiles/vgroot.rst b/admin-guide/puppet/profiles/vgroot.rst new file mode 100644 index 00000000..dd5ef577 --- /dev/null +++ b/admin-guide/puppet/profiles/vgroot.rst @@ -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 `_. + + +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. From 8c7db2bdf47b0d42feb52ecbce2e2af8b68daec9 Mon Sep 17 00:00:00 2001 From: Konrad Bucheli Date: Fri, 22 Jul 2022 16:08:53 +0200 Subject: [PATCH 3/5] document vgroot puppet module and RHEL8 default partition sizes --- admin-guide/deployment/partitioning.rst | 17 ++++++++++++++++- admin-guide/puppet/profiles/vgroot.rst | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/admin-guide/deployment/partitioning.rst b/admin-guide/deployment/partitioning.rst index d354e06c..4ce7667b 100644 --- a/admin-guide/deployment/partitioning.rst +++ b/admin-guide/deployment/partitioning.rst @@ -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 <../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 `_ instead to define the full LVM volume group. diff --git a/admin-guide/puppet/profiles/vgroot.rst b/admin-guide/puppet/profiles/vgroot.rst index dd5ef577..2aef1811 100644 --- a/admin-guide/puppet/profiles/vgroot.rst +++ b/admin-guide/puppet/profiles/vgroot.rst @@ -19,7 +19,7 @@ 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. +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 From f17656a5fe1aad36f0d940c1bebaa24f0c0dd169 Mon Sep 17 00:00:00 2001 From: Konrad Bucheli Date: Fri, 22 Jul 2022 16:14:03 +0200 Subject: [PATCH 4/5] document vgroot puppet module --- admin-guide/deployment/partitioning.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-guide/deployment/partitioning.rst b/admin-guide/deployment/partitioning.rst index 4ce7667b..2afa1b60 100644 --- a/admin-guide/deployment/partitioning.rst +++ b/admin-guide/deployment/partitioning.rst @@ -34,7 +34,7 @@ For RHEL 8 it is: - ``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 <../profiles/vgroot>` in Hiera. +To increase these sizes, you might use :doc:`vgroot::path <../puppet/profiles/vgroot>` in Hiera. Custom Partitioning ------------------- From 924ab867a3c4759e20e8b26b464549b845e8cc06 Mon Sep 17 00:00:00 2001 From: Konrad Bucheli Date: Fri, 22 Jul 2022 16:27:35 +0200 Subject: [PATCH 5/5] document vgroot puppet module --- admin-guide/puppet/profiles/vgroot.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-guide/puppet/profiles/vgroot.rst b/admin-guide/puppet/profiles/vgroot.rst index 2aef1811..a0a8539b 100644 --- a/admin-guide/puppet/profiles/vgroot.rst +++ b/admin-guide/puppet/profiles/vgroot.rst @@ -12,7 +12,7 @@ Parameters =============================== ======== ================================================ **Name** **Type** **Default** ------------------------------- -------- ------------------------------------------------ -vgroot hash hiera_hash('vgroot::path') +vgroot hash hiera_hash('vgroot::path') =============================== ======== ================================================