Skip to content

Commit

Permalink
Merge branch 'release/05.02.06.01'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mason J. Katz authored and Mason J. Katz committed Mar 4, 2019
2 parents 86b3ecc + b119f34 commit 15e439f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 14 deletions.
11 changes: 0 additions & 11 deletions common/nodes/base.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,8 @@ Base class for all nodes.

<!-- Rsyslog Configuration file -->
<stack:file stack:name="/etc/rsyslog.d/stacki.conf">
/*
Turn off escape character parsing.
This keeps tabs and newlines intact.
*/
$EscapeControlCharactersOnReceive off

# Send local0 facility to /var/log/local0
local0.* /var/log/local0

/*
If we're calling this from StackI
command line, stop processing now
*/
if $programname == 'SCL' then ~
</stack:file>

Expand Down
25 changes: 23 additions & 2 deletions common/src/stack/mq/producers/health.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import json
import stack.mq
import psutil
import subprocess
from pathlib import Path


Expand All @@ -17,10 +18,30 @@ class Producer(stack.mq.producers.ProducerBase):
"""

def schedule(self):
# The second stage of YaST brings up the MQ but
# isn't really ready to start reporting infomation.

# For SLES the YaST installer has a second stage after a
# reboot. This means all services are running even though the
# installer is not complete. Inspect the system to see if we
# are in that state, if so do not start the health messages
# After this stage completes the system will reboot again and
# the message queue will behave normally.
#
# For RedHat don't do anything special.

# SLES15

# surprise me

# SLES12
if Path('/var/lib/YaST2/reboot').is_file():
return 0

# SLES11
out = subprocess.run(['chkconfig', 'autoyast'],
stdout=subprocess.PIPE).stdout.decode()
if out.split() == [ 'autoyast', 'on']:
return 0

return 60

def produce(self):
Expand Down
2 changes: 1 addition & 1 deletion version.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export ROLL = stacki
export ROLLVERSION = 05.02.06.00
export ROLLVERSION = 05.02.06.01
#export ROLLVERSION = 5.0_$(shell date +%Y%m%d)_$(shell git rev-parse --short HEAD)
export RELEASE = $(shell $(STACKBUILD.ABSOLUTE)/bin/os-release)

Expand Down

0 comments on commit 15e439f

Please sign in to comment.