erderial
13d4c57ee2
changes done as per request
2023-03-31 19:32:43 +03:00
erderial
88c47c9254
added functionality to check for net.*switch
...
added functionality to check for net.*switch
2023-03-31 16:43:15 +03:00
Jarrod Johnson
181aa876a7
Draft initramfs addons for Ubuntu 18
...
For older Ubuntu 18, the automated installer is debian-installer. Derive from the
prototype debian work, with same limitation about more limited network bringup that
we are stuck with from Debian limitations.
2023-03-30 16:36:40 -04:00
Jarrod Johnson
a0dbb90c77
Handle mismatched alpha and numeric in hyphenated string
...
If 123abc-abc123 were attempted, it would produce
a strange error
when it encounters a string compare to number.
Detect the scenario and treat it like similar situations.
2023-03-30 14:21:22 -04:00
Jarrod Johnson
cb129789b8
Properly recognize old ubuntu server install media
...
Older media designed around
debian installer requires
different handling.
2023-03-30 08:33:18 -04:00
Jarrod Johnson
7ac778106e
Also skip over failure to broadcast SSDP
2023-03-29 16:55:12 -04:00
Jarrod Johnson
f808c542e4
Ignore forbidden transmits on multicast
2023-03-29 16:53:40 -04:00
Jarrod Johnson
2a3bc61be3
Avoid overwriting groups on a redefine
...
When a node is being redefined, do
not populate groups.
That is only needed when truly defining for first time.
2023-03-29 09:28:52 -04:00
Jarrod Johnson
73fb54ccbc
Add more manual licenses to the kernel
2023-03-28 17:02:53 -04:00
Jarrod Johnson
578bd9702a
Sample script to install a cert into an XCC
2023-03-24 15:56:26 -04:00
Jarrod Johnson
ca5f19a4f1
Sample script for getting a CSR from an XCC
2023-03-24 15:46:21 -04:00
Jarrod Johnson
717df579aa
Add firmware to Geist support
2023-03-17 16:02:55 -04:00
Jarrod Johnson
70b973b1cf
Refactor measurements in Geist
...
Use common code
for sensor translation.
2023-03-17 15:34:26 -04:00
Jarrod Johnson
48696ef63d
Begin adding sensors to Geist PDUs
2023-03-17 14:37:03 -04:00
Jarrod Johnson
ff025989c6
Restore spacing around float in nodesensors
...
The managed formatting needs
to be padded in the non-csv output.
2023-03-16 17:29:36 -04:00
Jarrod Johnson
872718c658
Add notation about alternate location of ansible plays
...
Make it known that plays may now be private.
2023-03-16 15:19:15 -04:00
Jarrod Johnson
47af869360
Allow ansible plays to be private
...
Since the node need not have access,
the ansible plays may be made private instead.
This enables potentially sensitive plays
to be protected.
2023-03-16 15:15:46 -04:00
Jarrod Johnson
f256b1cd4e
Handle more complex ansible configuration
...
Some plays expect the
inventory from /etc/ansible, detect
if that inventory *could* apply, use if it can.
ansible users generally anticipate leveraging the implicit '.' in the role
path,
chdir to meet that expectation.
'become' in the play without 'become_user' can upset ansible runtime.
Since we are already root, we will just ignore the implicit 'become', since we already
match that behavior.
2023-03-16 13:24:46 -04:00
Jarrod Johnson
bfe03e6e01
Fix erronously dragging in CIDR to IPv4 configuration
2023-03-14 16:55:20 -04:00
Jarrod Johnson
8dc3dfd20c
Limit TRYNIC to only one NIC in ubuntu deployment
2023-03-14 15:36:24 -04:00
Jarrod Johnson
0cc588f8e9
Carry nic detection through to bottom of Ubuntu
2023-03-14 15:24:37 -04:00
Jarrod Johnson
e12578b6ac
Use media net config when media deployed
2023-03-14 13:32:20 -04:00
Jarrod Johnson
0366bbd26f
Place apikey where expected
2023-03-13 17:00:35 -04:00
Jarrod Johnson
5f4ab5ff80
Fix path to hmacfile
...
Since we are running
outside of chroot, need to adjust the $()
substitution.
2023-03-13 16:21:25 -04:00
Jarrod Johnson
88a6bccf12
Use b64 alphabet for b64
...
While POSIX hates +, b64 needs +
2023-03-13 16:20:17 -04:00
Jarrod Johnson
52c3e9d515
Do not care about port, let kernel decide
2023-03-13 11:19:11 -04:00
Jarrod Johnson
50a4ee2c6d
Have a quick sample script to get LLA of USB nic peer
2023-03-13 11:15:31 -04:00
Jarrod Johnson
15ff24fccd
Correct syntax errors in auth.py
2023-03-10 16:38:47 -05:00
Jarrod Johnson
d9cc9112f4
Add identity image deployment to Ubuntu
...
Support the api arm token
and media network
config for Ubuntu.
2023-03-10 16:23:48 -05:00
Jarrod Johnson
5418d9ea97
Place a common script for setupssh
2023-03-10 16:05:29 -05:00
Jarrod Johnson
2aeade1e74
Merge pull request #88 from erderial/patch-6
...
updated with custom yaml file for auth
2023-03-09 15:48:12 -05:00
erderial
85f9dc12fb
Update auth.py
2023-03-09 22:38:37 +02:00
erderial
56dea2422a
Update auth.py
2023-03-07 21:08:01 +02:00
Jarrod Johnson
8b89232922
Do not get collective member when collective doesn't exist
2023-03-06 16:59:07 -05:00
Jarrod Johnson
22c464e092
Only add self to collective if self not yet in collective
...
Previously, it was safe to just do all the time, but now it may lose
the role.
2023-03-06 16:49:03 -05:00
Jarrod Johnson
4d9b11bc55
Fix quorum when there is no collective yet
2023-03-06 16:38:09 -05:00
Jarrod Johnson
baa365fcac
Implement non-voting collective members
...
Provide for applications
where only a small subset of collective
members should be
considered to count
toward whether the collective
can proceed.
Commonly, 'service' nodes may
be numerous to do work, but may all want to go offline
during a maintenance window.
2023-03-06 11:56:15 -05:00
Jarrod Johnson
a385b1e93d
Try strategy to have confignet run
...
confignet is special, it is designed
to work when networking
isn't right. So have it run during firstboot
in case post fouled up
the network for firstboot.
2023-02-28 12:12:36 -05:00
Jarrod Johnson
733b6853dd
Up newly added interfaces as a matter of course
2023-02-28 12:04:20 -05:00
Jarrod Johnson
b4182cd4b5
Fix formation of error message
...
Use format to take in the parameters regardless of type
2023-02-27 14:55:01 -05:00
erderial
cf2f5aac7b
Merge branch 'lenovo:master' into patch-6
2023-02-27 18:27:39 +02:00
Jarrod Johnson
9f7e53701e
Avoid latching onto USB nic in a vswitch as 'the nic'
...
In esxi, some builds may have USB nic brought up in a vswitch.
Detect and avoid that scenario.
2023-02-27 10:43:40 -05:00
erderial
3b9f9abdd9
Merge pull request #2 from erderial/erderial-patch-1
...
updated auth.py with some changes
2023-02-27 17:36:20 +02:00
erderial
b800aa032e
updated auth.py with some changes
...
updated auth.py with some changes. Need to add the check_for_yaml() function to main.py as well
2023-02-27 17:10:17 +02:00
Jarrod Johnson
70d8a1059c
Consistently treat bytes as bytes in ssh
...
In Python3 systems,
there would be confusion
about bytes versus str.
Fix this so that ssh can work more consistently.
2023-02-24 15:47:20 -05:00
Jarrod Johnson
59b07665ab
Modify float formatting again
...
Make sure at least one decimal is in a float.
Maximum precision of 5 past.
2023-02-24 12:03:43 -05:00
Jarrod Johnson
5ea214a726
Use eventlet subprocess
...
sshutil uses eventlet subprocess,
making calledprocesserror
hard to catch.
Adjust to consistently use same
subprocesss module.
2023-02-22 16:34:13 -05:00
Jarrod Johnson
b99034f539
Improve reliability of collective join
...
While servicing an enrollment,
there's a window for a collective
member to be 'defined' but not
yet active, meaning quorum may transiently be lost as multiple enrollments progress.
Serialize enrollments by holding the enrollment process open.
Also, there is a chance that a transient transfer error may occur during loading
of the DB. In such a case, restart
the connection rather thn aborting.
2023-02-22 16:11:38 -05:00
Jarrod Johnson
6df2e822a5
Correct api call in discovery
2023-02-22 09:34:32 -05:00
Jarrod Johnson
2379f6f90f
Change nodesensors format of float
...
Floats are either unnecessarily long
in normal output, or too unconstrained in CSV output.
Normalize to as many digits as 'makes sense' up to 5 digits.
5 miight seem a bit much, but one common metric is kWh, which may need
that precision over short intervals.
2023-02-22 08:41:46 -05:00