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 #14097: Migration script to add default watch values in inventory-web.properties #1780

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ set -e
# /opt/rudder/etc/inventory-web.properties configuration file is harmless.
#
# Upgrade checks currently implemented:
# - 5.0.5 : Properties related to "incoming inventory watch"
#####################################################################################


Expand All @@ -48,4 +49,23 @@ function check_and_add_config_property {
fi
}

# 5.0.5:
# Add inventories.watcher.enable, inventories.root.directory and inventories.watcher.waitForSignatureDuration
check_and_add_config_property inventories.watcher.enable "
#
# Rudder 5.0.5 introduce a file watcher which react to new
# inventories put in \${inventories.root.directory}/incoming.
# You can (should) use the watcher by setting the property
# 'inventories.watcher.enable' to true.
# 'inventories.watcher.waitForSignatureDuration' is the time
# in seconds the watcher will wait for the signature file
# in case there is only an inventory file before sending
# only inventory to backend.
# You can start (resp. stop) the watcher with POST to API
# /api/watcher/start (resp /api/watcher/stop).
#
inventories.watcher.enable=true
inventories.root.directory=/var/rudder/inventories
inventories.watcher.waitForSignatureDuration=10
"