-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor workflow.mmd to include content installation and reboot logic
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
graph TD | ||
A[Start] --> B{Parse command-line arguments} | ||
B --> C{Load environment variables from .env file} | ||
C --> D{Validate content_path argument} | ||
D --> E{Change firewall password} | ||
E --> F{Retrieve API key} | ||
F --> G{Check if content is installed} | ||
G --> |Content installed| H{Reboot firewall} | ||
H --> |Firewall rebooted| I[End] | ||
G --> |Content not installed| J{Retrieve license} | ||
J --> K{Install content workflow} | ||
K --> |Attempt = 1| L{Check for latest content version} | ||
L --> |Content found| M{Download software version} | ||
M --> |Download successful| N{Install specific content from servers} | ||
N --> |Install successful| O{Break} | ||
N --> |Install failed| P{Increment attempt} | ||
L --> |Content not found| Q{Download software version} | ||
Q --> |Download successful| R{Install specific content from servers} | ||
R --> |Install successful| O{Break} | ||
R --> |Install failed| P{Increment attempt} | ||
K --> |Attempt > 1| S{Install latest content from servers} | ||
S --> |Install successful| O{Break} | ||
S --> |Install failed| T{Import content using SCP} | ||
T --> |SCP successful| U{Install content via USB} | ||
U --> |Install successful| O{Break} | ||
U --> |Install failed| P{Increment attempt} | ||
O --> V{Private data reset workflow} | ||
V --> |Reset successful| W[End] | ||
V --> |Reset failed| X{Increment attempt} | ||
X --> |Attempt > max_attempts| Y[End] | ||
P --> |Attempt <= max_attempts| K | ||
P --> |Attempt > max_attempts| Z[End] |