diff --git a/examples/setup_server_plugin_service.py b/examples/setup_server_plugin_service.py
index cef7ece..c6a3a8a 100644
--- a/examples/setup_server_plugin_service.py
+++ b/examples/setup_server_plugin_service.py
@@ -106,7 +106,7 @@ def main():
log_level = logging.DEBUG
# get path to put log file in:
- log_filename = os.path.join(invoke_folder, "serversettings.log")
+ log_filename = os.path.join(invoke_folder, "setup_server_plugin_service.log")
print(f"Log File Path: {log_filename}")
@@ -173,37 +173,71 @@ def main():
InstallPluginService_id = int(
bes_conn.session_relevance_string(
- 'unique value of ids of fixlets whose(name of it contains "Install BES Server Plugin Service" AND exists applicable computers of it) of bes sites whose(name of it = "BES Support")'
+ 'unique value of ids of fixlets whose(name of it contains "Install BES Server Plugin Service") of bes sites whose(name of it = "BES Support")'
)
)
- # print(InstallPluginService_id)
- BES_SourcedFixletAction = f"""\
-
-
+ logging.info(
+ "Install BES Server Plugin Service content id: %s", InstallPluginService_id
+ )
+
+ ConfigureCredentials_id = int(
+ bes_conn.session_relevance_string(
+ 'unique value of ids of fixlets whose(name of it contains "Configure REST API credentials for BES Server Plugin Service") of bes sites whose(name of it = "BES Support")'
+ )
+ )
+
+ logging.info(
+ "Configure REST API credentials for BES Server Plugin Service content id: %s",
+ ConfigureCredentials_id,
+ )
+
+ # NOTE: Work in progress
+ XML_String_MultiActionGroup = f"""
+
+
+ Setup Server Plugin Service
+ exists main gather service
+
+ install initscripts
+
+ // start
+wait dnf -y install initscripts
+// End
+
+ true
+
+
BES Support
{InstallPluginService_id}
Action1
-
- {root_id}
-
-
- true
- P10D
- true
-
-
-
- """
-
- if InstallPluginService_id > 0:
- # create action to setup server plugin service:
- action_result = bes_conn.post("actions", BES_SourcedFixletAction)
- print(action_result)
-
- # NOTE: Work in progress
+
+
+
+ BES Support
+ {ConfigureCredentials_id}
+ Action1
+
+ {args.user}
+
+
+
+
+ true
+ P7D
+
+
+ {root_id}
+
+
+"""
+
+ # create action to setup server plugin service:
+ action_result = bes_conn.post("actions", XML_String_MultiActionGroup)
+
+ logging.info(action_result)
logging.info("----- Ending Session ------")
print("main() End")