Jarrod Johnson
02da50af8b
Tighter permissions on /var/log/confluent
2021-12-08 07:42:19 -05:00
Jarrod Johnson
77de3ab25b
Apply more restrictive permissions to /var/log/confluent/
...
While confluent shouldn't put anything sensitive in the log, custom
content may. To mitigate the risk, it will now lock down the
log permissions.
2021-12-07 07:21:04 -05:00
Jarrod Johnson
224663d0c8
Fix execution of confluent functions after run_remote_python
2021-10-29 13:50:04 -04:00
Jarrod Johnson
729408a0cb
Fix run_remote aafter the cleanup was added
...
The removal of the temp dir needed to be linked with
whether the script was dedicated or shared tmp with a run_remote_parts.
2021-10-29 13:01:59 -04:00
Jarrod Johnson
8eb6ce0b69
Specify absolute path for mktemp
...
mktemp defaults to relative, to produce the correct
behavior, must be absolute template.
2021-10-25 12:03:26 -04:00
Jarrod Johnson
957679db3c
Update syncfile examples and el7 support
2021-10-15 16:24:22 -04:00
Jarrod Johnson
f33ed9b4d9
Cleanup after script execution
...
Leave cleaner tmp directories when functions are ran.
2021-10-15 12:16:48 -04:00
Jarrod Johnson
04dd374bfb
Synchronize functions across the supported OSes
2021-10-15 12:10:24 -04:00
Jarrod Johnson
57f346fa4c
Implement syncfiles parameters
...
chmod and chown as directed
by the syncfiles file if present
2021-10-08 10:27:57 -04:00
Jarrod Johnson
3b7e7afc24
Fix inconsistent handling of marginal id in syncfileclient
...
Also, resynchronize syncfileclient across the distributions.
2021-10-07 12:36:52 -04:00
Jarrod Johnson
6acd3c2b7d
Add ability to execute functions as a command
...
This gives easier access over nodeshell and similar to run functions by executing the
functions as a script with arguments.
2021-09-20 08:00:35 -04:00
Jarrod Johnson
06e32c53cc
Fix overly vague extraction of deploy_server
...
If deploy_server appears anywhere, it confuses
the scripts
2021-09-13 10:23:13 -04:00
Jarrod Johnson
6bf51a20b2
Set nodename as hostname prior to post for el class distros
2021-08-26 09:33:16 -04:00
Jarrod Johnson
225618ef75
Add stall in firstboot for deployer to be available
2021-08-09 15:19:36 -04:00
Jarrod Johnson
663f8fc085
Add nodename to set_confluent_vars
...
It is expected that nodename would also be set.
2021-07-23 19:08:06 -04:00
Jarrod Johnson
b291dee68c
Add bind-utils, skip iwl*-firmware, and alphabatize packages
2021-07-08 11:38:50 -04:00
Jarrod Johnson
38a4e20b9a
Fix issues around imageboot and source in functions
2021-06-15 08:31:45 -04:00
Jarrod Johnson
763feda63b
Fix missed references to old variable names
2021-05-03 15:54:39 -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
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
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
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
c05f18d865
Remove abortive custom names for pre.sh.custom
2021-04-22 11:48:05 -04:00
Jarrod Johnson
7957a6abd4
Add invoking syncfile activity to the default profiles
2021-03-29 14:03:11 -04:00
Jarrod Johnson
39a7d8d131
Move the syncfileclient into scripts
...
This does not need to be in initramfs,
so do not grow addons.cpio.
2021-03-29 13:55:44 -04:00
Jarrod Johnson
e38dbc4470
Pull in the automation key into default profiles
2021-03-10 15:41:01 -05:00
Jarrod Johnson
866f138652
Fix mistakes in sample mofed post script
2021-03-04 13:30:00 -05:00
Jarrod Johnson
209430ed35
Fix path mistake in mofed.post script
...
mofed.post had incorrect path to mofed.tgz after
fetch. Correct the path mistake.
2021-01-28 16:45:39 -05:00
Jarrod Johnson
cd251fa5d6
Add support for OL7 and older other EL7 flavors
...
Older EL7 didn't have platform-python in installer,
change to fallback to old /usr/bin/python if
needed.
2020-12-10 10:54:30 -05:00
Jarrod Johnson
674d32e9e5
Correct mistake in previous pre scripts
2020-12-01 12:55:41 -05:00
Jarrod Johnson
0137f99636
Add installedargs to rhel family
...
Provide a profile.yaml line that can be used to add arguments to
installed kernel as well as install kernel.
2020-12-01 10:53:26 -05:00
Jarrod Johnson
9a0c4ce4ce
Fix function handling of subdirs of scripts
2020-10-09 14:07:58 -04:00
Jarrod Johnson
745b82a603
Add examples for MOFED in EL7 distros
2020-10-08 13:37:19 -04:00
Jarrod Johnson
d466595828
Recognize a different m.2 name
2020-10-06 09:36:12 -04:00
Jarrod Johnson
b0b965db98
Use newer functions in genesis and el7
2020-10-05 16:57:46 -04:00
Jarrod Johnson
b9fffad1f8
Fix post.sh comment documentation
2020-08-28 17:08:36 -04:00
Jarrod Johnson
59e739a143
Further tweaks to postscript library functions
2020-08-21 17:42:02 -04:00
Jarrod Johnson
2e2a34b470
Reduce curl verbosity
...
Hard to follow with so much extra output
2020-08-21 17:07:02 -04:00
Jarrod Johnson
b8aa54fb8e
Make output consistent for shell/python remote exec
2020-08-21 17:03:12 -04:00
Jarrod Johnson
67920980c8
Fix syntax error in functions library for pre/post/firstboot scripts
2020-08-21 16:39:37 -04:00
Jarrod Johnson
e9dabdf51b
Add clearer delineation between scripts in output
2020-08-21 10:35:28 -04:00