-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #13983: Remove template in system techniques #1385
Fixes #13983: Remove template in system techniques #1385
Conversation
@@ -0,0 +1,6 @@ | |||
# Common variable for server-role system technique | |||
bundle common roles_common { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm not fancying this name - it is not so clear.
maybe server_roles_common ?
also, you are missing the license
@@ -36,6 +28,33 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
</TMLS> | |||
|
|||
<FILES> | |||
<FILE name="component-check"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are missing the file extension
Commit modified |
1d8a4ce
to
10f5c1a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are some necessary changes
"rudder_configuration_repository" | ||
string => "&CONFIGURATION_REPOSITORY_FOLDER&"; | ||
"heartbeat_interval" string => "&RUDDER_HEARTBEAT_INTERVAL&"; | ||
"rudder_node_config_id" string => "&RUDDER_NODE_CONFIG_ID&"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you align them all ? Or at least add a bit of consistency (davuser and davpw could be aligned with uuid)
@@ -19,13 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
<SYSTEM>true</SYSTEM> | |||
|
|||
<TMLS> | |||
<TML name="monitoring" /> | |||
<TML name="cf-serverd"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need to add common here
@@ -38,7 +38,8 @@ body copy_from remote(server, path) | |||
purge => "true"; | |||
copy_backup => "false"; | |||
community_edition:: | |||
portnumber => "&COMMUNITYPORT&"; | |||
# TODO why isn't this a constant ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you remove this todo ?
"relay_sync_method" string => "&RELAY_SYNC_METHOD&"; | ||
"relay_sync_promises" string => "&RELAY_SYNC_PROMISES&"; | ||
"relay_sync_sharedfiles" string => "&RELAY_SYNC_SHAREDFILES&"; | ||
"cmdb_endpoint" string => "&CMDBENDPOINT&"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you also align these ?
@@ -59,18 +59,18 @@ bundle agent generic_alive_check(app) | |||
|
|||
pass3.root_server:: | |||
|
|||
"any" usebundle => rudder_common_report("server-roles", "result_success", "&TRACKINGKEY&", "Check ${app} status", "None", "The ${site_to_check} web interface is running"), | |||
"any" usebundle => rudder_common_report("server-roles", "result_success", "${roles_common.directiveId}", "Check ${app} status", "None", "The ${site_to_check} web interface is running"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be rudder_roles_common
@@ -71,13 +71,13 @@ bundle agent root_component_check | |||
"any" usebundle => root_password_restart_jetty; | |||
|
|||
!role_rudder_server_root:: | |||
"any" usebundle => rudder_common_report("${technique_name}", "result_na", "&TRACKINGKEY&", | |||
"any" usebundle => rudder_common_report("${technique_name}", "result_na", "${roles_common.directiveId}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be rudder_roles_common
@@ -0,0 +1,6 @@ | |||
# Common variable for server-role system technique | |||
bundle common rudder_roles_common { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you used roles_common everywhere, can you pick either one ?
Commit modified |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two minor remarks, but this is great !
"davuser" string => "&DAVUSER&"; | ||
"davpw" string => "&DAVPASSWORD&"; | ||
"rudder_configuration_repository" | ||
string => "&CONFIGURATION_REPOSITORY_FOLDER&"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not aligning this one ? :(
@@ -110,10 +110,10 @@ bundle agent check_cron_daemon | |||
"any" usebundle => _classes_success("service_restart_${service_name}"); | |||
|
|||
pass3.!aix:: | |||
"any" usebundle => rudder_common_reports_generic("Common", "service_restart_${service_name}", "&TRACKINGKEY&", "CRON Daemon", "None", "Cron daemon status"); | |||
"any" usebundle => rudder_common_reports_generic("Common", "service_restart_${service_name}", "${system_common.directiveId}", "CRON Daemon", "None", "Cron daemon status"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it still a .st ?
if you replace it with a .cf, you ought to replace & by &
Commit modified |
This is awesome !!! Thank you |
This PR is not mergeable to upper versions. |
OK, squash merging this PR |
6cb767d
to
8c83e75
Compare
OK, merging this PR |
https://issues.rudder.io/issues/13983