Skip to content

Commit a502b4a

Browse files
committed
readme
1 parent adaae1b commit a502b4a

1 file changed

Lines changed: 19 additions & 17 deletions

File tree

README.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,31 @@ A 2G service leveraging the same base package is also included for use with phys
99

1010
See our [dev guide](https://devguide.quali.com/configmanagement/2020.1.0/cf-ansible.html) for further info on Ansible Configuration Management development.
1111

12-
13-
## Gitlab Support
12+
## Gitlab Private Repo Support
1413
- Gitlab links are supported, but for Private Repos require the URL to be in format of their REST api
15-
- `http://<SERVER_IP>/api/<API_VERSION>/projects/<PROJECT_ID>/repository/files/<PROJECT_PATH>/raw?ref=<GIT_BRANCH>`
16-
- example - http://10.160.7.7/api/v4/projects/4/repository/files/hello_world.yml/raw?ref=master
14+
- `http://<SERVER_IP>/api/<API_VERSION>/projects/<PROJECT_ID>/repository/files/<PROJECT_PATH>/raw?ref=<GIT_BRANCH>`
15+
- example - `http://10.160.7.7/api/v4/projects/4/repository/files/hello_world.yml/raw?ref=master`
1716
- The password field needs to be populated with gitlab access token, which will be sent along with request as header
1817
- Access Token only needed for private repos, password field can be left blank for public repos
19-
- The "User" field can be left blank for gitlab auth. Only access token needed
20-
- Public Repos appear to work fine with both "raw" url link as well as the API formatted URL with no token
21-
- Gitlab docs - https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html
18+
- The "User" field can be left blank for gitlab auth. Only access token needed.
19+
- Public Gitlab Repos work with both "raw" url link AND api-formatted URL with no token passed
20+
- [Gitlab docs](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html)
2221

2322
## App Configuration Management Param Overrides
24-
The following configuration management parameters can be over-ridden per blueprint by adding AND populating the following parameters:
25-
- REPO_URL
26-
- REPO_USER
27-
- REPO_PASSWORD (will be a plain text parameter)
28-
- CONNECTION_METHOD
23+
The following app configuration management parameters can be over-ridden per blueprint:
24+
- `REPO_URL` - Full path to script
25+
- `REPO_USER` - For private git repos, the username (not needed for gitlab)
26+
- `REPO_PASSWORD` - Github password / access token (for Gitlab, only access token will work)
27+
- `CONNECTION_METHOD` - acceptable values are only \[SSH, WinRM\]
28+
29+
NOTE: Parameters will only over-ride if the value is also populated. Value can be left empty on app with no over-ride action.
30+
Not all params must be present. User can choose which params to over-ride.
2931

3032
## To Install Package
3133
- Download python package from releases and place in local pypi server on Quali Server
32-
- Path: C:\Program Files (x86)\QualiSystems\CloudShell\Server\Config\Pypi Server Repository
34+
- Path: `C:\Program Files (x86)\QualiSystems\CloudShell\Server\Config\Pypi Server Repository`
3335
- Delete venv (if it exists) to force creation of new venv with updated package
34-
- Path: C:\ProgramData\QualiSystems\venv\Ansible_Driver_{{driver_uid}}
36+
- Path: `C:\ProgramData\QualiSystems\venv\Ansible_Driver_<DRIVER_UID>`
3537

3638
# Ansible 2G Service For Physical Resources
3739
This is a 2G wrapper around the cloudshell ansible package.
@@ -80,9 +82,9 @@ If select attributes are present AND populated on resource it will override the
8082
These attributes need to be added to system as global attribute and attached to desired resource models.
8183

8284
The following attributes are supported for over-ride:
83-
- "Connection Method" - Lookup - Create a lookup variable with values \[SSH, WinRM\]
84-
- "Script Parameters" - String - to pass different params to different hosts
85-
- "Inventory Groups" - String - target different inventory group logic for different hosts
85+
- `Connection Method` - Lookup - Create a lookup variable with values \[SSH, WinRM\]
86+
- `Script Parameters` - String - to pass different params to different hosts
87+
- `Inventory Groups` - String - target different inventory group logic for different hosts
8688

8789
## Optional Implementations
8890
- 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.

0 commit comments

Comments
 (0)