This file contains 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 | |
## Because this is a standalone letsencrypt cert | |
## We have to stop nginx before doing renewal | |
CERT_IS_VALID=$(/usr/bin/ssl-cert-check -c /etc/letsencrypt/live/mydomain.com/fullchain.pem) | |
VALID_STR="Valid" | |
if [[ "$CERT_IS_VALID" =~ "$VALID_STR" ]]; | |
then | |
echo "Cert is valid" | |
else |
This file contains 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
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0 | |
description: OpenWRT with QoS services | |
metadata: | |
template_name: OpenWRT | |
topology_template: | |
node_templates: | |
VDU1: |
This file contains 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
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0 | |
description: OpenWRT with services | |
metadata: | |
template_name: OpenWRT | |
topology_template: | |
node_templates: | |
VDU1: |
This file contains 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
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0 | |
description: OpenWRT with services | |
metadata: | |
template_name: OpenWRT | |
topology_template: | |
node_templates: | |
VDU1: |
This file contains 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
[Unit] | |
Description=Start odoo 11 docker instance with postgres | |
[Service] | |
Environment= | |
WorkingDirectory=/odoo | |
ExecStart=/usr/bin/docker-compose up | |
Restart=always | |
[Install] |
This file contains 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
version: '2' | |
services: | |
web: | |
image: odoo:11.0 | |
depends_on: | |
- myodoo | |
ports: | |
- "8069:8069" | |
environment: | |
- HOST=myodoo |
This file contains 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 | |
# | |
# This will push all the images from a local registry to DockerHub. For example: | |
# local_registry_domain/branch/image_name:my-tag -> docker_hub_username/image_name:my-tag | |
# | |
dh_username='' | |
dh_passwd='' | |
local_repo='' | |
local_branch='' |
This file contains 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 | |
username='' | |
passwd='' | |
docker_registry_url='' | |
tag='' | |
docker login -u $username -p $passwd $docker_registry_url | |
curl "https://$username:$passwd@$docker_registry_url/v2/_catalog" | jq -c '.[][]' | while read images; do | |
for i in $images | |
do | |
img=$(echo $i | tr -d '"') |
This file contains 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
--- | |
# put this in /var/tmp/configuration/playbooks/ | |
# Install datastore srver | |
# | |
# installs | |
- name: Configure instance(s) | |
hosts: datastores | |
become: True | |
gather_facts: True |
This file contains 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 | |
## | |
## Sanity check | |
## | |
if [[ `lsb_release -rs` != "16.04" ]]; then | |
echo "This script is only known to work on Ubuntu 16.04, exiting..."; | |
exit; | |
fi |