Class Environment
java.lang.Object
io.wcm.devops.conga.model.shared.AbstractModel
io.wcm.devops.conga.model.shared.AbstractConfigurable
io.wcm.devops.conga.model.environment.Environment
- All Implemented Interfaces:
Configurable,Serializable
Defines an environment with a set of nodes and configuration.
The filename of the environment YAML file is the environment name, it's not included in the model.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDefines a list of file URLs pointing to JAR files with CONGA definitions that contain dependencies (e.g. roles) to be used in this environment.getNodes()Defines nodes for the environment.Defines a map of configuration parameters for CONGA plugins.Defines role-specific configuration.Defines a list of tenants for configuration files that have tenant-specific system configurations.voidsetDependencies(List<String> dependencies) Sets dependencies.voidSets nodes.voidSets plugin configuration.voidsetRoleConfig(List<RoleConfig> roleConfig) Sets role configurations.voidsetTenants(List<Tenant> tenants) Sets tenants.Methods inherited from class io.wcm.devops.conga.model.shared.AbstractConfigurable
getConfig, setConfigMethods inherited from class io.wcm.devops.conga.model.shared.AbstractModel
toString
-
Constructor Details
-
Environment
public Environment()
-
-
Method Details
-
getNodes
Defines nodes for the environment.- Returns:
- List of nodes
-
setNodes
Sets nodes.- Parameters:
nodes- List of nodes
-
getRoleConfig
Defines role-specific configuration. In this section it is possible to define configuration parameters that affect each node that has this role defined.- Returns:
- Configurations per role
-
setRoleConfig
Sets role configurations.- Parameters:
roleConfig- Configurations per role
-
getTenants
Defines a list of tenants for configuration files that have tenant-specific system configurations. E.g. vhosts files for Apache Webserver.- Returns:
- List of tenants
-
setTenants
Sets tenants.- Parameters:
tenants- List of tenants
-
getDependencies
Defines a list of file URLs pointing to JAR files with CONGA definitions that contain dependencies (e.g. roles) to be used in this environment.- Returns:
- List of dependencies
-
setDependencies
Sets dependencies.- Parameters:
dependencies- List of dependencies
-
getPluginConfig
Defines a map of configuration parameters for CONGA plugins.The outer map contains the plugin names as keys, and the configuration for this plugin as value. The inner map contains the key/value pairs for the plugin configuration.
The configurations are merged with the configuration parameters defined in the POM.
- Returns:
- Plugin configuration parameter map
-
setPluginConfig
Sets plugin configuration.- Parameters:
pluginConfig- Plugin configuration parameter map
-