Prior to Cobbler 2.4.0, import modules for each supported distro were separate and customized for each specific distribution. The values for breed and os-version were hard-coded into cobbler, so adding support for new distros or newer versions of an already supported distro required code changes and a complete Cobbler upgrade.
Cobbler 2.4.0 introduces the concept of distro signatures to make adding support for newer distro versions without requiring an upgrade to the rest of the system.
The distro signatures are stored in
/var/lib/cobbler/distro_signatures.json. As the extension indicates, this is a JSON-formatted file, with the following structure:
This file is read in when cobblerd starts, and logs a message noting how many breeds and os-versions it has loaded:
The signature CLI command has the following sub-commands:
cobbler signature report cobbler signature update
This command prints out a report of the currently loaded signatures and os-versions.
9 breeds with 21 total signatures loaded
An optional --name parameter can be specified to limit the report to one breed:
Breed 'ubuntu' has 3 total signatures
This command will cause Cobbler to go and fetch the latest distro signature file from http://cobbler.github.con/signatures/latest.json, and load the signatures in that file. This file will be tested first, to ensure it is formatted correctly.
This command currently takes no options.