Skip to content

Instantly share code, notes, and snippets.

@tetsuyainfra
tetsuyainfra / virt-install-centos
Last active March 20, 2017 04:17 — forked from giovtorres/virt-install-centos
Install CentOS cloud images on KVM using cloud-init (noCloud) ※理解するために書き直し
#!/bin/bash
POOL=${POOL:-zfsimages}
POOL_PATH=${POOL_PATH:-"/ztank/libvirt/images"}
ORIGINAL_IMAGE=${ORIGINAL_IMAGE:-CentOS-7-x86_64-GenericCloud.qcow2}
VM_NAME=${1}
VM_RAM=1024
VM_CPU=1
VM_DISK=${1}.qcow2
@tetsuyainfra
tetsuyainfra / virt-install-centos
Created March 20, 2017 04:13 — forked from giovtorres/virt-install-centos
Install CentOS cloud images on KVM using cloud-init
#!/bin/bash
## **Updates to this file are now at https://github.com/giovtorres/virt-install-centos **
# Take one argument from the commandline: VM name
if ! [ $# -eq 1 ]; then
echo "Usage: $0 <node-name>"
exit 1
fi
@tetsuyainfra
tetsuyainfra / build_nginx.sh
Created March 7, 2016 05:03 — forked from Belphemur/build_nginx.sh
Compiling Nginx with LibreSSL (and http2) & RTMP module & PageSpeed (optional)
#!/usr/bin/env bash
# names of latest versions of each package
export NGINX_VERSION=1.9.12
export VERSION_PCRE=pcre-8.38
export VERSION_LIBRESSL=libressl-2.3.2
export VERSION_NGINX=nginx-$NGINX_VERSION
#export NPS_VERSION=1.9.32.10
#export VERSION_PAGESPEED=v${NPS_VERSION}-beta