Jarrod Johnson
9be039b8e5
Continue advancing the img build and exec utility
2021-05-26 15:18:01 -04:00
Jarrod Johnson
a3266ad01c
Begin next draft of genimage
...
Write in python and support sourcing
only from local directories if desired.
2021-05-25 17:27:07 -04:00
Jarrod Johnson
8455d30687
Disable selinux for now in a built image
2021-05-24 18:30:48 -04:00
Jarrod Johnson
903160f748
Fix the draft genimage script
2021-05-24 17:37:47 -04:00
Jarrod Johnson
52005dd6ae
Further flesh out diskless profile
2021-05-24 16:20:54 -04:00
Jarrod Johnson
9ca42081de
Try to add onboot service to diskless
...
It didn't quite work yet, but commit the progress so far.
2021-05-21 17:07:32 -04:00
Jarrod Johnson
6c6b766f37
Fix non-root node to node ssh in diskless
2021-05-21 13:18:29 -04:00
Jarrod Johnson
a9b412fb81
Add node to node ssh to diskless
2021-05-21 12:41:58 -04:00
Jarrod Johnson
7c4b500e92
Add boot.img function to CoreOS
2021-05-21 11:11:01 -04:00
Jarrod Johnson
31ca787380
Register the service as needed for startup in CoreOS init
2021-05-21 07:50:50 -04:00
Jarrod Johnson
0ee67b8584
Mak the script executable for coreos bringup
2021-05-21 07:48:25 -04:00
Jarrod Johnson
19874d8032
Add coreos support to build
2021-05-21 07:32:47 -04:00
Jarrod Johnson
086def0bb8
Updates to the coreos support
...
Bring in and let ignition do the driving if the import had one.
2021-05-20 17:33:22 -04:00
Jarrod Johnson
9ac4cf0641
Rename generically to coreos
...
We should be able to support either RH or Fedora
flavors.
2021-05-19 17:28:05 -04:00
Jarrod Johnson
52b39e632d
Draft CoreOS support
...
Preliminary work toward supporting CoreOS
2021-05-19 17:12:56 -04:00
Jarrod Johnson
85c3ca8c75
Pass root password onto diskless if set
...
This honors the administrator
setting the password in the
confluent database for the diskless node.
2021-05-18 15:25:26 -04:00
Jarrod Johnson
a1ddb2323a
Have networkmanager be content with diskless
...
Create an .nmconnection file
that sastisfies networkmanager
about the interface that confluent brought up.
2021-05-18 15:24:43 -04:00
Jarrod Johnson
a93a8d5cd1
Add ice driver to default diskless images
2021-05-18 09:55:27 -04:00
Jarrod Johnson
7e14b41ef4
Fix typo in the genimage script
2021-05-14 16:40:48 -04:00
Jarrod Johnson
9c8529e9b4
Fix network interface names in confluent diskless
2021-05-14 16:36:43 -04:00
Jarrod Johnson
90daf5d5e3
Further advance the confluent diskless support
2021-05-14 15:58:57 -04:00
Jarrod Johnson
103b398629
Begin work to use urlmount
2021-05-13 18:58:37 -04:00
Jarrod Johnson
51dece94ab
Add draft for what will be genimage
...
Still very much prototype, but put it in github
to prepare to bring it together.
2021-05-12 18:13:55 -04:00
Jarrod Johnson
9f45b0ed56
Draft support for stateless images
...
Aim is to support a few modes of operation:
-tar.xz, extracted to memory (most inefficient, least dependency)
-nfs read-only (less secure, more efficient, depends on getting nfs
export just right)
-nfs image read-only (same as above, but using squashfs to make overlay
more easily happily)
-gocryptfs on nfs (this provides encryption and integrity check)
2021-05-11 17:05:12 -04:00
Jarrod Johnson
d69eb6ef12
Change apiclient to append if outputting to existing file
2021-05-05 17:45:04 -04:00
Jarrod Johnson
257edff3a7
Redo ssh certs on firstboot for SUSE
...
For whatever reason, SUSE loses the certificate during firstboot.
2021-05-03 16:47:24 -04:00
Jarrod Johnson
763feda63b
Fix missed references to old variable names
2021-05-03 15:54:39 -04:00
Jarrod Johnson
508e5b4a46
Fix suse run_remote_parts
...
Behave more consistently
2021-05-03 15:36:27 -04:00
Jarrod Johnson
7676c4fd26
Restore EL8 treatment
...
The changes caused EL8 to lose some required special treatment.
2021-05-03 15:18:33 -04:00
Jarrod Johnson
c3b954a743
Move suse15 to log like rhel
2021-05-03 14:50:04 -04:00
Jarrod Johnson
08dfd55ea0
Rename variables in the ubuntu initramfs portion
2021-05-03 13:28:28 -04:00
Jarrod Johnson
cf6975ded3
Fix python2/3 handling in el8 pre.sh
2021-05-03 13:11:52 -04:00
Jarrod Johnson
d17b1d060c
Prepend confluent_ to vars and switch to explicitly requesting directory
...
The 'profile' variable notably induces dracut to be excruciatingly slow,
mitigate chance by putting confluent before apikey, mgr, and profile.
Further, it has been requested to have the scripts use same name on
server for directory moving forward. Implement this request while
allowing existing OS profiles to keep working.
2021-05-03 12:48:08 -04:00
Jarrod Johnson
fcb4b33e8e
Include stderr in the script execution logs
2021-05-03 08:57:59 -04:00
Jarrod Johnson
b5b9631b3f
Correct typo in pre script
2021-04-30 16:27:16 -04:00
Jarrod Johnson
196ed31bee
Retry node api token retrieval, with message
2021-04-30 15:17:02 -04:00
Jarrod Johnson
bb05f72583
Add source_remote_parts
...
This function will enable a script to invoke multiple
pieces in same variable/function context
2021-04-30 14:33:02 -04:00
Jarrod Johnson
68b4f83627
Have firstboot script be logged better
...
Also show on screen firstboot script execution.
2021-04-30 14:08:42 -04:00
Jarrod Johnson
672bc4f754
Amend postscript logging strategy
...
This adjusts to avoid hangs in
anaconda
2021-04-30 13:38:31 -04:00
Jarrod Johnson
4df3fda8ea
Change logging/display for RH oses
...
The pre and post phases are
desirable to see both in logs and consoles.
Unfortunately, anaconda cheaps out by using communicate(), which means
the logs are unwritten until the end.
Change by using bash's redirectiors
to create a dynamically updated logfile
and tail -f that.
2021-04-30 09:39:00 -04:00
Jarrod Johnson
f32619aa3e
Allow firstboot to reboot in RH postscripts
...
Sometimes firstboot scripts want to reboot.
In such a case, start firstboot once, and if reboot prevents completion,
then next boot will updatestatus, but not run firstboot scripts and
deregister itself.
2021-04-29 09:20:24 -04:00
Jarrod Johnson
def534e73f
Fixes for boot by DHCP and by MAC
2021-04-28 16:43:11 -04:00
Jarrod Johnson
ca78b664c9
Get rid of minor warning about RSAAuthentication
2021-04-28 14:06:57 -04:00
Jarrod Johnson
0e55d390e3
Fix up post output to console
2021-04-28 13:46:26 -04:00
Jarrod Johnson
002146b2f7
Try to output pre/post content to console during install
2021-04-28 13:27:34 -04:00
Jarrod Johnson
917a51a406
Error if bind to privileged port fails
2021-04-28 08:37:23 -04:00
Jarrod Johnson
affbbcc89b
Fix syncfiles for el7
2021-04-23 12:27:42 -04:00
Jarrod Johnson
45cc4b7788
Add documentation syncfiles examples
...
Also, check to make sure a syncfiles has actual
work to do before triggering a greenthread and
the client to start polling.
2021-04-23 11:09:35 -04:00
Jarrod Johnson
945f108548
Fix inconsistencies between el7 and el8
...
While there are still differences, minimize
the ones that aren't for specific reasons
2021-04-23 09:08:50 -04:00
Jarrod Johnson
c38aac88df
Avoid overwriting customized installdisk or partitioning
2021-04-22 12:12:58 -04:00