Skip to content

Instantly share code, notes, and snippets.

View allthingsclowd's full-sized avatar
🎲
42

Graham Land allthingsclowd

🎲
42
View GitHub Profile
@allthingsclowd
allthingsclowd / vyos_1.1.8_openstack_template.yml
Created February 16, 2018 17:36
OpenStack HEAT stack to deploy a VYOS 1.1.8 appliance with two test servers
heat_template_version: 2013-05-23
# Author: Graham Land
# Date: 16/02/2018
# Purpose: Heat stack to deploy VYOS 1.1.8 appliance multi-nic image for evaluation
#
#
# Twitter: @allthingsclowd
# Blog: https://allthingscloud.eu
#
@allthingsclowd
allthingsclowd / Angular-OpenStack-Docker.MD
Last active January 5, 2018 17:52
K5 Admin Console is a basic reactive front-end Angular portal that talks to OpenStack's native APIs

Demonstration K5 Administrative Portal

Angular 5.0 with OpenStack APIs

by Graham Land

K5 Admin Console is a basic reactive front-end Angular portal that I put together for three reasons:

  • learn Angular (2-5) and front-end programming
  • demonstration of how to consume Fujitsu Cloud Service K5 OpenStack API calls through Angular
  • example CI/CD Pipeline application demonstrating a Git workflow
@allthingsclowd
allthingsclowd / VPNDemoProjectB.YML
Created November 17, 2017 17:29
VPN Demo Heat Template 2
heat_template_version: 2013-05-23
# Author: Graham Land
# Date: 15/11/2017
# Purpose: Demo IPSec VPNaaS - Base for Project B - Two Networks and a Router with two Servers C & D
#
# Twitter: @allthingsclowd
# Blog: https://allthingscloud.eu
#
#
@allthingsclowd
allthingsclowd / VPNDemoProjectA.YML
Created November 17, 2017 17:27
Simple two part Heat stack to demo VPNaaS
heat_template_version: 2013-05-23
# Author: Graham Land
# Date: 15/11/2017
# Purpose: Demo IPSec VPNaaS - Base for Project A
#
# Twitter: @allthingsclowd
# Blog: https://allthingscloud.eu
#
#
@allthingsclowd
allthingsclowd / helloworld.conf
Created October 10, 2017 13:05
Basic linux service wrapper for nodejs application to run at startup
description "Fujitsu K5 IaaS AutoScaling Demo Node.js Server"
author "Graham J Land"
start on started mountall
stop on shutdown
respawn
respawn limit 99 5
script
@allthingsclowd
allthingsclowd / helloworld.js
Last active October 10, 2017 12:59
Really simple NodeJS Webserver that returns an image the the servers hostname - used for autoscaling demo
const express = require('express')
const app = express()
const serverName = require('os').hostname();
const messageTop = '<div class="middle">\
<img src="https://www.fujitsu.com/uk/Images/K5-climber-580x224_tcm23-2619235.jpg" alt="K5 Autoscale">\
<h1>Hello from '
const messageTail = '</h1>\
<hr>\
@allthingsclowd
allthingsclowd / K5AutoScaling.yml
Created October 10, 2017 12:52
AutoScaling on Fujitsu Cloud Service K5
# Basic K5 template to demonstrate Fujitsu's HEAT Autoscaling enhancements
# Author: Graham J Land
# Date: 10/10/2017
heat_template_version: 2013-05-23
description:
Fujitsu Cloud Service K5 IaaS AutoScaling Example Template.
# The prerequisites for a successful deployment
@allthingsclowd
allthingsclowd / K5PortalSeleniumTest.js
Created September 15, 2017 22:55
This selenium script logs into the Fujitsu K5 Portal and returns all the users email addresses - currently not available via API call
function getNextTable() {
return new Promise(function(resolve,reject) {
driver.findElement(By.xpath('//*[@id="fixed-container"]/div/form/div[2]/div[4]/table[1]/tbody')).getText()
.then(function(result) {
console.log(result);
this.emailList = this.emailList + result;
driver.findElement(By.xpath('//*[@id="paging_table"]/tbody/tr[1]/td[4]/input')).click()
.catch(function(e){
if (e.message.match("no such element")){
resolve(false);
@allthingsclowd
allthingsclowd / ReadMe.md
Created July 28, 2017 21:55
Fujitsu Cloud Service K5 IaaS User Management API Example using Python Flask and Cloud Foundry

Fujitsu Cloud Service K5 IaaS (OpenStack) Demonstration User OnBoarding Portal

Python Flask Hack

Author: Graham J Land

Website: https://allthingscloud.eu

Github: @allthingsclowd

@allthingsclowd
allthingsclowd / DiskUUID.yml
Created July 18, 2017 20:07
OpenStack HEAT Example Outputs - Disk Properties & Attributes
heat_template_version: 2013-05-23
# Author: Graham Land
# Date: 18/07/2017
# Purpose: Example HEAT Stack that demonstrates how to output a disk UUID
#
# Twitter: @allthingsclowd
# Blog: https://allthingscloud.eu
#
#