-
Notifications
You must be signed in to change notification settings - Fork 90
Issue #371 - Documentation for alternate configuration directory #640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
## Custom Configuration | ||
|
||
WDT allows you to create or extend the pre-installed type definitions, model filters, variable injectors, and target environments. Starting with WDT 1.10.0, these additional configuration files can be stored outside the `$WLSDEPLOY_HOME/lib` directory. This allows the files to remain in place if the WDT installation is moved or upgraded to a new version. | ||
|
||
To use a separate configuration directory, set the `WDT_CUSTOM_CONFIG` environment variable to the directory to be used for configuration. For example: | ||
``` | ||
export WDT_CUSTOM_CONFIG=/etc/wdtconfig | ||
``` | ||
|
||
The customized configuration files should be named and organized the same way they would be under the `$WLSDEPLOY_HOME/lib` directory. For example: | ||
``` | ||
/etc/wdtconfig | ||
injectors | ||
*.json (injector files) | ||
typedefs | ||
*.json (typedef files) | ||
targets | ||
my-target | ||
target.json | ||
*.py (filter files) | ||
model_filters.json | ||
model_variable_injector.json | ||
variable_keywords.json | ||
``` | ||
This is a full set of files that can be configured. You will need only to add the files you have created or extended. Details for each configuration type are found at the following links: | ||
- [Model Filters](../tool_filters.md) | ||
- [Type Definitions](../type_def.md) (see [example](#example-extending-a-type-definition) below) | ||
- [Variable Injection](../variable_injection.md) | ||
- [The Prepare Model Tool](../prepare.md) (target environments) | ||
|
||
The WDT tools will look for each configuration file under `$WDT_CUSTOM_CONFIG` if specified, then under `$WLSDEPLOY_HOME/lib`. | ||
|
||
### Example: Extending a Type Definition | ||
|
||
To extend the `WLS` type definition, follow these steps: | ||
- Create a directory to use for custom configurations, such as `/etc/wdtconfig`. | ||
- Define the `WDT_CUSTOM_CONFIG` environment variable to point to that directory. | ||
- Copy the file `$WLSDEPLOY_HOME/lib/typedefs/WLS.json` to the `$WDT_CUSTOM_CONFIG/typedefs` directory and rename it, for example `MY_WLS.json`. | ||
- Edit `MY_WLS.json` with any required changes. | ||
- Run the tool referencing the name of the new type definition, for example: | ||
``` | ||
createDomain.cmd -oracle_home /wls12213 -domain_type MY_WLS ... | ||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.