Table of Contents
Verify if a package is installed in any version
Compatible with nodes running Rudder 2.11 or higher.
This bundle will define a class
package_check_installed_${file_name}_{ok, reached, kept}
if the
package is installed, or
package_check_installed_${file_name}_{not_ok, reached, not_kept, failed}
if the package is not installed
- package_name: Name of the package to check
package_check_installed_${package_name}_{kept, repaired, not_ok, reached}
Install or update a package in its latest version available
Compatible with nodes running Rudder 2.11 or higher.
- package_name: Name of the package to install
package_install_${package_name}_{kept, repaired, not_ok, reached}
Install or update a package in a specific version
Compatible with nodes running Rudder 2.11 or higher.
- package_name: Name of the package to install
- package_version: Version of the package to install (can be "latest" to install it in its latest version)
package_install_${package_name}_{kept, repaired, not_ok, reached}
Install a package or verify if it is installed in a specific version, or higher or lower version than a version specified
Compatible with nodes running Rudder 2.11 or higher.
Example:
methods: "any" usebundle => package_install_version_cmp("postgresql", ">=", "9.1", "verify");
- package_name: Name of the package to install or verify
- version_comparator: Comparator between installed version and defined version, can be ==,⇐,>=,<,>,!=
- package_version: The version of the package to verify (can be "latest" for latest version)
- action: Action to perform, can be add, verify (defaults to verify)
package_install_${package_name}_{kept, repaired, not_ok, reached}
Install a package or verify if it is installed in a specific version, or higher or lower version than a version specified, optionally test update or not (Debian-, Red Hat- or SuSE-like systems only)
Compatible with nodes running Rudder 2.11 or higher.
Example:
methods: "any" usebundle => package_install_version_cmp_update("postgresql", ">=", "9.1", "verify", "false");
- package_name: Name of the package to install or verify
- version_comparator: Comparator between installed version and defined version, can be ==,⇐,>=,<,>,!=
- package_version: The version of the package to verify (can be "latest" for latest version)
- action: Action to perform, can be add, verify (defaults to verify)
- update_policy: While verifying packages, check against latest version ("true") or just installed ("false")
package_install_${package_name}_{kept, repaired, not_ok, reached}
Remove a package
Compatible with nodes running Rudder 2.11 or higher.
Example:
methods: "any" usebundle => package_remove("htop");
- package_name: Name of the package to remove
package_remove_${package_name}_{kept, repaired, not_ok, reached}
Verify if a package is installed in its latest version available
Compatible with nodes running Rudder 2.11 or higher.
- package_name: Name of the package to verify
package_install_${package_name}_{kept, repaired, not_ok, reached}
Verify if a package is installed in a specific version
Compatible with nodes running Rudder 2.11 or higher.
- package_name: Name of the package to verify
- package_version: Version of the package to verify (can be "latest" for latest version)
package_install_${package_name}_{kept, repaired, not_ok, reached}