Skip to content

Commit cbb273c

Browse files
feat: Complete device upgrade process standalone
1 parent 0474e4c commit cbb273c

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

roles/snapshot_report_from_files/meta/argument_specs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ argument_specs:
1414
right_snapshot:
1515
type: "str"
1616
required: true
17-
description: "The second snapshot to compare, usually this snapshot is the one taken after any upgrades or changes"
17+
description: "The second snapshot to compare, usually this snapshot is the one taken after any upgrades or changes"
18+
report_output_file:
19+
type: "str"
20+
required: false
21+
description: "The name of the report to save. Defaults to report.json"

roles/snapshot_report_from_files/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
set_fact:
99
left_full_path: "{{ [snapshot_directory, left_snapshot] | path_join }}.json"
1010
right_full_path: "{{ [snapshot_directory, right_snapshot] | path_join }}.json"
11+
report_output_file: "{{ report_output_file | default('report.json') }}"
1112

1213
- name: Set Snapshot Data
1314
set_fact:

roles/upgrade/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
- name: Install target version - !! DEVICE WILL RESTART !!
2323
paloaltonetworks.panos.panos_software:
2424
provider: '{{ provider }}'
25-
version: '{{ base_image }}'
25+
version: '{{ version }}'
2626
install: true
2727
restart: true
2828

test_single_device_upgrade.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,4 @@
5151
vars:
5252
left_snapshot: "pre_upgrade_snapshot_{{ serialno }}"
5353
right_snapshot: "post_upgrade_snapshot_{{ serialno }}"
54+
report_output_file: "{{ serialno }}_report.json"

0 commit comments

Comments
 (0)