Jarrod Johnson
9757cd1ae3
Check the profile *before* rebooting systems
...
This provides a much better experience when a typo or
other mistake has a profile that is not actionable.
2023-11-16 10:20:48 -05:00
Jarrod Johnson
40c3f2da53
Actually display deployment state, when available
2023-01-13 13:02:17 -05:00
Jarrod Johnson
51e53405d8
Add attributes for profiles to report state
...
Profiles may want to report things
like success and error
2023-01-13 12:54:21 -05:00
Jarrod Johnson
84783c0c19
Add error check to noderange for nodedeploy
2022-12-01 14:09:25 -05:00
Jarrod Johnson
40a187d2aa
Reverse ordering of reboot and api arming.
...
Technically there's room for a race condition where boot is attempted
before the profile is ready, but it's highly unlikely.
Conversely, there is a potential confusing race condition today where
restarting a deploymennt without armed api causes
it to be disarmed before the boot is attempted.
2022-03-16 14:57:46 -04:00
Jarrod Johnson
db9df97fa0
Check and error if user request non-existant profile
...
This provides nice and immediate feedback for a common mistake.
2021-08-09 09:49:10 -04:00
Jarrod Johnson
5160023cc4
Update nodedeploy error message
...
We can't tell which argument was omitted,
so warn that both are needed.
2021-01-13 16:43:41 -05:00
Jarrod Johnson
aaff8d281c
Add warning if someone tries to -n without a profile name.
2020-08-26 16:10:59 -04:00
Jarrod Johnson
c3403f339e
Per request, change -p
...
The request was for -p to modify -n behavior rather than replace it. New
syntax always needs -n to
do deploymennt, with -p opting out of BMC interaction.
2020-08-26 12:04:00 -04:00
Jarrod Johnson
463584f301
Warn that -n and -p are exclusive
2020-08-26 11:05:27 -04:00
Jarrod Johnson
53f317fc09
Enhance nodedeploy status text
2020-08-25 16:01:50 -04:00
Jarrod Johnson
4b75f958ff
Add function of nodedeploy to query current profile.
2020-08-25 15:47:44 -04:00
Jarrod Johnson
264b0be853
Use correct argument parsing
2020-08-25 14:29:23 -04:00
Jarrod Johnson
ff0955d6be
Final fix for nodedeploy without profile
2020-08-25 14:28:14 -04:00
Jarrod Johnson
14767e2909
Fix nodedeploy -c
2020-08-25 14:05:43 -04:00
Jarrod Johnson
f5f7643734
Change -c to a store_true
2020-08-25 09:58:58 -04:00
Jarrod Johnson
3256899acf
Add a nodedeploy clear
...
This will allow a pendingprofile to be cleared.
2020-08-24 16:05:58 -04:00
Jarrod Johnson
f70a3daf9a
Clear both appropriate profile attributes
...
When setting a pending profile. clear any staged or established profile.
2020-07-01 15:39:12 -04:00
Jarrod Johnson
2481759d44
Correct syntax error in nodedeploy
2020-07-01 15:16:39 -04:00
Jarrod Johnson
78e5d343e7
Implement a 'staged' phase of profile
...
This allows a limbo where remote deployment is blocked
but final deployment is not yet flagged.
2020-07-01 14:01:28 -04:00
Jarrod Johnson
51bc7dc88f
Add nodedeploy command
...
This is akin to rinstall, but with
better tab completion and such
2020-05-20 16:21:08 -04:00