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: Deploy Docker on Local Host | |
| hosts: localhost | |
| become: true | |
| tasks: | |
| - name: Install Apt and HTTP Certs | |
| apt: |
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
| =INFO REPORT==== 16-Dec-2016::21:56:39 === | |
| Clusterer stopping node now. | |
| INFO:__main__:Kolla config strategy set to: COPY_ALWAYS | |
| INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json | |
| INFO:__main__:Validating config file | |
| INFO:__main__:Copying service configuration files | |
| INFO:__main__:Removing existing destination: /etc/rabbitmq/rabbitmq-env.conf | |
| INFO:__main__:Copying /var/lib/kolla/config_files/rabbitmq-env.conf to /etc/rabbitmq/rabbitmq-env.conf | |
| INFO:__main__:Setting permissions for /etc/rabbitmq/rabbitmq-env.conf | |
| INFO:__main__:Removing existing destination: /etc/rabbitmq/rabbitmq.config |
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
| admin@controller1:~$ docker ps -a | |
| CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
| c764721d8fdc 10.7.183.51:4000/kolla/ubuntu-binary-nova-api:3.0.1 "kolla_start" 4 seconds ago Up 3 seconds bootstrap_nova | |
| ee86c490e360 10.7.183.51:4000/kolla/ubuntu-binary-glance-api:3.0.1 "kolla_start" 2 minutes ago Up 2 minutes glance_api | |
| 7d09c515c3a2 10.7.183.51:4000/kolla/ubuntu-binary-glance-registry:3.0.1 "kolla_start" 2 minutes ago Up 2 minutes glance_registry | |
| 7c40f306d683 10.7.183.51:4000/kolla/ubuntu-binary-keystone:3.0.1 "kolla_start" 5 minutes ago Up 5 minutes keystone | |
| 3d2660a7c514 10.7.183.51:4000/kolla/ |
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
| admin@controller1:~$ docker restart rabbitmq | |
| rabbitmq | |
| admin@controller1:~$ | |
| admin@controller1:~$ | |
| admin@controller1:~$ docker ps -a | |
| CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
| e0ada16c7934 10.7.183.51:4000/kolla/ubuntu-binary-nova-conductor:3.0.1 "kolla_start" 23 seconds ago Up 22 seconds nova_conductor | |
| a6eba9f555b3 10.7.183.51:4000/kolla/ubuntu-binary-nova-scheduler:3.0.1 "kolla_start" 26 seconds ago Up 25 seconds nova_scheduler | |
| 49864492f095 10.7.183.51:4000/kolla/ubuntu-binary-nova-novncproxy:3.0.1 "kolla_start" 29 seconds ago Up 28 seconds nova_novncproxy | |
| d1cb1d910d3d 10.7.183.51:4000/kolla/ubuntu-binary-nova-consoleauth:3.0.1 "kolla_start" 32 seconds ago |
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
| root@MT01DB15:/var/lib/docker/volumes/rabbitmq/_data/mnesia# ls | |
| rabbit-cluster.config rabbit.pid | |
| root@MT01DB15:/var/lib/docker/volumes/rabbitmq/_data/mnesia# | |
| root@MT01DB15:/var/lib/docker/volumes/rabbitmq/_data/mnesia# | |
| root@MT01DB15:/var/lib/docker/volumes/rabbitmq/_data/mnesia# cat rabbit-cluster.config | |
| [{node_id,<<215,178,23,231,124,151,74,187,144,7,70,54,148,16,13,227>>},{node_ids,[]},{gospel,{node,rabbit@MT01DB15}},{nodes,[{rabbit@MT01DB15,disc},{rabbit@MT01DB16,disc},{rabbit@MT02DB15,disc},{rabbit@MT02DB16,disc}]},{version,1}]. | |
| root@MT01DB15:/var/lib/docker/volumes/rabbitmq/_data/mnesia# cat rabbit.pid | |
| 7 | |
| root@MT01DB15:/var/lib/docker/volumes/rabbitmq/_data/mnesia# | |
| root@MT01DB15:/var/lib/docker/volumes/rabbitmq/_data/mnesia# |
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: Localhost-kubejoin.sh | |
| #Description: Run this script to join newly deployed nodes to kubernetes cluster by passing in token and master node IP address | |
| #Version: 1.7 | |
| #Last Updated: 1/12/2017 | |
| #Example on how to execute: | |
| #sudo ./localhost-kubejoin.sh 87swiuuoii8vnni 192.168.1.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
| # BootKube Deployment (FINAL): | |
| ## NEW INSTALLATIONS: | |
| sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y docker.io vim ethtool traceroute git build-essential lldpd | |
| ## Cleanup | |
| sudo systemctl stop kubelet.service | |
| sudo docker rm bootkube-render | |
| sudo docker stop $(sudo docker ps -a | grep k8s| cut -c1-20 | xargs sudo docker stop) | |
| sudo docker rm -f $(sudo docker ps -a | grep k8s| cut -c1-20 | xargs sudo docker stop) | |
| sudo docker rm -f $(sudo docker ps -a | grep bootkube| cut -c1-20 | xargs sudo docker stop) |
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
| #Joins Node to the newly established Kubernetes bootkube cluster. | |
| #!/usr/bin/env bash | |
| set -ex | |
| #Require the IP address of the genesis node be passed in $1 | |
| #TODO: Pass in role(master or worker as CLI option) | |
| if [ -z "$1" ]; then | |
| echo "Error - Need to pass in Genesis host IP" | |
| exit 1 | |
| fi |
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
| version: '2' | |
| defaults: | |
| STATIC_ROOT: /override | |
| settings: | |
| conductor_base: centos:7 | |
| services: | |
| WebServer: | |
| roles: |
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 | |
| #Starts a Development Lab using LXC Containers | |
| set -x | |
| function DevLabUp(){ | |
| echo "Bringing up the dev lab......" | |
| lxc launch ubuntu:16.04 Lab1 -c security.nesting=true -c security.privileged=true | |
| lxc launch ubuntu:16.04 Lab2 -c security.nesting=true -c security.privileged=true | |
| lxc launch ubuntu:16.04 Lab3 -c security.nesting=true -c security.privileged=true |
OlderNewer