9b3d9bedab
This patch adds config files and scripts which are required for Ubuntu bootstrap system with Fuel Agent for deploy with Ironic. Change-Id: I0f6ef54b4e5f987a48a6d6c0d246c777de32ccb1 Co-Authored-By: Vasyl Saienko <vsaienko@mirantis.com>
10 lines
360 B
Bash
Executable File
10 lines
360 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SYSLOG_SERVER_IP=$(grep -oPz '(?<=\bip=)(\d+\.?){4}:\K(\d+\.?){4}' /proc/cmdline)
|
|
DEPLOYMENT_ID=$(grep -ioP '(?<=\bdeployment_id=)([0-9a-z-]+)\b' /proc/cmdline)
|
|
|
|
sed -i /etc/rsyslog.d/00-remote.conf -re "s/@SYSLOG_SERVER_IP@/$SYSLOG_SERVER_IP/"
|
|
sed -i /etc/rsyslog.d/00-remote.conf -re "s/@DEPLOYMENT_ID@/$DEPLOYMENT_ID/"
|
|
|
|
service rsyslog restart
|