apt-get update
apt-get upgrade
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
#!/usr/bin/env python3 | |
from pymongo import MongoClient | |
import yaml | |
import os | |
import sys | |
host = "localhost" | |
port = "37017" |
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
nodename=as3-maas-node-01 | |
system_id=$(maas admin machines read hostname=${nodename} | jq .[].system_id | sed s/\"/g) | |
maas admin machine deploy ${system_id} user_data="$(base64 user-data-lxd.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
#!/bin/bash | |
set -x | |
my_host="asrock01" | |
qemu_connection="qemu+ssh://virsh@10.0.1.253/system" | |
qemu_password="seBGtkWFKZuFUFgig8NYU5uh" | |
storage_path="/var/lib/libvirt/maas-images" | |
storage_format="raw" | |
compute="as1-maas-node" |
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
#cloud-config | |
ssh_import_id: | |
- lp:arif-ali | |
## Update apt database and upgrade packages on first boot | |
package_update: true | |
package_upgrade: true | |
## Install additional packages on first boot |
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
# prep | |
part raid.01 --size 50 --ondisk sdj | |
part raid.02 --size 50 --ondisk sdk | |
raid /prepboot --fstype "PPC PReP Boot" --level 1 --device md0 raid.01 raid.02 | |
# boot | |
part raid.11 --size 1024 --ondisk sdj | |
part raid.12 --size 1024 --ondisk sdk | |
raid /boot --fstype ext4 --level 1 --device md1 raid.11 raid.12 |
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
eat_template_version: 2013-05-23 | |
description: > | |
HOT template to deploy one compute node into an xisting neutron tenant network and | |
assign floating IP address to the server so they are routable from the | |
public network. | |
parameters: | |
key_name: | |
type: string |
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 | |
partfile=/tmp/partitionfile | |
disks="sda sdb sdc sdd sde sdf sdg sdh" | |
i=0 | |
rm -rf ${partfile} | |
touch ${partfile} | |
for disk in `echo ${disks}` | |
do |
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 | |
CM_DIR=/data/android/git/CM | |
KERN_DIR=/data/android/leo/CM/misc/kernels | |
WORKDIR=/data/android/leo/CM | |
OUTPUT=$WORKDIR/out | |
SOURCE=$WORKDIR/source | |
date1=`date +%Y%m%d` |