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
| -----BEGIN MY CERTIFICATE----- | |
| -----END MY CERTIFICATE----- | |
| -----BEGIN INTERMEDIATE CERTIFICATE----- | |
| -----END INTERMEDIATE CERTIFICATE----- | |
| -----BEGIN INTERMEDIATE CERTIFICATE----- | |
| -----END INTERMEDIATE CERTIFICATE----- | |
| -----BEGIN ROOT CERTIFICATE----- | |
| -----END ROOT CERTIFICATE----- | |
| -----BEGIN RSA PRIVATE KEY----- | |
| -----END RSA PRIVATE KEY----- |
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
| networks: | |
| widgets: | |
| driver: bridge | |
| ipam: | |
| config: | |
| - subnet: 172.10.0.0/16 | |
| gateway: 172.10.5.254 | |
| aux_addresses: | |
| haproxy: 172.10.1.2 | |
| mariadb: 172.10.1.3 |
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 | |
| #============================================================================== | |
| #title : ssl-verify-key-cert.sh | |
| #description : Script verify key and certificate | |
| #authors : RafPe | |
| #date : 20160426 | |
| #version : 1.0 | |
| #notes : | |
| #============================================================================== |
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 tutum/apache-php | |
| RUN rm -rf /app/* | |
| RUN curl -L -O https://builds.piwik.org/latest.tar.gz && \ | |
| tar --strip 1 -xzf latest.tar.gz && \ | |
| rm latest.tar.gz | |
| RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y php5-geoip php5-dev libgeoip-dev && apt-get clean | |
| RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
| RUN echo "extension=geoip.so" >> /etc/php5/apache2/php.ini | |
| RUN echo "geoip.custom_directory=/app/misc" >> /etc/php5/apache2/php.ini |
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
| # .---------------- minute (0 - 59) | |
| # | .------------- hour (0 - 23) | |
| # | | .---------- day of month (1 - 31) | |
| # | | | .------- month (1 - 12) OR jan,feb,mar,apr ... | |
| # | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat | |
| # | | | | | | |
| # * * * * * command to be executed |
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
| # Creates user which is required to present client side certificate | |
| GRANT ALL PRIVILEGES ON *.* TO 'ssluser'@'%' IDENTIFIED BY 'ssluser' REQUIRE X509; | |
| # Creates user which will use encrypted connection to database | |
| GRANT ALL PRIVILEGES ON *.* TO 'ssluser'@'%' IDENTIFIED BY 'ssluser' REQUIRE SSL; |
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
| --- | |
| - name: Testing | |
| hosts: localhost | |
| vars: | |
| - blabla: "Testing123" | |
| - testing: "{{ lookup('template', 'template.j2') }}" | |
| tasks: | |
| - debug: msg="{{testing}}" |
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
| --- | |
| - hosts: all | |
| vars: | |
| - allips: | | |
| {% set comma = joiner(",") %} | |
| {% for host in groups['mygroup'] -%} | |
| {{ comma() }}{{ hostvars[host]['ansible_eth0']['ipv4']['address']}} | |
| {%- endfor -%} |
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
| description "Nomad by HashiCorp" | |
| start on runlevel [2345] | |
| stop on runlevel [!2345] | |
| respawn | |
| script | |
| # CONFIG_DIR=/usr/local/etc/nomad | |
| # mkdir -p $CONFIG_DIR |