Jarrod Johnson
bf158bc5aa
Prep for diskless specific profile categories
2021-06-03 18:20:47 -04:00
Jarrod Johnson
8228c345bc
Fix the build path of the stateless path
2021-06-03 18:12:18 -04:00
Jarrod Johnson
8eecd03d4b
Correct path name in build process
2021-06-03 17:50:01 -04:00
Jarrod Johnson
044ae53ae3
Add symlink for site, and placeholder for addons
...
Will need to detect the proper 'category' for
the addons link.
2021-06-03 17:20:41 -04:00
Jarrod Johnson
1a30876a2d
Begin work to package diskless support
...
First will work on the 'addons' portion of the needed
work.
2021-06-03 17:17:42 -04:00
Jarrod Johnson
e0c59cc341
Fixup c utilities and add start_root
...
The diskless will use start_root to boot the 'main' OS as a container.
2021-06-03 17:06:10 -04:00
Jarrod Johnson
93c21d4148
Commit to python3 ofr imgutil
...
The imgutil will never be supported with python2,
so we will go ahead and commit to python.
2021-06-03 16:52:22 -04:00
Jarrod Johnson
e23a88a4c3
Have resolv.conf more reliably work
...
Also, make sure it is read-only in the exec case
2021-06-03 15:47:17 -04:00
Jarrod Johnson
db965f133e
Add a 'pack' and attempt to bind /etc/resolv.conf on exec
...
This facilitates custom manual image work
2021-06-02 17:26:46 -04:00
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