mirror of
https://github.com/xcat2/confluent.git
synced 2026-06-02 17:28:32 +00:00
Add sample material for nodeconsole automation for MOK manipulation
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
expect Press any key to perform MOK management
|
||||
send a
|
||||
expect Delete MOK
|
||||
send <down><enter>
|
||||
expect Continue
|
||||
send <down><enter>
|
||||
expect Yes
|
||||
send <down><enter>
|
||||
expect Password:
|
||||
send <env:MOKPASS><enter>
|
||||
expect Reboot
|
||||
send <enter>
|
||||
exit
|
||||
@@ -0,0 +1,13 @@
|
||||
expect Press any key to perform MOK management
|
||||
send a
|
||||
expect Enroll MOK
|
||||
send <down><enter>
|
||||
expect Continue
|
||||
send <down><enter>
|
||||
expect Yes
|
||||
send <down><enter>
|
||||
expect Password:
|
||||
send <env:MOKPASS><enter>
|
||||
expect Reboot
|
||||
send <enter>
|
||||
exit
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
if [ -z "$MOKPASS" ]; then
|
||||
echo "MOKPASS must be set to proceed"
|
||||
exit 1
|
||||
fi
|
||||
set -euo pipefail
|
||||
node=$2
|
||||
file=$1
|
||||
nodersync $file $node:/tmp/
|
||||
ssh $node mokutil --delete /tmp/$file --root-pw
|
||||
ssh $node reboot
|
||||
nodeconsole $node -ea deletemok.nca
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
if [ -z "$MOKPASS" ]; then
|
||||
echo "MOKPASS must be set to proceed"
|
||||
exit 1
|
||||
fi
|
||||
set -euo pipefail
|
||||
node=$2
|
||||
file=$1
|
||||
nodersync $file $node:/tmp/
|
||||
ssh $node mokutil --import /tmp/$file --root-pw
|
||||
ssh $node reboot
|
||||
nodeconsole $node -ea enrollmok.nca
|
||||
Reference in New Issue
Block a user