Skip to content

Commit decd1ad

Browse files
chore: Update all other references to environent variables #22
1 parent 8b0453d commit decd1ad

10 files changed

Lines changed: 29 additions & 29 deletions

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ all:
6868
hosts:
6969
lab-panorama01:
7070
ansible_host: < YOUR PANORAMA HOSTNAME OR IP HERE >
71-
# Password should be provided via PAN_PASSWORD environment variable
72-
# Example: export PAN_PASSWORD="admin_password"
71+
# Password should be provided via ANSIBLE_NET_PASSWORD environment variable
72+
# Example: export ANSIBLE_NET_PASSWORD="admin_password"
7373

74-
# Username should be provided via PAN_USERNAME environment variable
75-
# Example: export PAN_USERNAME="admin"
74+
# Username should be provided via ANSIBLE_NET_USERNAME environment variable
75+
# Example: export ANSIBLE_NET_USERNAME="admin"
7676
vars:
7777
# Common variables
7878
ansible_connection: local

docs/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ all:
4545
hosts:
4646
lab-panorama01:
4747
ansible_host: < YOUR PANORAMA HOSTNAME OR IP HERE >
48-
# Password should be provided via PAN_PASSWORD environment variable
49-
# Example: export PAN_PASSWORD="admin_password"
48+
# Password should be provided via ANSIBLE_NET_PASSWORD environment variable
49+
# Example: export ANSIBLE_NET_PASSWORD="admin_password"
5050

51-
# Username should be provided via PAN_USERNAME environment variable
52-
# Example: export PAN_USERNAME="admin"
51+
# Username should be provided via ANSIBLE_NET_USERNAME environment variable
52+
# Example: export ANSIBLE_NET_USERNAME="admin"
5353
vars:
5454
# Common variables
5555
ansible_connection: local
@@ -114,8 +114,8 @@ policy_creation_policy_files:
114114
vars:
115115
provider:
116116
ip_address: "{{ ansible_host }}"
117-
username: "{{ lookup('env', 'PAN_USERNAME') }}"
118-
password: "{{ lookup('env', 'PAN_PASSWORD') }}"
117+
username: "{{ lookup('env', 'ANSIBLE_NET_USERNAME') }}"
118+
password: "{{ lookup('env', 'ANSIBLE_NET_PASSWORD') }}"
119119

120120
roles:
121121
- paloaltonetworks.panos_policy_automation.policy_creation # Note the included role

docs/user_guide/preset_policy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ in the one file - it's up to you!
129129
vars:
130130
provider:
131131
ip_address: "{{ ansible_host }}"
132-
username: "{{ lookup('env', 'PAN_USERNAME') }}"
133-
password: "{{ lookup('env', 'PAN_PASSWORD') }}"
132+
username: "{{ lookup('env', 'ANSIBLE_NET_USERNAME') }}"
133+
password: "{{ lookup('env', 'ANSIBLE_NET_PASSWORD') }}"
134134
policy_creation_source_ip: 8.8.8.8
135135
policy_creation_destination_ip: 10.10.11.5
136136
lookup_policy_application: ssh

example_playbook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
vars:
88
provider:
99
ip_address: "{{ ansible_host }}"
10-
username: "{{ lookup('env', 'PAN_USERNAME') }}"
11-
password: "{{ lookup('env', 'PAN_PASSWORD') }}"
10+
username: "{{ lookup('env', 'ANSIBLE_NET_USERNAME') }}"
11+
password: "{{ lookup('env', 'ANSIBLE_NET_PASSWORD') }}"
1212

1313
roles:
1414
- paloaltonetworks.panos_policy_automation.policy_creation # Note the included role

inventory.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# Ansible Inventory for PAN-OS Policy Orchestration Lab
33
#
44
# This inventory defines Palo Alto Networks devices for policy automation.
5-
# The PAN_PASSWORD environment variable must be set with the device password.
5+
# The ANSIBLE_NET_PASSWORD environment variable must be set with the device password.
66
#
77
# Usage:
8-
# export PAN_PASSWORD="your_device_password"
9-
# export PAN_USERNAME="your_panaorama_username"
8+
# export ANSIBLE_NET_PASSWORD="your_device_password"
9+
# export ANSIBLE_NET_USERNAME="your_panaorama_username"
1010
# ansible-playbook -i inventory.yml playbooks/orchestrator/lab.yml
1111

