Skip to content
Merged
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: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ In general the Deployer will install packages using the standard YUM/DNF reposit
| IAP | rpm.nodesource.com | https | When installing on Redhat/CentOS 7 |
| IAP | www.python.org | https | When installing on Redhat/CentOS 7 |
| IAP | www.openssl.org | https | When installing on Redhat/CentOS 7 |
| IAG | releases.hashicorp.com | https | When Terraform is enabled |
| IAG | www.python.org | https | When installing on Redhat/CentOS 7 |
| IAG | www.openssl.org | https | When installing on Redhat/CentOS 7 |

Expand Down
3 changes: 1 addition & 2 deletions documents/iag_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The playbook and roles in this section install and configure the Itential Automa

## Gateway Role

The `gateway` role performs a base install of IAG including any OS packages required. It includes the appropriate versions of Python, Pip, Ansible, and Terraform. It creates the appropriate Linux users, directories, log files, and systemd services. It will start the automation-gateway service when complete.
The `gateway` role performs a base install of IAG including any OS packages required. It includes the appropriate versions of Python, Pip, and Ansible. It creates the appropriate Linux users, directories, log files, and systemd services. It will start the automation-gateway service when complete.

## Gateway HAProxy Role

Expand Down Expand Up @@ -37,7 +37,6 @@ The following table lists the default variables located in `roles/gateway/defaul
| Variable | Group | Type | Description | Default Value
| :------- | :---- | :--- | :---------- | :------------
| `iag_enable_ansible` | `gateway` | Boolean | Flag to enable Ansible. | `true`
| `iag_enable_terraform` | `gateway` | Boolean | Flag to enable Terraform. | `true`
| `iag_enable_nornir` | `gateway` | Boolean | Flag to enable Nornir. | `true`
| `iag_enable_netmiko` | `gateway` | Boolean | Flag to enable Netmiko. | `true`
| `iag_enable_scripts` | `gateway` | Boolean | Flag to enable scripts. | `true`
Expand Down
1 change: 0 additions & 1 deletion roles/gateway/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ itential_release_file: /etc/iag-release
# Default feature flags
# Enable everything by default, override in the hosts file if required
iag_enable_ansible: true
iag_enable_terraform: true
iag_enable_nornir: true
iag_enable_netmiko: true
iag_enable_scripts: true
Expand Down
7 changes: 0 additions & 7 deletions roles/gateway/tasks/download-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@
state: directory
mode: '0755'

- name: Download Terraform archive
ansible.builtin.get_url:
url: "{{ iag_terraform_url }}"
dest: "{{ archives_download_dir_target_node }}"
mode: "0644"
when: iag_enable_terraform | bool

- name: Copy archives to control node
ansible.builtin.import_role:
name: offline
Expand Down
25 changes: 0 additions & 25 deletions roles/gateway/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@
- "{{ iag_install_dir }}/nornir/inventory"
- "{{ iag_install_dir }}/nornir/modules"
- "{{ iag_install_dir }}/scripts"
- "{{ iag_install_dir }}/terraform"
- "{{ iag_install_dir }}/terraform/scripts"

- name: Create Python venv directory
ansible.builtin.file:
Expand Down Expand Up @@ -131,29 +129,6 @@
mode: "0400"
state: touch

- name: Install Terraform
when: iag_enable_terraform | bool
block:
- name: Install Terraform (online)
when: not offline_install
block:
- name: Download Terraform
ansible.builtin.get_url:
url: "{{ iag_terraform_url }}"
dest: "{{ workingdir.path }}/{{ iag_terraform_url | basename }}"
mode: "0644"

- name: Extract Terraform
ansible.builtin.unarchive:
src: "{{ workingdir.path }}/{{ iag_terraform_url | basename }}"
dest: /usr/local/bin
remote_src: true

- name: Install Terraform (offline)
ansible.builtin.include_tasks:
file: terraform-offline.yml
when: offline_install

- name: Check if Automation Gateway is already installed
ansible.builtin.stat:
path: "{{ iag_install_dir }}/venv/automation-gateway"
Expand Down
22 changes: 0 additions & 22 deletions roles/gateway/tasks/terraform-offline.yml

This file was deleted.

8 changes: 0 additions & 8 deletions roles/gateway/tasks/update-release-file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@
when: iag_enable_ansible | bool
changed_when: true

- name: Update release file with Terraform version
ansible.builtin.lineinfile:
path: "{{ itential_release_file }}"
line: "TERRAFORM=true"
create: true
when: iag_enable_terraform | bool
changed_when: true

- name: Update release file with Nornir version
ansible.builtin.lineinfile:
path: "{{ itential_release_file }}"
Expand Down
7 changes: 4 additions & 3 deletions roles/gateway/templates/properties.2021.1.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -198,18 +198,19 @@ script_path:
#############
# Terraform #
#############
# Terraform was removed due to HashiCorp adopting the
# Business Source License (BSL) for their core products

# A boolean flag that enables Terraform support (default=false if absent/misconfigured).
terraform_enabled: {{ iag_enable_terraform }}
terraform_enabled: false

# Discovery behavior for Terraform modules. Determines whether or not to
# recursively search the directories found in the 'terraform_path' parameter, or
# to only search those directories and no deeper. (default=true if absent/misconfigured)
terraform_recursive: true
terraform_recursive: false

# Path(s) to the Terraform modules that should be discovered by Automation Gateway.
terraform_path:
- "{{ iag_install_dir }}/terraform/scripts"

###################
# Hashicorp Vault #
Expand Down
7 changes: 4 additions & 3 deletions roles/gateway/templates/properties.2021.2.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -216,18 +216,19 @@ script_path:
#############
# Terraform #
#############
# Terraform was removed due to HashiCorp adopting the
# Business Source License (BSL) for their core products

# A boolean flag that enables Terraform support (default=false if absent/misconfigured).
terraform_enabled: {{ iag_enable_terraform }}
terraform_enabled: false

# Discovery behavior for Terraform modules. Determines whether or not to
# recursively search the directories found in the 'terraform_path' parameter, or
# to only search those directories and no deeper. (default=true if absent/misconfigured)
terraform_recursive: true
terraform_recursive: false

# Path(s) to the Terraform modules that should be discovered by Automation Gateway.
terraform_path:
- "{{ iag_install_dir }}/terraform/scripts"

###################
# Hashicorp Vault #
Expand Down
7 changes: 4 additions & 3 deletions roles/gateway/templates/properties.2022.1.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -215,18 +215,19 @@ script_path:
#############
# Terraform #
#############
# Terraform was removed due to HashiCorp adopting the
# Business Source License (BSL) for their core products

# A boolean flag that enables Terraform support (default=false if absent/misconfigured).
terraform_enabled: {{ iag_enable_terraform }}
terraform_enabled: false

# Discovery behavior for Terraform modules. Determines whether or not to
# recursively search the directories found in the 'terraform_path' parameter, or
# to only search those directories and no deeper. (default=true if absent/misconfigured)
terraform_recursive: true
terraform_recursive: false

# Path(s) to the Terraform modules that should be discovered by Automation Gateway.
terraform_path:
- "{{ iag_install_dir }}/terraform/scripts"

###################
# Hashicorp Vault #
Expand Down
7 changes: 4 additions & 3 deletions roles/gateway/templates/properties.2023.1.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -336,18 +336,19 @@ script_path:
#############
# Terraform #
#############
# Terraform was removed due to HashiCorp adopting the
# Business Source License (BSL) for their core products

# A boolean flag that enables Terraform support (default=false if absent/misconfigured).
terraform_enabled: {{ iag_enable_terraform }}
terraform_enabled: false

# Discovery behavior for Terraform modules. Determines whether or not to
# recursively search the directories found in the 'terraform_path' parameter, or
# to only search those directories and no deeper. (default=true if absent/misconfigured)
terraform_recursive: true
terraform_recursive: false

# Path(s) to the Terraform modules that should be discovered by Automation Gateway.
terraform_path:
- "{{ iag_install_dir }}/terraform/scripts"

###################
# Hashicorp Vault #
Expand Down
7 changes: 4 additions & 3 deletions roles/gateway/templates/properties.2023.2.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -354,18 +354,19 @@ grpc_enabled: {{ iag_enable_grpc }}
#############
# Terraform #
#############
# Terraform was removed due to HashiCorp adopting the
# Business Source License (BSL) for their core products

# A boolean flag that enables Terraform support (default=false if absent/misconfigured).
terraform_enabled: {{ iag_enable_terraform }}
terraform_enabled: false

# Discovery behavior for Terraform modules. Determines whether or not to
# recursively search the directories found in the 'terraform_path' parameter, or
# to only search those directories and no deeper. (default=true if absent/misconfigured)
terraform_recursive: true
terraform_recursive: false

# Path(s) to the Terraform modules that should be discovered by Automation Gateway.
terraform_path:
- "{{ iag_install_dir }}/terraform/scripts"

###################
# Hashicorp Vault #
Expand Down
2 changes: 0 additions & 2 deletions roles/gateway/vars/2021.1-centos-7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ python_src_url: "https://www.python.org/ftp/python/{{ python_src_version }}/Pyth
openssl_url: https://www.openssl.org/source/openssl-1.0.2q.tar.gz

iag_ansible_version: ansible==2.10.0

iag_terraform_url: https://releases.hashicorp.com/terraform/0.12.31/terraform_0.12.31_linux_amd64.zip
2 changes: 0 additions & 2 deletions roles/gateway/vars/2021.1-redhat-7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ python_src_url: "https://www.python.org/ftp/python/{{ python_src_version }}/Pyth
openssl_url: https://www.openssl.org/source/openssl-1.0.2q.tar.gz

iag_ansible_version: ansible==2.10.0

iag_terraform_url: https://releases.hashicorp.com/terraform/0.12.31/terraform_0.12.31_linux_amd64.zip
2 changes: 0 additions & 2 deletions roles/gateway/vars/2021.2-centos-7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ python_src_url: "https://www.python.org/ftp/python/{{ python_src_version }}/Pyth
openssl_url: https://www.openssl.org/source/openssl-1.0.2q.tar.gz

iag_ansible_version: ansible==2.10.0

iag_terraform_url: https://releases.hashicorp.com/terraform/0.12.31/terraform_0.12.31_linux_amd64.zip
2 changes: 0 additions & 2 deletions roles/gateway/vars/2021.2-redhat-7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ python_src_url: "https://www.python.org/ftp/python/{{ python_src_version }}/Pyth
openssl_url: https://www.openssl.org/source/openssl-1.0.2q.tar.gz

iag_ansible_version: ansible==2.10.0

iag_terraform_url: https://releases.hashicorp.com/terraform/0.12.31/terraform_0.12.31_linux_amd64.zip
2 changes: 0 additions & 2 deletions roles/gateway/vars/2022.1-redhat-8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ base_python_dependencies:
- wheel==0.42.0

iag_ansible_version: ansible==2.10.7

iag_terraform_url: https://releases.hashicorp.com/terraform/0.12.31/terraform_0.12.31_linux_amd64.zip
2 changes: 0 additions & 2 deletions roles/gateway/vars/2022.1-rocky-8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ base_python_dependencies:
- wheel==0.42.0

iag_ansible_version: ansible==2.10.7

iag_terraform_url: https://releases.hashicorp.com/terraform/0.12.31/terraform_0.12.31_linux_amd64.zip
2 changes: 0 additions & 2 deletions roles/gateway/vars/2023.1-redhat-8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ base_python_dependencies:
- wheel==0.42.0

iag_ansible_version: ansible==7.7.0

iag_terraform_url: https://releases.hashicorp.com/terraform/0.12.31/terraform_0.12.31_linux_amd64.zip
2 changes: 0 additions & 2 deletions roles/gateway/vars/2023.1-redhat-9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ app_python_dependencies:
- ansible-pylibssh

iag_ansible_version: ansible==7.7.0

iag_terraform_url: https://releases.hashicorp.com/terraform/0.12.31/terraform_0.12.31_linux_amd64.zip
2 changes: 0 additions & 2 deletions roles/gateway/vars/2023.1-rocky-8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ base_python_dependencies:
- wheel==0.42.0

iag_ansible_version: ansible==7.7.0

iag_terraform_url: https://releases.hashicorp.com/terraform/0.12.31/terraform_0.12.31_linux_amd64.zip
2 changes: 0 additions & 2 deletions roles/gateway/vars/2023.1-rocky-9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ app_python_dependencies:
- ansible-pylibssh

iag_ansible_version: ansible==7.7.0

iag_terraform_url: https://releases.hashicorp.com/terraform/0.12.31/terraform_0.12.31_linux_amd64.zip
2 changes: 0 additions & 2 deletions roles/gateway/vars/2023.2-redhat-9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@ app_python_dependencies:
- pygnmi==0.8.9

iag_ansible_version: ansible==7.7.0

iag_terraform_url: https://releases.hashicorp.com/terraform/0.12.31/terraform_0.12.31_linux_amd64.zip
2 changes: 0 additions & 2 deletions roles/gateway/vars/2023.2-rocky-9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@ app_python_dependencies:
- pygnmi==0.8.9

iag_ansible_version: ansible==7.7.0

iag_terraform_url: https://releases.hashicorp.com/terraform/0.12.31/terraform_0.12.31_linux_amd64.zip
1 change: 0 additions & 1 deletion roles/platform/templates/iag_adapter_service_config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
"role": "all",
"playbook": "certified",
"script": "all",
"terraform": "all",
"collection_module": "all",
"collection_role": "all",
"nornir": "all",
Expand Down