Manage definitions files
OpsCenter ships with a set of definitions files that can be updated independently of OpsCenter itself. These definitions files allow OpsCenter to support newer versions of DataStax Enterprise (DSE) without requiring you to upgrade your OpsCenter version.
By default, OpsCenter automatically downloads updated definitions files when they become available.
You can also manually update definitions files.
To fetch updated definitions files, the opscenterd process checks a central server located at opscenter.datastax.com.
If an update is found, the definitions_files.tgz file is downloaded and stored in the OpsCenter /definitions directory.
An internet connection is required for automatic updates of the definitions files. If the OpsCenter host has no internet access, see Manually update definitions files for offline OpsCenter hosts.
Automatic definitions updates are logged at INFO in the opscenterd.log file.
If you need to troubleshoot an issue with definitions files, set the log level to DEBUG for more verbose messages.
Configuration properties for definitions files
Configuration options for definitions files are set in the [definitions] section of the opscenterd.conf file.
Use these options to configure the following:
-
Whether to use SSL for connections to the definitions files server.
-
Use a custom definitions files host, such as an internal repository or local mirror repository.
-
Change the name of the tarball file that is downloaded from the definitions files server.
-
Change the hash file used to determine if the definitions files requires an update.
Definitions files directory
Definitions files are stored in the /definitions directory for your OpsCenter installation.
The location of this directory depends on your installation type and configuration:
-
The default location for package installations is
/var/lib/opscenter/definitions. -
The default location for tarball installations is
INSTALL_DIRECTORY/definitions. -
To set a custom location, use the
definitions_dirproperty in the[definitions]section ofopscenterd.conf.
Modify the update interval
OpsCenter checks for updated definitions files every hour by default.
To change this interval, modify the sleep option in the [definitions] section of opscenterd.conf.
The sleep value is the number of seconds to wait between checks.
The following example sets the update interval to 7200 seconds (2 hours):
[definitions]
sleep = 7200
Disable automatic updates of definitions files
To disable automatic updates of definitions files, set the auto_update property to False in the [definitions] section of opscenterd.conf:
[definitions]
auto_update = False
Manually update definitions files with the OpsCenter API
You can manually trigger definitions updates using the OpsCenter API, whether or not automatic updates are enabled:
-
Check for definitions files updates, and, if any are available, download them:
curl -X GET http://my.opscenter.host:8888/rc/definition/updateThe response is
trueif an update was found and downloaded. The response isfalseif no update was found. -
Restart OpsCenter to apply the updated definitions.
Manually update definitions files for offline OpsCenter hosts
If the OpsCenter host is airgapped, use an online machine to download the definitions tarball, and then manually load the definitions files onto the airgapped machine:
-
On a machine that has internet access, download the definitions tarball for your version of OpsCenter.
For example, to download the definitions tarball for version 6.8.39:
https://opscenter.datastax.com/definitions/6.8.39/definitions_files.tgz -
Transfer the tarball to the airgapped OpsCenter host according to your organization’s policies for file transfers to airgapped servers.
-
Remove any existing files in the
/definitionsdirectory. -
Unpack
definitions_filestarball into the/definitionsdirectory. -
Restart OpsCenter to apply the updated definitions.