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
--- | |
- name: GET STRUCTURED DATA BACK FROM CLI DEVICES | |
hosts: cisco_ios | |
connection: local | |
gather_facts: False | |
vars: | |
upint: 0 | |
tasks: |
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 | |
BASE_LOCATION='/opt/keycloak-setup' | |
### Install epel and required packages for deployment | |
yum install -y epel-release | |
yum install -y git ansible | |
### Create directories | |
mkdir -p $BASE_LOCATION/{ansible,docker} |
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
HOSTAUTH='172.16.18.25' | |
ADMIN_TOKEN=$(\ | |
curl http://$HOSTAUTH:5000/v3/auth/tokens \ | |
-s \ | |
-i \ | |
-H "Content-Type: application/json" \ | |
-d ' | |
{ | |
"auth": { |
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
uptime | |
dmesg -T | tail | |
vmstat 1 | |
mpstat -P ALL | |
pidstat 1 | |
iostat -xz 1 | |
free -m | |
sar -n DEV 1 | |
sar -n TCP,ETCP 1 | |
top |
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
echo | openssl s_client -showcerts -servername [2001:db8:fd00:1000::10] -connect [2001:db8:fd00:1000::10]:443 2>/dev/null | openssl x509 -inform pem -noout -text | |
mkdir -p certs/{root,intermediate} | |
cd certs/root/ | |
openssl genrsa -out rootca.key 4096 | |
openssl req -sha256 -new -x509 -days 1826 -key rootca.key -out rootca.crt -subj "/C=US/ST=NC/L=Raleigh/O=Red Hat/OU=QE/CN=OSP-d Root CA" | |
touch certindex | |
echo 1000 > certserial | |
echo 1000 > crlnumber | |
vi ca.conf |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: keeaplived2 | |
spec: | |
hostNetwork: true | |
containers: | |
- name: keepalived | |
image: osixia/keepalived | |
env: |
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 | |
#Required | |
domain=$1 | |
commonname=$domain | |
#Change to your company details | |
country=RO | |
state=Bucharest | |
locality=Bucharest |
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
openstack overcloud deploy --control-scale 3 --compute-scale 2 --libvirt-type qemu --ntp-server pool.ntp.org --templates ~/the-cloud/ -e ~/the-cloud/environments/puppet-pacemaker.yaml -e ~/the-cloud/environments/network-isolation.yaml -e ~/the-cloud/environments/net-single-nic-with-vlans.yaml -e ~/the-cloud/environments/network-environment.yaml |
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
stack@instack:~>>> ip a | |
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN | |
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 | |
inet 127.0.0.1/8 scope host lo | |
valid_lft forever preferred_lft forever | |
inet6 ::1/128 scope host | |
valid_lft forever preferred_lft forever | |
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 | |
link/ether 52:54:00:42:ed:5c brd ff:ff:ff:ff:ff:ff | |
inet 192.168.122.107/24 brd 192.168.122.255 scope global dynamic eth0 |
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
stack@instack:~>>> nova list | |
+--------------------------------------+-------------------------+--------+------------+-------------+---------------------+ | |
| ID | Name | Status | Task State | Power State | Networks | | |
+--------------------------------------+-------------------------+--------+------------+-------------+---------------------+ | |
| 25dd75f5-805b-46e2-ac94-d7e96cce764b | overcloud-controller-0 | BUILD | spawning | NOSTATE | ctlplane=192.0.2.14 | | |
| 57a7e4f2-b7d0-4612-a3d6-3c9c859dfa8d | overcloud-controller-1 | BUILD | spawning | NOSTATE | ctlplane=192.0.2.13 | | |
| 2bb1be12-2532-465f-8546-9357e8227154 | overcloud-controller-2 | BUILD | spawning | NOSTATE | ctlplane=192.0.2.15 | | |
| ad3b4480-01aa-45c4-ad99-8fc16d1a8ce8 | overcloud-novacompute-0 | BUILD | spawning | NOSTATE | ctlplane=192.0.2.12 | | |
| 72bd665a-5f48-4f0a-8302-f8e10bd55105 | overcloud-novacompute-1 | BUILD | spawning | NOSTATE | ctlplane=192.0.2. |