1212
all:
@@ -15,8 +15,8 @@ all:
1515
hosts:
1616
lab-panorama01:
1717
ansible_host: < YOUR PANORAMA HOSTNAME OR IP HERE >
18-
# Password should be provided via PAN_PASSWORD environment variable
19-
# Example: export PAN_PASSWORD="admin_password"
18+
# Password should be provided via ANSIBLE_NET_PASSWORD environment variable
19+
# Example: export ANSIBLE_NET_PASSWORD="admin_password"
2020
vars:
2121
# Common variables for lab environment
2222
ansible_connection: local

test_playbooks/test_filter_panos_op_get_routers_from_dict_or_list.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
vars:
88
provider:
99
ip_address: "{{ ansible_host }}"
10-
username: "{{ lookup('env', 'PAN_USERNAME') }}"
11-
password: "{{ lookup('env', 'PAN_PASSWORD') }}"
10+
username: "{{ lookup('env', 'ANSIBLE_NET_USERNAME') }}"
11+
password: "{{ lookup('env', 'ANSIBLE_NET_PASSWORD') }}"
1212
serialno: "{{ lookup('env', 'PAN_TEST_SERIAL') }}"
1313

1414
tasks:

test_playbooks/test_filter_panos_op_get_zone_from_interface.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
vars:
88
provider:
99
ip_address: "{{ ansible_host }}"
10-
username: "{{ lookup('env', 'PAN_USERNAME') }}"
11-
password: "{{ lookup('env', 'PAN_PASSWORD') }}"
10+
username: "{{ lookup('env', 'ANSIBLE_NET_USERNAME') }}"
11+
password: "{{ lookup('env', 'ANSIBLE_NET_PASSWORD') }}"
1212
serialno: "{{ lookup('env', 'PAN_TEST_SERIAL') }}"
1313

1414
tasks:

test_playbooks/test_filter_panos_op_policy_match_result_to_bool.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
vars:
88
provider:
99
ip_address: "{{ ansible_host }}"
10-
username: "{{ lookup('env', 'PAN_USERNAME') }}"
11-
password: "{{ lookup('env', 'PAN_PASSWORD') }}"
10+
username: "{{ lookup('env', 'ANSIBLE_NET_USERNAME') }}"
11+
password: "{{ lookup('env', 'ANSIBLE_NET_PASSWORD') }}"
1212
serialno: "{{ lookup('env', 'PAN_TEST_SERIAL') }}"
1313

1414
tasks:

test_playbooks/test_filter_panos_op_routing_result_to_interfaces.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
vars:
88
provider:
99
ip_address: "{{ ansible_host }}"
10-
username: "{{ lookup('env', 'PAN_USERNAME') }}"
11-
password: "{{ lookup('env', 'PAN_PASSWORD') }}"
10+
username: "{{ lookup('env', 'ANSIBLE_NET_USERNAME') }}"
11+
password: "{{ lookup('env', 'ANSIBLE_NET_PASSWORD') }}"
1212
serialno: "{{ lookup('env', 'PAN_TEST_SERIAL') }}"
1313

1414
tasks:

test_playbooks/test_filter_panos_op_stdout_to_dict.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
vars:
88
provider:
99
ip_address: "{{ ansible_host }}"
10-
username: "{{ lookup('env', 'PAN_USERNAME') }}"
11-
password: "{{ lookup('env', 'PAN_PASSWORD') }}"
10+
username: "{{ lookup('env', 'ANSIBLE_NET_USERNAME') }}"
11+
password: "{{ lookup('env', 'ANSIBLE_NET_PASSWORD') }}"
1212
serialno: "{{ lookup('env', 'PAN_TEST_SERIAL') }}"
1313

1414
tasks:

0 commit comments

Comments
 (0)