From cc7f8f72ff406622fb8405eea26b3d05967f2ae9 Mon Sep 17 00:00:00 2001 From: jgstew Date: Thu, 9 May 2024 16:03:52 -0400 Subject: [PATCH] add comments --- examples/serversettings.cfg | 4 +++- examples/serversettings.py | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/serversettings.cfg b/examples/serversettings.cfg index 8f1e776..f7729f8 100644 --- a/examples/serversettings.cfg +++ b/examples/serversettings.cfg @@ -1,4 +1,6 @@ - +# this file is modeled after the clientsettings.cfg but for bigfix server admin fields +# see the script that uses this file here: +# https://github.com/jgstew/besapi/blob/master/examples/serversettings.py passwordComplexityDescription=Passwords must contain 12 characters or more, both uppercase and lowercase letters, and at least 1 digit. passwordComplexityRegex=(?=.*[[:lower:]])(?=.*[[:upper:]])(?=.*[[:digit:]]).{12,} disableNmoManualGroups = 1 diff --git a/examples/serversettings.py b/examples/serversettings.py index 016e745..63d0b44 100644 --- a/examples/serversettings.py +++ b/examples/serversettings.py @@ -1,6 +1,9 @@ """ Set server settings like clientsettings.cfg +See example serversettings.cfg file here: +- https://github.com/jgstew/besapi/blob/master/examples/serversettings.cfg + requires `besapi`, install with command `pip install besapi` Example Usage: @@ -55,6 +58,8 @@ def get_invoke_folder(): def get_config(path="serversettings.cfg"): """load config from ini file""" + # example config: https://github.com/jgstew/besapi/blob/master/examples/serversettings.cfg + if not (os.path.isfile(path) and os.access(path, os.R_OK)): path = os.path.join(invoke_folder, path)