Skip to content

Commit

Permalink
Gateway 23.3 (#29)
Browse files Browse the repository at this point in the history
* resolved conflicts

* Add support for IAG 23.3

* Fixed conflict
  • Loading branch information
steven-schattenberg-itential authored Aug 19, 2024
1 parent c36612e commit 00b7aa0
Show file tree
Hide file tree
Showing 8 changed files with 601 additions and 3 deletions.
8 changes: 6 additions & 2 deletions docs/iag_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The variables in this section may be overridden in the inventory in the `gateway

Both the `iag_release` and `iag_whl_file` must be configured in the inventory.

The following table lists the default variables located in `roles/gateway/defaults/main.yml`.
The following table lists the default variables located in `roles/gateway/defaults/main.yml`.

| Variable | Group | Type | Description | Default Value
| :------- | :---- | :--- | :---------- | :------------
Expand All @@ -41,6 +41,10 @@ The following table lists the default variables located in `roles/gateway/defaul
| `iag_enable_netmiko` | `gateway` | Boolean | Flag to enable Netmiko. | `true`
| `iag_enable_scripts` | `gateway` | Boolean | Flag to enable scripts. | `true`
| `iag_enable_httpreq` | `gateway` | Boolean | Flag to enable HTTP requests. | `true`
| `iag_enable_netconf` | `gateway` | Boolean | Flag to enable Netconf requests. | `true`
| `iag_enable_python_venv` | `gateway` | Boolean | Flag to enable Python virtual environments. | `true`
| `iag_enable_grpc` | `gateway` | Boolean | Flag to enable GRPC requests. | `true`
| `iag_enable_git` | `gateway` | Boolean | Flag to enable Git integration. | `true`
| `iag_install_dir` | `gateway` | String | The base directory where to install the IAG files. | `/opt/automation-gateway`
| `iag_data_dir` | `gateway` | String | The IAG data directory. | `/opt/automation-gateway`
| `iag_log_dir` | `gateway` | String | The IAG log directory. | `/var/log/automation-gateway`
Expand Down Expand Up @@ -99,7 +103,7 @@ To configure HTTPS via HAProxy:
- Do not configure `iag_https` in the inventory so IAG Native HTTPS does not get configured.
* Optional
- Set the `haproxy_ssl_cert_src` and `haproxy_ssl_cert_dest` variables in the inventory.

Itential does not attempt to create any HTTPS certificates. These must be
created independently. When they are included in the appropriate location
the installer will ensure that they get uploaded to the correct location.
Expand Down
1 change: 1 addition & 0 deletions roles/gateway/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ iag_enable_netconf: true
iag_enable_httpreq: true
iag_enable_python_venv: true
iag_enable_grpc: true
iag_enable_git: true

# Location of IAG assets
iag_install_dir: /opt/automation-gateway
Expand Down
4 changes: 3 additions & 1 deletion roles/gateway/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@
- "{{ iag_install_dir }}/nornir/conf"
- "{{ iag_install_dir }}/nornir/inventory"
- "{{ iag_install_dir }}/nornir/modules"
- "{{ iag_install_dir }}/repos"
- "{{ iag_install_dir }}/scripts"
- "{{ iag_install_dir }}/ssh"

- name: Create Python venv directory
ansible.builtin.file:
Expand Down Expand Up @@ -171,7 +173,7 @@
dest: "{{ iag_properties_location }}/properties.yml"
owner: "{{ iag_user }}"
group: "{{ iag_group }}"
mode: "0660"
mode: "0600"

- name: Create Nornir files
when: iag_enable_nornir | bool
Expand Down
Loading

0 comments on commit 00b7aa0

Please sign in to comment.