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
| ## configuration.yaml | |
| automation: !include automation.yaml | |
| switch: !include switches.yaml | |
| binary_sensor: !include binary_sensors.yaml | |
| sensor: !include sensors.yaml | |
| ## automation.yaml | |
| - id: shellies_get_status | |
| alias: Shellies Get Status | |
| description: '' |
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/sh | |
| ############ | |
| # Usage | |
| # Pass a path to watch, a file filter, and a command to run when those files are updated | |
| # | |
| # Example: | |
| # watch.sh "node_modules/everest-*/src/templates" "*.handlebars" "ynpm compile-templates" | |
| ############ |
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
| node { | |
| // https://registry.hub.docker.com/_/maven/ | |
| def maven32 = docker.image('maven:3.2-jdk-7-onbuild'); | |
| stage 'Mirror' | |
| // First make sure the slave has this image. | |
| // (If you could set your registry below to mirror Docker Hub, | |
| // this would be unnecessary as maven32.inside would pull the image.) | |
| maven32.pull() | |
| // We are pushing to a private secure docker registry in this demo. |
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
| #!/usr/bin/env bash | |
| # ldap2json.sh | |
| # | |
| # Example shell script showing how to parse LDIF output from the | |
| # ldapsearch command into a json array. Please note that this | |
| # script almost certainly does not handle every edge case, and | |
| # is best used to pull a handful of fields a user or group | |
| # record in a FreeIPA ldap server and format them as JSON for use | |
| # in other tools. |
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 | |
| # | |
| # search dockerhub via APIv2 and print images and tags. | |
| # get token to be able to talk to Docker Hub | |
| TOKEN=dckr_pat_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
| #TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d '{"username": "'${UNAME}'", "password": "'${UPASS}'"}' https://hub.docker.com/v2/users/login/ | jq -r .token) | |
| UNAME=${1} |
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
| // Disclaimer: this is provided “as is” without warranty of any kind, either expressed or implied and such is to be used at your own risk. | |
| // Dependencies | |
| // ---------------------- | |
| // Setting up Github credential with Jenkins's Credential Manager ( https://www.youtube.com/watch?v=HSA_mZoADSw&t=40s ) | |
| // Jenkins Plugin to Clean Workspace ( https://plugins.jenkins.io/ws-cleanup/ ) | |
| // Large File Storage ( https://git-lfs.github.com/ ) | |
| // Variables | |
| // ---------------------- |
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
| // Disclaimer: this is provided “as is” without warranty of any kind, either expressed or implied and such is to be used at your own risk. | |
| // Dependencies | |
| // ---------------------- | |
| // Setting up Github credential with Jenkins's Credential Manager ( https://www.youtube.com/watch?v=HSA_mZoADSw&t=40s ) | |
| // Jenkins Plugin to Clean Workspace ( https://plugins.jenkins.io/ws-cleanup/ ) | |
| // Large File Storage ( https://git-lfs.github.com/ ) | |
| // Variables | |
| // ---------------------- |
Directories on host machine:
-
/data/certbot/letsencrypt -
/data/certbot/www -
Nginx server in docker container
docker run -d --name 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
| # Source: TODO: | |
| ######### | |
| # TODO: # | |
| # TODO: # | |
| ######### | |
| # Additional Info: | |
| # - Production-Ready Kubernetes Clusters Using Crossplane Compositions: https://youtu.be/uMC2QQfMctg | |
| # - How To Shift Left Infrastructure Management Using Crossplane Compositions: https://youtu.be/AtbS1u2j7po |