-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9838da
commit dab5860
Showing
226 changed files
with
4,882 additions
and
286 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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
31 changes: 31 additions & 0 deletions
31
docs/versions/v2.29.1/Components/Archetypes/Polyglot/General/New Project.md
This file contains 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,31 @@ | ||
# New Project | ||
|
||
## Table Of Contents: | ||
1. [Generate A New Project](#generate-a-new-project) | ||
|
||
### Generate A New Project | ||
|
||
- Replace `archetypeVersion` with the latest toolchain version | ||
- Specify `type` to be either `abx` (vRA ABX Actions) or `vro` (vRO Polyglot Actions). | ||
|
||
```bash | ||
#vRO: | ||
mvn archetype:generate \ | ||
-DinteractiveMode=false \ | ||
-DarchetypeGroupId=com.vmware.pscoe.polyglot.archetypes \ | ||
-DarchetypeArtifactId=package-polyglot-archetype \ | ||
-DarchetypeVersion={LATEST_VERSION} \ | ||
-DgroupId=com.vmware.pscoe \ | ||
-DartifactId=testvronew \ | ||
-Dtype=vro | ||
|
||
#ABX: | ||
mvn archetype:generate \ | ||
-DinteractiveMode=false \ | ||
-DarchetypeGroupId=com.vmware.pscoe.polyglot.archetypes \ | ||
-DarchetypeArtifactId=package-polyglot-archetype \ | ||
-DarchetypeVersion={LATEST_VERSION} \ | ||
-DgroupId=com.vmware.pscoe \ | ||
-DartifactId=testabxnew \ | ||
-Dtype=abx | ||
``` |
49 changes: 49 additions & 0 deletions
49
docs/versions/v2.29.1/Components/Archetypes/Polyglot/General/Project Structure.md
This file contains 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,49 @@ | ||
# Project Structure | ||
|
||
## Overview | ||
The polyglot archetype supports multiple actions in the src folder. Each has it's own structure depending on the type of the package. | ||
|
||
## Table Of Contents: | ||
1. [General](#general) | ||
2. [Templates](#templates) | ||
3. [NodeJS](#nodejs) | ||
4. [Python](#python) | ||
5. [Powershell](#powershell) | ||
|
||
### General | ||
- `polyglot.json` - marks a folder as a polyglot package. Contains information about the package. | ||
- If the `platform.action` is set to `auto` the name of the folder will be used as the package name. | ||
|
||
### Templates | ||
There are three templates: | ||
* src/template-nodejs ([NodeJs](#nodejs)) | ||
* src/template-powershell ([Powershell](#powershell)) | ||
* src/template-python ([Python](#python)) | ||
|
||
|
||
Note: you do not need to delete template folders. Any folder starting with `template-` is ignored. | ||
|
||
### NodeJS | ||
- `handler.ts` - holds all the logic for the action | ||
- `tsconfig.json` - used by typescript to compile the code during `mvn package`, since rootDirs and srcDirs are dynamic, there are | ||
placeholders in this file. **do not modify** | ||
|
||
> Dependencies | ||
> | ||
> NodeJS' dependencies are defined in the `package.json` file in the `dependencies` property. Specify only dependencies to | ||
> your code, there are no mandatory dependencies as well as no default ones. | ||
### Python | ||
- `handler.py` - holds all the logic for the action | ||
- `requirements.txt` - holds dependency information e.g. requirements.txt: | ||
```python | ||
requests==2.23.0 | ||
``` | ||
|
||
> Dependencies | ||
> | ||
> These follow the standard python `requirements.txt` structure. No default or mandatory dependencies. [More Info](https://learnpython.com/blog/python-requirements-file/) | ||
|
||
### Powershell | ||
- `handler.ps1` - holds all the logic for the action | ||
|
1 change: 1 addition & 0 deletions
1
docs/versions/v2.29.1/Components/Archetypes/Polyglot/General/Troubleshooting.md
This file contains 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 @@ | ||
[//]: # (Finish with some troubleshooting tips, when any error are encountered and fixed for future issues) |
11 changes: 11 additions & 0 deletions
11
docs/versions/v2.29.1/Components/Archetypes/Polyglot/General/Usage.md
This file contains 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,11 @@ | ||
# Usage | ||
|
||
## Overview | ||
Polyglot archetype just like any other archetype utilizes the `vrealize:push` to package and deploy the artifacts. | ||
|
||
## Table Of Contents: | ||
1. [Command](#command) | ||
|
||
### Command | ||
|
||
`mvn clean package vrealize:push -Penvironment_profile` |
13 changes: 13 additions & 0 deletions
13
docs/versions/v2.29.1/Components/Archetypes/Polyglot/README.md
This file contains 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,13 @@ | ||
# Polyglot | ||
The polyglot archetype is an archetype that allows you to push "polyglot" actions to vRO and vRA ( like powershell, python, nodejs ) | ||
|
||
## Overview | ||
The polyglot archetype is used to push multiple of these actions at the same time in a single package. | ||
|
||
## Navigation: | ||
- Getting Started | ||
- [Project Structure](./General/Project Structure.md) | ||
- [New Project](./General/New Project.md) | ||
- [Usage](./General/Usage.md) | ||
- [Troubleshooting](./General/Troubleshooting.md) | ||
|
Oops, something went wrong.