mirror of
https://git.valherun.com/valherun/pxe_boot_alma.git
synced 2026-10-15 21:22:03 -04:00
- restructure boot/kickstarts/scripts/docs into homelab/ - docs: alma9->10 breaking changes, CIS hardening, kickstart changes - add find_cron_entries.sh helper and codex running memory notes Co-Authored-By: Claude Fable 5 <[email protected]>
25 lines
467 B
Python
25 lines
467 B
Python
#!/usr/bin/python
|
|
|
|
import os
|
|
import sys
|
|
import logging
|
|
from logging.handlers import SysLogHandler
|
|
|
|
logger = logging.getLogger('KickStart')
|
|
logger.setLevel(logging.INFO)
|
|
|
|
syslog = SysLogHandler(('10.1.1.1', 514))
|
|
syslog.setFormatter(logging.Formatter('%(name)s: %(message)s'))
|
|
|
|
logger.addHandler(syslog)
|
|
|
|
if len(sys.argv) > 1:
|
|
msg = " ".join(sys.argv[1:])
|
|
print msg
|
|
logger.info(msg)
|
|
|
|
else:
|
|
for line in sys.stdin:
|
|
print line,
|
|
logger.info(line)
|