I'm using the following versions of yard and puppet strings:
$ puppet resource package yard provider=puppet_gem
package { 'yard':
ensure => ['0.9.12'],
}
$ puppet resource package puppet-strings provider=puppet_gem
package { 'puppet-strings':
#!/usr/bin/env ruby | |
require "aws-sdk-core" | |
require "json" | |
ami_list = { "AWSAmazonLinuxAMI" => {} } | |
aws = Aws::EC2::Client.new(:region => 'us-east-1') | |
aws.describe_regions.regions.each do |region| | |
#next unless region.region_name == "ap-northeast-1" |
_warning(){ | |
echo -e "\e[31m${@}\e[0m" | |
} | |
_info(){ | |
echo -e $@ | |
} | |
_success(){ | |
echo -e "\e[32m${@}\e[0m" | |
} |
#!/bin/bash | |
GROUP=worker | |
IDS=$(aws autoscaling describe-auto-scaling-groups \ | |
--auto-scaling-group-name $GROUP \ | |
--query AutoScalingGroups[].Instances[].InstanceId \ | |
--output text) | |
aws ec2 describe-instances \ | |
--instance-ids $IDS \ | |
--query Reservations[].Instances[].PrivateIpAddress \ |
/* | |
* This document has been created with Marked.app <http://markedapp.com>. | |
* Copyright 2011 Brett Terpstra | |
* --------------------------------------------------------------------------- | |
* Please leave this notice in place, along with any additional credits below. | |
* | |
* Byword.css theme is based on Byword.app <http://bywordapp.com> | |
* Authors: @brunodecarvalho, @jpedroso, @rcabaco | |
* Copyright 2011 Metaclassy, Lda. <http://metaclassy.com> | |
*/ |
I'm using the following versions of yard and puppet strings:
$ puppet resource package yard provider=puppet_gem
package { 'yard':
ensure => ['0.9.12'],
}
$ puppet resource package puppet-strings provider=puppet_gem
package { 'puppet-strings':
Go into your git checkout folder of ipxe.
Save the below file as nic-menu.ipxe
.
Build iPXE like this:
cd src && make EMBED=../nic-menu.ipxe && cd ..
Requirements: current iPXE as of 2013-08-01 (for proper behavior of autoboot with a network device specified, netX feature, PCI vendor/device ID display and inc command)
#!ipxe | |
echo | |
echo Starting Ubuntu 10.04.4 x64 installer for ${hostname} | |
# Hook SAN disk | |
set root-path iscsi:nas.smidsrod.lan::::iqn.2011-02.lan.smidsrod:${hostname}.boot.ubuntu | |
sanhook ${root-path} || | |
# Start debian-installer | |
set base-url http://boot.smidsrod.lan/ubuntu-10.04.4-amd64-server |
#!ipxe | |
dhcp | |
echo Starting Ubuntu x64 installer for ${hostname} | |
set base-url http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64 | |
kernel ${base-url}/linux | |
initrd ${base-url}/initrd.gz | |
#imgargs linux auto=true url=http://yourserver/some/path/preseed.cfg | |
boot || | |
# If everything failed, give the user some options | |
echo Boot from ${base-url} failed |
#!/usr/bin/env bash | |
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/ | |
### | |
# Label definitions | |
### | |
declare -A LABELS | |
# Platform |
# | |
# /etc/sysctl.conf - Configuration file for setting system variables | |
# See /etc/sysctl.d/ for additional system variables. | |
# See sysctl.conf (5) for information. | |
# | |
#kernel.domainname = example.com | |
# Uncomment the following to stop low-level messages on console | |
#kernel.printk = 3 4 1 3 |