From e62679830b10c54d3aa3093b2348f71932d5cde2 Mon Sep 17 00:00:00 2001 From: Enrico Vianello Date: Tue, 6 Aug 2024 18:14:32 +0200 Subject: [PATCH] Add CGSI GSOAP setting on FE --- data/frontend-defaults.yaml | 1 + manifests/frontend.pp | 6 +++++- templates/etc/sysconfig/storm-frontend-server.erb | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/data/frontend-defaults.yaml b/data/frontend-defaults.yaml index 0b33dec..b45945d 100644 --- a/data/frontend-defaults.yaml +++ b/data/frontend-defaults.yaml @@ -1,5 +1,6 @@ --- storm::frontend::storm_frontend_server_conf_file: '' +storm::frontend::cgsi_trace: false storm::frontend::db_user: 'storm' storm::frontend::db_passwd: 'storm' storm::frontend::port: 8444 diff --git a/manifests/frontend.pp b/manifests/frontend.pp index e41e31a..c3aadf8 100644 --- a/manifests/frontend.pp +++ b/manifests/frontend.pp @@ -68,6 +68,9 @@ # @param log_debuglevel [String] # Logging level. Possible values are: ERROR, WARN, INFO, DEBUG, DEBUG2. Default value: INFO. # +# @param cgsi_trace [Boolean] +# Enable CGSI trace on '/tmp/tracefile'. Default: false +# class storm::frontend ( String $storm_frontend_server_conf_file, @@ -93,9 +96,10 @@ String $log_debuglevel, + Boolean $cgsi_trace, + String $be_xmlrpc_host = $fqdn, String $db_host = $be_xmlrpc_host, - ) { contain storm::frontend::install contain storm::frontend::config diff --git a/templates/etc/sysconfig/storm-frontend-server.erb b/templates/etc/sysconfig/storm-frontend-server.erb index b565d1e..d812e07 100644 --- a/templates/etc/sysconfig/storm-frontend-server.erb +++ b/templates/etc/sysconfig/storm-frontend-server.erb @@ -7,4 +7,9 @@ X509_USER_KEY=/etc/grid-security/storm/hostkey.pem LD_LIBRARY_PATH=<%=@ld_library_path%> +<%- if scope.lookupvar('storm::frontend::cgsi_trace') -%> +CGSI_TRACE=1 +CGSI_TRACEFILE=/tmp/tracefile +<%- end -%> + CONFIGURATION_FILE=/etc/storm/frontend-server/storm-frontend-server.conf \ No newline at end of file