From c8e563e9ea65812f6bba74309545a001389e1953 Mon Sep 17 00:00:00 2001 From: Steven Carter Date: Wed, 20 Sep 2023 06:26:41 -0500 Subject: [PATCH 1/2] Initial changes to support PATty --- roles/nso/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nso/tasks/main.yml b/roles/nso/tasks/main.yml index 3abf4a7..a19aaa6 100644 --- a/roles/nso/tasks/main.yml +++ b/roles/nso/tasks/main.yml @@ -10,7 +10,7 @@ # the inventory # - set_fact: - nso_rest_url: "http://{{ hostvars[nso_hostname].ansible_host }}:8080" + nso_rest_url: "http://{{ hostvars[nso_hostname].ansible_host }}:{{ hostvars[nso_hostname].nso_api_port | default(8080) }}" when: "not nso_rest_url and nso_host_group in groups" vars: nso_hostname: "{{ groups[nso_host_group] | first }}" From 2ac0b98b95a0b31ac158c6b5906ffa649e10e919 Mon Sep 17 00:00:00 2001 From: Jason King Date: Fri, 8 Dec 2023 17:39:30 -0800 Subject: [PATCH 2/2] Updates for working with proxies in NSO (#37) * Added option to specify remote secondary when defining an auth group * Added option to specify NED settings when adding host to NSO (useful for proxy settings) * Updated release version to 1.2.14 --- galaxy.yml | 2 +- roles/nso/tasks/add_auth_groups.yml | 1 + roles/nso/tasks/add_host.yml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/galaxy.yml b/galaxy.yml index c1bfd38..061a139 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -8,7 +8,7 @@ namespace: ciscops name: mdd # The version of the collection. Must be compatible with semantic versioning -version: 1.2.13 +version: 1.2.14 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md diff --git a/roles/nso/tasks/add_auth_groups.yml b/roles/nso/tasks/add_auth_groups.yml index 1f912a6..96d23e2 100644 --- a/roles/nso/tasks/add_auth_groups.yml +++ b/roles/nso/tasks/add_auth_groups.yml @@ -11,6 +11,7 @@ default-map: remote-name: "{{ item.value.remote_name }}" remote-password: "{{ item.value.remote_password }}" + remote-secondary-password: "{{ item.value.remote_secondary_password | default(omit)}}" loop: "{{ nso_auth_groups | dict2items }}" no_log: true diff --git a/roles/nso/tasks/add_host.yml b/roles/nso/tasks/add_host.yml index fa8f9a1..20c2b11 100644 --- a/roles/nso/tasks/add_host.yml +++ b/roles/nso/tasks/add_host.yml @@ -10,6 +10,7 @@ description: CONFIGURED BY ANSIBLE! name: "{{ device_name | default(inventory_hostname) }}" authgroup: "{{ nso_auth_group | default('default') }}" + ned-settings: "{{ ned_settings | default(omit) }}" device-type: cli: ned-id: "{{ device_ned | default(nso_default_ned) }}"