This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/log/salt/master error after salt-master restart | |
ValueError: invalid RSA private key | |
2015-11-24 14:09:30,557 [tornado.application][ERROR ][5382] Future exception was never retrieved: Traceback (most recent call last): | |
File "/usr/lib/python2.7/dist-packages/tornado/gen.py", line 230, in wrapper | |
yielded = next(result) | |
File "/usr/lib/python2.7/dist-packages/salt/transport/zeromq.py", line 505, in handle_message | |
stream.send(self.serial.dumps(self._auth(payload['load']))) | |
File "/usr/lib/python2.7/dist-packages/salt/transport/mixins/auth.py", line 451, in _auth | |
ret['sig'] = salt.crypt.private_encrypt(self.master_key.key, digest) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PLUGINS | |
# Read metrics about cpu usage | |
[cpu] | |
# Whether to report per-cpu stats or not | |
percpu = true | |
# Whether to report total system cpu stats or not | |
totalcpu = true | |
# Read metrics about disk usage by mount point |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Composition of the containers | |
owncloud: | |
image: owncloud | |
ports: | |
- 80:80 | |
volumes_from: | |
- owncloud-data | |
links: | |
- postgres:owncloud-db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web_db: | |
image: mariadb:latest | |
restart: always | |
volumes: | |
- ./var/mysql:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: @Str0NgP@Ssw0rd | |
web_front: | |
image: nginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.0.5-fpm | |
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev && rm -rf /var/lib/apt/lists/* \ | |
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \ | |
&& docker-php-ext-install gd mysqli opcache | |
RUN { \ | |
echo 'opcache.memory_consumption=128'; \ | |
echo 'opcache.interned_strings_buffer=8'; \ | |
echo 'opcache.max_accelerated_files=4000'; \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install -y apt-transport-https ca-certificates python-pip | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo "deb https://apt.dockerproject.org/repo debian-jessie main" > /etc/apt/sources.list.d/docker.list | |
apt-get update ; apt-get -y install docker-engine | |
pip install docker-compose |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -q -O- "http://debian.saltstack.com/debian-salt-team-joehealy.gpg.key" | apt-key add - | |
echo "deb http://debian.saltstack.com/debian jessie-saltstack main" > /etc/apt/sources.list.d/salt.list | |
apt-get update ; apt-get -y install salt-master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
domain=your-domain.com | |
[email protected] | |
apt-get update; apt-get install git openssl | |
cd /srv | |
git clone https://github.com/letsencrypt/letsencrypt ; cd letsencrypt | |
mkdir -p live-ecdsa/$domain/lemp | |
cd live-ecdsa/$domain/ | |
openssl ecparam -genkey -name secp384r1 > privkey-p384.pem | |
openssl req -new -sha256 -key privkey-p384.pem -subj "/CN=$domain" -reqexts SAN -config <(cat /etc/ssl/openssl.cnf <(printf "[SAN]\nsubjectAltName=DNS:$domain")) -outform der -out > |
OlderNewer