Skip to content
Jan Garaj edited this page Dec 29, 2015 · 6 revisions

Quick dirty uninstall and umount partitions:

3x (yes, 3 times):
yum remove -y docker-engine zenoss-repo zenoss-docker zenoss-core-service zenoss-resmgr-service serviced; umount /dev/sdb1; umount /dev/sdb2; umount /dev/sdc1; umount /dev/sdc2; rm -rf /opt/serviced/; rm -rf /etc/yum.repos.d/docker*; rm -rf /tmp/zenoss_*; rm -rf /etc/default/serviced*; rm -rf /lib/systemd/system/docker.service*

Install fping:

serviced service shell -s Fping -i Zope yum install -y http://fr2.rpmfind.net/linux/dag/redhat/el7/en/x86_64/dag/RPMS/fping-3.10-1.el7.rf.x86_64.rpm
serviced snapshot commit Fping
serviced service restart Zope

Free SSL certificate:

yum install -y git
cd /opt
git clone https://github.com/kuba/simp_le
cd simp_le
./bootstrap.sh
./venv.sh
ln -s $(pwd)/venv/bin/simp_le /usr/local/sbin/simp_le

mkdir -p /etc/ssl/certs/serviced
cd /etc/ssl/certs/serviced
mkdir -p /tmp/ssl
docker run --name simp_le -v /tmp/ssl:/usr/share/nginx/html:ro -p 80:80 -d nginx
simp_le -f key.pem -f cert.pem -f fullchain.pem -d ccmaster.mydomain.com:/tmp/ssl -f account_key.json
docker rm -f simp_le
docker rmi nginx
rm -rf /tmp/ssl

vi /etc/default/serviced
SERVICED_KEY_FILE=/etc/ssl/certs/serviced/key.pem
SERVICED_CERT_FILE=/etc/ssl/certs/serviced/cert.pem
Clone this wiki locally