Add Further Layers
If you want, you can add further layers to create an even more flexible configuration system. To add an extra configuration layer between the family layer and the host layer, for example, you would need to:
-
Open
/opt/escenic/assemblytool/conf/Nursery.properties
in a text editor. -
Change this setting:
layer.05=/layers/host/Layer
to:
layer.06=/layers/host/Layer
-
Add a property defining your new layer (we'll call it "group") as layer 05:
layer.05=/layers/group/Layer
-
Create two new
.properties
files:/opt/escenic/assemblytool/conf/group/Layer.properties
and/opt/escenic/assemblytool/conf/group/File.properties
./opt/escenic/assemblytool/conf/group/Layer.properties
should contain the following:$class=neo.nursery.PropertyFileConfigurator depot=./Files
and
/opt/escenic/assemblytool/conf/group/File.properties
should contain:$class=neo.nursery.FileSystemDepot fileSystemRoot = /etc/escenic/engine/group/${escenic.group}
-
You can now create group configuration layers in exactly the same way as you created host and family layers, and use system properties to select the required layer in the same way.
-
Run the assembly tool.
-
Deploy the results.
-
Restart.
The bootstrap layer will never be overwritten by the assembly tool
once it has been created, so any changes you make are persistent. If
the bootstrap layer should ever be deleted, however, a new one can be
created by running the assembly tool's initialize
target.
Do not insert your own layers below layer 03.