Skip to content
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 #21784: add a default value for syslog facility output for agent and server compontent #4486

Conversation

ncharles
Copy link
Member

@ncharles ncharles requested a review from fanf September 19, 2022 11:53
@@ -8,7 +8,8 @@
},
"server": {
"cf_serverd_bind_address": "::"
}
},
"syslog_facility": "LOG_LOCAL3"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"syslog_facility": "LOG_LOCAL3"
"agent_syslog_facility": "LOG_LOCAL3"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC it is only a setting for the agent

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it's for agent only, it should be "agent": { "syslog_facility" : "LOG_LOCAL3" }

If it's for both, it seems worthy to have a "log" category, it seems common enough to be useful. I'm not sure why but I would prefer to minimize number of top level props.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's for both cf-agent and cf-serverd

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, for now we will put it in log, and we will try to split / make it more granular if we want/can in further releases:

{ ...
"log": { "syslog_facility" : "LOG_LOCAL3" }
...
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pr updated

@ncharles
Copy link
Member Author

PR updated with a new commit

@Normation-Quality-Assistant
Copy link
Contributor

This PR is not mergeable to upper versions.
Since it is "Ready for merge" you must merge it by yourself using the following command:
rudder-dev merge https://github.com/Normation/rudder/pull/4486
-- Your faithful QA
Kant merge: "Happiness is not an ideal of reason, but of imagination."
(https://ci.normation.com/jenkins/job/merge-accepted-pr/60022/console)

@fanf
Copy link
Member

fanf commented Sep 21, 2022

OK, squash merging this PR

@fanf fanf force-pushed the ust_21784/add_a_default_value_for_syslog_facility_output_for_agent_and_server_compontent branch from 47585c5 to f3196fd Compare September 21, 2022 15:03
@fanf fanf merged commit f3196fd into Normation:branches/rudder/7.1 Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants