You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- example - http://10.160.7.7/api/v4/projects/4/repository/files/hello_world.yml/raw?ref=master
17
17
- The password field needs to be populated with gitlab access token, which will be sent along with request as header
18
18
- Access Token only needed for private repos, password field can be left blank for public repos
@@ -50,14 +50,14 @@ This service shell uses the same python package as the 1G shell.
50
50
|Playbook URL Full|String|Full path URL of script. For Github can be "raw" url. For gitlab, pass Rest API formatted url. Populate either this or base path + script path|
51
51
|Playbook Base Path|String|Base URL to script. This path will join with script path passed to execute playbook command.|
52
52
|Playbook Script Path|String|Path to script from root of repo. This will join with base path to create full URL.|
53
-
|Connection Method|String|For Linux / Windows connections|
53
+
|Connection Method|String|Lookup values \[SSH, WinRM\] - For Linux / Windows connections|
54
54
|Address|String|**(Optional)** Address of Script Repo Server. Can be useful to see this on component or generate web link.|
55
55
|Repo User|String|**(Optional)** Source Control user for private repo authentication. Required for Github Private Repo. For Gitlab user not required, only access token in password field.|
56
56
|Repo Password|Password|**(Optional)** Source Control password for private repo authentication. For GitLab, add private access token here.|
57
-
|Script Parameters|String|**(Optional)**key pair values passed playbook VARS file to be accesible in script. Pass in following format - key1,val1;key2,val2.|
58
-
|Inventory Groups|String|**(Optional)** Designating groups in playbook to be executed.|
59
-
|Ansible CMD Args|String|**(Optional)** Additional arguments passed to ansible-playbook command line execution.|
60
-
|Timeout Minutes|Integer|**(Optional)** Minutes to wait while polling target hosts. (Defaults to 10)|
57
+
|Script Parameters|String|**(Optional)**Variables accessible to playbook. These are populated in ansible "VARS" file. Pass in following format - key1,val1;key2,val2.|
58
+
|Inventory Groups|String|**(Optional)** Designating groups in playbook to be executed. See Dev guide for mor info.|
59
+
|Ansible CMD Args|String|**(Optional)** Additional arguments appended to ansible-playbook command line execution. Pass full string(ex. `ansible-playbook -i hosts.ini <ANSIBLE CMD ARGS>`|
60
+
|Timeout Minutes|Integer|**(Optional)** Minutes to wait while polling target hosts. Default - 10|
61
61
|Gitlab Branch|String|**(Optional)** Defaults to master branch. This attribute relevant for downloading from non-master branches in Gitlab repos.|
62
62
63
63
## Commands
@@ -72,6 +72,7 @@ There are a few ways to pass the playbook path to the command.
72
72
2. Pass playbook path (relative to root of repo) to command. This will join together with base path attribute on service.
73
73
3. Pass no command input, will fall back to Repo Full URL if populated, if not populated will fall back to base repo + script path attributes on service.
74
74
75
+
Note: - `/raw?ref=<GIT_BRANCH>` can be left off url path for Gitlab URL on 2G shell, the shell will add this
75
76
76
77
## Over-riding Service with Resource Attributes
77
78
The service by default will "broadcast it's attributes to all connected resources.
@@ -83,11 +84,12 @@ The following attributes are supported for over-ride:
83
84
- "Script Parameters" - String - to pass different params to different hosts
84
85
- "Inventory Groups" - String - target different inventory group logic for different hosts
85
86
86
-
## Optional
87
+
## Optional Implementations
87
88
- Add "Supports Ansible" Execution Server Selector. This is the same selector that 1G service uses to define your pools of servers that will run script.
88
89
- can be combinded with standard selector to further define your selectors per service
89
-
- Create web link to script server by adding the following to UniversalSettings.xml on Quali Server:
0 commit comments