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 #7620: rudder-agent should trigger a new inventory after upgrade #855

Conversation

amousset
Copy link
Member

@amousset amousset commented Jan 8, 2016

if [ ${CFRUDDER_FIRST_INSTALL} -ne 1 ]
then
echo "INFO: Trigger an inventory..."
/var/rudder/cfengine-community/bin/cf-agent -KD force_inventory >> %{rudderlogdir}/install/rudder-agent.log 2>&1
Copy link
Member

Choose a reason for hiding this comment

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

I assume this will be changed to "rudder agent inventory" in versions where that command exists?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, this version is only for 2.11, it will be /opt/rudder/bin/rudder agent inventory for other versions.

Copy link
Member

Choose a reason for hiding this comment

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

Great.

jooooooon added a commit that referenced this pull request Jan 8, 2016
…igger_a_new_inventory_after_upgrade

Fixes #7620: rudder-agent should trigger a new inventory after upgrade
@jooooooon jooooooon merged commit b965767 into Normation:branches/rudder/2.11 Jan 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants