Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/itential_gateway_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ The following table lists the default variables located in `roles/gateway/defaul
| `gateway_enable_grpc` | Boolean | Flag to enable GRPC requests. | `true` |
| `gateway_enable_git` | Boolean | Flag to enable Git integration. | `true` |
| `gateway_install_dir` | String | The base directory where to install the IAG files. | `/opt/automation-gateway` |
| `gateway_build_temp_dir_path` | String | Optional directory for the build/staging working directory. Undefined by default, in which case Ansible's own temp-directory resolution is used unchanged. Set this (e.g. to `/var/tmp`) only if `/tmp` is mounted `noexec` on the target host. | Undefined |
| `gateway_ansible_collections_path` | String | The location of IAG Ansible collections. | `{{ gateway_install_dir }}/ansible/collections` |
| `gateway_data_dir` | String | The IAG data directory. | `/var/lib/automation-gateway` |
| `gateway_log_dir` | String | The IAG log directory. | `/var/log/automation-gateway` |
Expand Down
1 change: 1 addition & 0 deletions docs/redis_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ The following tables lists the default variables located in `roles/redis/default
| `redis_source_url` | String | The Redis source URL | Varies depending on OS and Platform release |
| `redis_remi_repo_url` | String | The URL of the Remi repo RPM. Note: this is only used when the `redis_install_from_source` is set to `false` and the Remi packages are being installed. | `http://rpms.remirepo.net/enterprise/remi-release-{{ ansible_distribution_major_version }}.rpm` |
| `redis_epel_repo_url` | String | The URL of the EPEL repo RPM. Note: this is only used when the `redis_install_from_source` is set to `false` and the Remi packages are being installed. | `https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm` |
| `redis_build_temp_dir_path` | String | Optional directory for the source-build working directory. Undefined by default, in which case Ansible's own temp-directory resolution is used unchanged. Set this (e.g. to `/var/tmp`) only if `/tmp` is mounted `noexec` on the target host, which breaks the source build. | Undefined |

### Redis Variables

Expand Down
1 change: 1 addition & 0 deletions roles/gateway/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Installs and configures Itential Automation Gateway (IAG). Handles Python virtua
| Variable | Default | Purpose |
|----------|---------|---------|
| `gateway_install_dir` | `/opt/automation-gateway` | IAG installation root |
| `gateway_build_temp_dir_path` | (undefined) | Optional `path` for the build/staging working directory's `ansible.builtin.tempfile` task. Undefined by default so the module falls back to its own directory resolution; set explicitly (e.g. `/var/tmp`) on hosts where `/tmp` is mounted `noexec` |
| `gateway_data_dir` | `/var/lib/automation-gateway` | IAG data directory |
| `gateway_log_dir` | `/var/log/automation-gateway` | IAG log directory |
| `gateway_properties_location` | `/etc/automation-gateway` | Properties file directory |
Expand Down
7 changes: 7 additions & 0 deletions roles/gateway/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,15 @@
when: gateway_invalid_release is defined

- name: Create temporary working directory
# gateway_build_temp_dir_path is intentionally undefined by default (rather than
# defaulting to a literal "/tmp") so that when it is not set, the path argument is
# omitted entirely and this module falls back to its own normal directory
# resolution (TMPDIR/TEMP/TMP env vars, then /tmp, /var/tmp, /usr/tmp) - the same
# behavior as before this variable existed. Set it explicitly (e.g. to /var/tmp)
# only on hosts where /tmp is mounted noexec.
ansible.builtin.tempfile:
state: directory
path: "{{ gateway_build_temp_dir_path | default(omit) }}"
register: gateway_workingdir

- name: Install Gateway dependency packages
Expand Down
1 change: 1 addition & 0 deletions roles/redis/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Installs and configures Redis and Redis Sentinel for use with Itential Platform.
| `redis_security_packages` | `policycoreutils-python-utils` | SELinux management package |
| `redis_remi_repo_url` | Remi enterprise URL | Used when installing from Remi repo |
| `redis_epel_repo_url` | Fedora EPEL URL | Used when installing EPEL for Remi |
| `redis_build_temp_dir_path` | (undefined) | Optional `path` for the source-build working directory's `ansible.builtin.tempfile` task. Undefined by default so the module falls back to its own directory resolution; set explicitly (e.g. `/var/tmp`) on hosts where `/tmp` is mounted `noexec`, which breaks the `make`/`make install` steps |

### pki.yml defaults (TLS paths)

Expand Down
8 changes: 8 additions & 0 deletions roles/redis/tasks/install-from-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,16 @@
when: (not redis_installed.stat.exists) or (requires_rebuild | default(false))
block:
- name: Create temporary working directory
# redis_build_temp_dir_path is intentionally undefined by default (rather than
# defaulting to a literal "/tmp") so that when it is not set, the path argument is
# omitted entirely and this module falls back to its own normal directory
# resolution (TMPDIR/TEMP/TMP env vars, then /tmp, /var/tmp, /usr/tmp) - the same
# behavior as before this variable existed. Set it explicitly (e.g. to /var/tmp)
# only on hosts where /tmp is mounted noexec, which breaks the "make"/"make
# install" steps below.
ansible.builtin.tempfile:
state: directory
path: "{{ redis_build_temp_dir_path | default(omit) }}"
register: redis_build_temp_dir

- name: Online install
Expand Down
Loading