-
Notifications
You must be signed in to change notification settings - Fork 4
11. SCD4J Examples
In this page we briefly describe some examples we have in our repository.
Download scd4j-examples, read the README
file and take a look into the code to understand how to replicate it in you own company:
This example shows how to copy, delete and use templates in SCD4J
Download and try it yourself.
This example demonstrates how to run more than one module at the same time
Download and try it yourself.
This example demonstrates how to create a new operational system user and how to change the ownership of files/directories. Besides of that, this example uses encrypted data, so that only sysadmins who have the decryption password will be able to run this example.
In order to execute this example you will need to provide the decryption password (i.e. abc123) when requested. But shihhhh.. don't share it with anybody. It is a secret right?!?! ;-)
Download and try it yourself.
Don't forget to take a look at example.conf file to understand how you should be using encrypted data.
This example changes the default template engine from Groovy Templates to Mustache
Download and try it yourself.
This example demonstrates the usage of Module.hook
implementation, file hook implementations and some helper functions for registering your services at startup of your machine.
Moreover, this example will run only on Linux. Note that it is not a limitation, it was done on purpose to show you how you can avoid installing an entire module. It is important to say that the helper function registryOnBoot(..)
also works on windows.
Download and try it yourself.
This example demonstrates the usage of Module.hook
file in a more complex situation. It also shows how to install files conditionally (depending on the operational system you are running on), start and stop a service, and others.
Download and try it yourself.
This example demonstrates the installation of a Wildfly cluster in all the software development stages. In other words, with this example we can learn how to standardize environments as much as possible and, when we have something that can not be standardized between environments, how should we handle these differences.
Download and try it yourself.