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 #14831: Clean up rudder agent check #214

Conversation

peckpeck
Copy link
Member

@peckpeck peckpeck commented May 6, 2019

@peckpeck
Copy link
Member Author

peckpeck commented May 6, 2019

Still some TODO

@peckpeck
Copy link
Member Author

peckpeck commented May 7, 2019

Commit modified

2 similar comments
@peckpeck
Copy link
Member Author

peckpeck commented May 7, 2019

Commit modified

@peckpeck
Copy link
Member Author

peckpeck commented May 7, 2019

Commit modified

# If we are using TCP, we cannot stop postgresql otherwise all infra can go down - but we can stop rudder-jetty and disable rudder agent
use_tcp=0
NB_TCP=$(grep -r "TCP" /var/rudder/cfengine-community/inputs/promises.cf | wc -l)
if [ 2 -eq "${NB_TCP}" ]; then
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this present in rudder.json?

Copy link
Member

Choose a reason for hiding this comment

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

It is, could you use it instead? It will be much more robust.

Copy link
Member

@amousset amousset left a comment

Choose a reason for hiding this comment

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

com

check_and_fix_rudder_uuid

# Once for rudder's cfengine
if [ -e "${RUDDER_CFE_DIR}/bin/cf-agent" ]
Copy link
Member

Choose a reason for hiding this comment

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

😮

@peckpeck
Copy link
Member Author

peckpeck commented May 7, 2019

Commit modified

@Normation-Quality-Assistant

OK, squash merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant force-pushed the arch_14831/clean_up_rudder_agent_check branch from 81270bb to 5c48a02 Compare May 7, 2019 09:11
@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 5c48a02 into Normation:master May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants