Module: check_mk
Branch: master
Commit: b877d818fea0f71acfb79b0582c8421b35e8028b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b877d818fea0f7…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Sep 14 14:46:37 2018 +0200
6616 Add --no-tmpfs option to "omd create"
It's now possible to disable the temporary filesystem usage during
site creation.
Change-Id: I9588598560c9772ae7b88f55f5a45b1dfd131d4a
---
.werks/6616 | 11 +++++++++++
omd/packages/omd/omd | 5 +++++
omd/packages/omd/omd.8 | 5 +++++
3 files changed, 21 insertions(+)
diff --git a/.werks/6616 b/.werks/6616
new file mode 100644
index 0000000..9143f84
--- /dev/null
+++ b/.werks/6616
@@ -0,0 +1,11 @@
+Title: Add --no-tmpfs option to "omd create"
+Level: 1
+Component: omd
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1536929140
+Class: feature
+
+It's now possible to disable the temporary filesystem usage during
+site creation.
diff --git a/omd/packages/omd/omd b/omd/packages/omd/omd
index e88118e..a4daa44 100644
--- a/omd/packages/omd/omd
+++ b/omd/packages/omd/omd
@@ -2705,6 +2705,10 @@ def main_create(args, options=None):
config_settings["AUTOSTART"] = "off"
sys.stdout.write("Going to set AUTOSTART to off.\n")
+ if "no-tmpfs" in options:
+ config_settings["TMPFS"] = "off"
+ sys.stdout.write("Going to set TMPFS to off.\n")
+
if "no-init" not in options:
admin_password = init_site(config_settings, options)
welcome_message(admin_password)
@@ -4208,6 +4212,7 @@ commands = [
( "no-init", "n", False, "leave new site directory empty
(a later omd init does this"),
( "no-autostart", "A", False, "set AUTOSTART to off
(useful for test sites)"),
( "apache-reload", False, False, "Issue a reload of the system
apache instead of a restart"),
+ ( "no-tmpfs", None, False, "set TMPFS to off"),
( "tmpfs-size", "t", True, "specify the maximum size of
the tmpfs (defaults to 50% of RAM), examples: 500M, 20G, 60%"),
],
"Create a new site (-u UID, -g GID)",
diff --git a/omd/packages/omd/omd.8 b/omd/packages/omd/omd.8
index c3b6d6d..dd9e28a 100644
--- a/omd/packages/omd/omd.8
+++ b/omd/packages/omd/omd.8
@@ -102,6 +102,11 @@ the system Apache (/omd/apache/SITE.conf will be empty).
\fB--apache-reload\fP Issue a reaload of the apache process instead of the default
restart
+\fB--no-tmpfs\fP Use this to set the omd config option TMPFS to off during site
creation.
+This may be useful when sites are set-up where the use of temporary filesystems is not
+possible. However, it is still highly recommended to use a tmpfs for the sites \fBtmp\fP
+directory for best performance.
+
\fB-t SIZE\fP By default the tmpfs of the site is created to allocate 50% of
the available RAM at max. When providing the \fB-t\fP option together with the SIZE
given as absolute value of e.g. \fB500M\fP or percentage value like \fB10%\fP the