Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
80 lines (63 sloc) 3.04 KB
---
apiVersion: v1
kind: ConfigMap
data:
supervisord.conf: |
[supervisord]
# Run as a foreground process to keep the container running
nodaemon=true
[supervisorctl]
serverurl = unix:///var/run/supervisor/supervisor.sock
prompt = supervisorctl
# https://github.com/Supervisor/supervisor/issues/480#issuecomment-145193475
[unix_http_server]
file = /var/run/supervisor/supervisor.sock
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[program:jabber-router]
user=jabber
command=/usr/bin/router -c /etc/jabberd/router.xml
[program:jabberd]
user=jabber
command=/usr/bin/sm -c /etc/jabberd/sm.xml
[program:jabber-c2s]
user=jabber
command=/usr/bin/c2s -c /etc/jabberd/c2s.xml
[program:jabber-s2s]
user=jabber
command=/usr/bin/s2s -c /etc/jabberd/s2s.xml
[program:tomcat]
command=/usr/libexec/tomcat/server start
[program:httpd-conf-init]
command=/bin/bash -c 'ln -s /httpd-conf/httpd.conf /etc/httpd/conf/httpd.conf'
[program:httpd-magic-init]
command=/bin/bash -c 'ln -s /httpd-magic/magic /etc/httpd/conf/magic'
[program:httpd]
command=/usr/sbin/httpd -D FOREGROUND
[program:osa-dispatcher]
command=/usr/sbin/osa-dispatcher start
[program:taskomatic]
command=/usr/sbin/taskomatic start
# Not sure if this is affecting anything yet or not
# [program:cobblerd]
# command=/usr/sbin/cobblerd --no-daemonize
# command=/usr/bin/python -s /bin/cobblerd --no-daemonize
# This might be stupid but it seems to work
# The very first time you deploy this Spacewalk via Kubernetes, deploy it with this service
# After that is done, spacewalk should be up and working,
# At which point you can comment this out in your deployment
# You'll want to take the CSR and sign it with your CA
# Then convert those into configmaps/secrets for use with your deployment
# I spent many days trying to get this to work with the self-signed ones and just couldn't get it
#
# After your first deployment and you have Spacewalk working, you'll want to modify your deployment to use this command instead
# Which will retain the certificates
#
# sleep 10 && spacewalk-setup --skip-fqdn-test --skip-db-install --skip-db-population --skip-services-restart --answer-file=/spacewalk-init/answerfile.txt && supervisorctl restart httpd && supervisorctl restart tomcat
# spacewalk-setup --skip-ssl-ca-generation --skip-ssl-cert-generation --skip-fqdn-test --skip-db-install --skip-db-population --skip-services-restart --answer-file=/spacewalk-init/answerfile.txt && supervisorctl restart httpd && supervisorctl restart tomcat
#
[program:spacewalk-init]
command=/bin/bash -c 'sleep 10 && spacewalk-setup --skip-fqdn-test --skip-db-install --skip-db-population --skip-services-restart --answer-file=/spacewalk-init/answerfile.txt && supervisorctl restart httpd && supervisorctl restart tomcat'
priority=999
metadata:
name: spacewalk-supervisord-conf
You can’t perform that action at this time.