View static_ip_ubuntu1804.md

Configuring Static IP Addresses With Networkd

To configure a static IP address using the new NetPlan tool, the file should look like this: IPv4 address (192.168.1.2), Gateway (192.168.1.1), DNS Servers (8.8.8.8,8.8.4.4)

Run the commands below to create a new network configuration file

sudo nano /etc/netplan/01-netcfg.yaml

Then configure IPv4 addresses as shown below… take notes of the format the lines are written…

View bash_menu.sh
#!/bin/bash
# Bash Menu Script Example
# Heading
echo; echo "SSH Menu"; echo
# Menu
PS3='Please enter your choice: '
options=("Server 1" "Server 2" "Quit")
select opt in "${options[@]}"
View docker-compose.yml
version: '2.1'
services:
plex:
container_name: plex
image: plexinc/pms-docker:plexpass
restart: unless-stopped
network_mode: host
environment:
- TZ=America/New_York
View bitcoind-play.yml
- hosts: localhost
connection: local
tasks:
- name: Start Up Container
docker_container:
name: cicd_InsecureDemo_test
image: kylemanna/bitcoind:latest
ports:
- "8333:8333"
View wait_for_conjur.sh
#!/bin/bash
set -eou pipefail
set +e
while : ; do
printf "..."
sleep 2
healthy=$(curl -sk https://$HOSTNAME/health | jq -r '.ok')
if [[ $healthy == true ]]; then
break
View kubernetes-tipsntricks.md

Kubernetes Tips 'n' Tricks

This is a living document

Show the Jenkins admin password

printf $(kubectl get secret --namespace <namespace> <podname> -o jsonpath="{.data.jenkins-admin-password}" | base64 --decode);echo

View collect_pcf-conjur-deps.sh
#!/bin/bash
set -eo pipefail
mkdir repo
echo "##############################"
echo "# Installing Ruby Gem deps #"
echo "##############################"
echo ""
View detect_yum_aptget.sh
#######################################
# Detects yum or apt-get
# Globals:
# None
# Arguments:
# None
# Returns:
# Package Manager command
#######################################
packagemanager() {
View awxinstallopenshift.sh
mkdir Tower
cd Tower/
git clone https://github.com/ansible/awx.git
cd awx
cd installer/
#vi inventory
-# openshift_host=127.0.0.1:8443
-# awx_openshift_project=awx
-# openshift_user=developer
View conjur.identity
machine https://conjur.cyberark.com/authn
login host/hostID
password 1234567890abcdefghijklmnopqrstuvwxyz