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
public final class Environment extends AbstractConfigurable
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Environment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getDependencies()
Defines a list of file URLs pointing to JAR files with CONGA definitions that contain dependencies (e.g.List<Node>
getNodes()
Defines nodes for the environment.Map<String,Map<String,Object>>
getPluginConfig()
Defines a map of configuration parameters for CONGA plugins.List<RoleConfig>
getRoleConfig()
Defines role-specific configuration.List<Tenant>
getTenants()
Defines a list of tenants for configuration files that have tenant-specific system configurations.void
setDependencies(List<String> dependencies)
void
setNodes(List<Node> nodes)
void
setPluginConfig(Map<String,Map<String,Object>> pluginConfig)
void
setRoleConfig(List<RoleConfig> roleConfig)
void
setTenants(List<Tenant> tenants)
-
Methods inherited from class io.wcm.devops.conga.model.shared.AbstractConfigurable
getConfig, setConfig
-
Methods inherited from class io.wcm.devops.conga.model.shared.AbstractModel
toString
-
-
-
-
Method Detail
-
getRoleConfig
public List<RoleConfig> 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
public void setRoleConfig(List<RoleConfig> roleConfig)
-
getTenants
public List<Tenant> 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
-
getDependencies
public List<String> 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
-
getPluginConfig
public Map<String,Map<String,Object>> 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
-
-