-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support to configure ADC via NetScaler Console (ADM) as proxy
Signed-off-by: Sumanth Lingappa <sumanth.lingappa@cloud.com>
- Loading branch information
1 parent
b4de90d
commit c33a053
Showing
10 changed files
with
261 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
- name: Sample Playbook to demonstrate the usage of netscaler console as proxy server to configure the managed device | ||
hosts: localhost | ||
gather_facts: false | ||
tasks: | ||
- name: Sample Task | login | ||
delegate_to: localhost | ||
register: login_result | ||
netscaler.adc.login: | ||
nsip: "{{ lookup('env', 'NETSCALER_CONSOLE_IP') }}" | ||
nitro_protocol: http | ||
validate_certs: false | ||
# If this is false, then the `login` request will be sent to the ADC instead of the Console | ||
netscaler_console_as_proxy_server: true | ||
managed_netscaler_instance_ip: "{{ lookup('env', 'NETSCALER_NSIP') }}" | ||
managed_netscaler_instance_username: "{{ lookup('env', 'NETSCALER_NITRO_USER') }}" | ||
managed_netscaler_instance_password: "{{ lookup('env', 'NETSCALER_NITRO_PASS') }}" | ||
username: "{{ lookup('env', 'NETSCALER_CONSOLE_USER') }}" | ||
password: "{{ lookup('env', 'NETSCALER_CONSOLE_PASS') }}" | ||
- name: Print login sessionid | ||
ansible.builtin.debug: | ||
var: login_result.sessionid | ||
- name: Sample Task | nsip | ||
delegate_to: localhost | ||
netscaler.adc.nsip: | ||
nsip: "{{ lookup('env', 'NETSCALER_CONSOLE_IP') }}" | ||
nitro_protocol: http | ||
validate_certs: false | ||
netscaler_console_as_proxy_server: true | ||
managed_netscaler_instance_ip: "{{ lookup('env', 'NETSCALER_NSIP') }}" | ||
managed_netscaler_instance_username: "{{ lookup('env', 'NETSCALER_NITRO_USER') }}" | ||
managed_netscaler_instance_password: "{{ lookup('env', 'NETSCALER_NITRO_PASS') }}" | ||
nitro_auth_token: "{{ login_result.sessionid }}" | ||
state: present | ||
ipaddress: 4.4.4.4 | ||
netmask: 255.255.255.192 | ||
type: VIP | ||
- name: Sample Task | logout | ||
delegate_to: localhost | ||
netscaler.adc.logout: | ||
nsip: "{{ lookup('env', 'NETSCALER_CONSOLE_IP') }}" | ||
nitro_protocol: http | ||
validate_certs: false | ||
# If this is false, then the `logout` request will be sent to the ADC instead of the Console | ||
netscaler_console_as_proxy_server: true | ||
managed_netscaler_instance_ip: "{{ lookup('env', 'NETSCALER_NSIP') }}" | ||
managed_netscaler_instance_username: "{{ lookup('env', 'NETSCALER_NITRO_USER') }}" | ||
managed_netscaler_instance_password: "{{ lookup('env', 'NETSCALER_NITRO_PASS') }}" | ||
nitro_auth_token: "{{ login_result.sessionid }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters