Title: #5067: Require at least 2Gb of available RAM to install the server
Require at least 2Gb of available RAM to install the server
Verify that there is at least 2Gb of usable RAM on the system. Swap
is not considered. While swap would allow a user to minimally install
IPA it would not be a great experience.
Using any proc-based method to check for available RAM does not
work in containers unless /proc is re-mounted so use cgroups
instead. This also handles the case if the container has memory
constraints on it (-m).
Add a switch to skip this memory test if the user is sure they
know what they are doing.
NOTE: I'm not aware of a pythonic "is this in a contaner" so I rolled my
IPA is actually installable, with a CA in < 2GB of RAM but things are very tight
and the end result isn't all that useful. 2GB should be considered the absolute
minimum. This is not including swap.
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/5067/head:pr5067
git checkout pr5067