lunar-cataloger.yml
Cataloger Plugins
lunar-cataloger.ymlType: YAML file
Form:
version: 0 name: <cataloger-name> description: <cataloger-description> author: <author-name> default_image: <default-image> catalogers: - <cataloger-object> - <cataloger-object> - ... inputs: <input-name>: description: <input-description> default: <input-default-value>
This page describes the configuration of a cataloger plugin. Cataloger plugins are used to synchronize software catalog information from external systems. Cataloger plugins can be imported from the Lunar configuration file, lunar-config.yml via the uses cataloger form.
Cataloger plugins can be defined either in a separate repository or in the same repository as the Lunar configuration, in a dedicated directory. Either way, the cataloger plugin must contain a lunar-cataloger.yml file in the root of the repository or directory. This file is used to configure the behavior of the cataloger plugin.
When using catalogers in the Main or Run forms, you can also install dependencies. See installing dependencies in the Bash SDK for more details.
version
versionlunar-cataloger.yml -> versionType:
numericRequired
The version field is used to specify the version of the cataloger configuration file. The current version is 0.
name
namelunar-cataloger.yml -> nameType:
stringRequired
The name field is used to specify the name of the cataloger.
description
descriptionlunar-cataloger.yml -> descriptionType:
stringOptional
The description field is used to specify a description of the cataloger.
author
authorlunar-cataloger.yml -> authorType:
stringRequired
The author field is used to specify the author of the cataloger.
default_image
default_imagelunar-cataloger.yml -> default_imageType:
stringOptional
The default Docker image to use for all catalogers in this plugin. This overrides the global default_image_catalogers setting from lunar-config.yml.
Individual catalogers can still override this plugin default using the image field. Use the special value native to explicitly run without a container.
For more information about default images and container execution, see Images.
catalogers
catalogerslunar-cataloger.yml -> catalogersType:
arrayRequired
The catalogers field is used to specify the configuration of the cataloger. The format of a cataloger is the same as in lunar-config.yml. To learn more about the configuration of a cataloger, see the catalogers page.
Note: When consumers import this plugin via uses, they can selectively include or exclude specific catalogers using the include field. This allows consumers to use only the catalogers they need from a plugin that defines multiple catalogers.
inputs
inputslunar-cataloger.yml -> inputsType:
objectOptional
The inputs field is used to specify the inputs required by the cataloger. Each input is defined as a key-value pair, where the key is the input name.
Inputs are passed to the cataloger when invoked as environment variables with the prefix LUNAR_VAR_ and the input name in uppercase. For example, an input named api_url is accessible as $LUNAR_VAR_API_URL.
description
descriptionlunar-cataloger.yml -> inputs.<input-name>.descriptionType:
stringOptional
The description field is used to specify a description of the input.
default
defaultlunar-cataloger.yml -> inputs.<input-name>.defaultType:
stringOptional
The default field is used to specify the default value of the input. If no default value is specified, the input is required.
Last updated
