Skip to content

Instantly share code, notes, and snippets.

@mtorrisi
mtorrisi / new_tenant.sh
Last active January 31, 2017 14:33 — forked from jriguera/new_tenant.sh
Openstack CLI commands to create a new Project/Tenant, networks and security group using specific Openstack service CLI commands
#!/bin/sh
############## Define those variables for the tenant
TENANT=$1
PASSWORD=$2
TENANT_DESC="$3"
TENANT_EMAIL="$4"
TENANT_NET_CIDR="10.0.1.0/24"
TENANT_NET_GW="10.0.1.1"
DEFAULT_DNS="8.8.8.8"
@mtorrisi
mtorrisi / Start-Vagrant.bat
Created November 15, 2017 09:03 — forked from Iristyle/Start-Vagrant.bat
Windows startup script to fire up a Vagrant VM safely on boot (using Run registry key for instance)
ECHO OFF
cd /d %~dp0
for /f "tokens=2* delims= " %%F IN ('vagrant status ^| find /I "default"') DO (SET "STATE=%%F%%G")
ECHO Close this window if it remains open, and http://localhost:8081 is responsive
IF "%STATE%" NEQ "saved" (
ECHO Starting Vagrant VM from powered down state...
vagrant up
) ELSE (