go build -o packer-builder-bug
PACKER_LOG=1 ./packer build test.json
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
class dstat_plugin(dstat): | |
""" | |
Committed memory usage | |
Displays the committed memory. | |
""" | |
def __init__(self): | |
self.name = 'commit memory usage' | |
self.nick = ('limit', 'committed', 'perc') | |
self.vars = ('CommitLimit', 'Committed_AS', 'Committed_perc') |
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
# /etc/udev/rules.d/99-mjpg-streamer-v4l.rules | |
# Tells udev to tell systemd to start mjpg-streamer when /dev/video0 pops up | |
SUBSYSTEM=="video4linux", KERNEL=="video0", TAG+="systemd", IMPORT{builtin}="path_id", ENV{SYSTEMD_WANTS}+="mjpg-streamer@$name.service" |
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
# timestamped, Mbps, extended disk stats as csv, ready for import into Excel | |
iostat -tmxd 5 | awk '{OFS=","} NF==3 {ts=$0} NR==4 {NF=NF;print "Timestamp",$0} NF==14 && $1!~/^Dev/ {NF=NF;print ts,$0 }' |
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 | |
curl -sH Metadata:true "http://169.254.169.254/metadata/instance/compute?api-version=2017-08-01&format=json"|jq '"/subscriptions/"+.subscriptionId+"/resourceGroups/"+.resourceGroupName+"/providers/Microsoft.Compute/virtualMachines/"+.name' -r |
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 -e | |
usage() { | |
cat >&2 <<EOF | |
Usage: az-create-vm-from-sas-image -g resource-group -n vmname -l location -i image-sas-uri [-c custom-data] | |
EOF | |
exit -1 | |
} | |
vmcreateopts="" |
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
TARGET SOURCE FSTYPE OPTIONS [38/6534] | |
/ /dev/loop0 squashfs ro,relatime | |
├─/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime | |
│ ├─/sys/kernel/security securityfs securityfs rw,nosuid,nodev,noexec,relatime | |
│ ├─/sys/fs/cgroup tmpfs tmpfs rw,mode=755 | |
│ │ ├─/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd | |
│ │ ├─/sys/fs/cgroup/devices cgroup |
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 | |
# vim: syntax=yaml | |
disk_setup: | |
/dev/sdc: | |
table_type: gpt | |
layout: true | |
overwrite: true | |
fs_setup: |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"diskName": { | |
"type": "string" | |
}, | |
"imageUri": { | |
"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 -ex | |
images="OpenLogic:CentOS:6.8 | |
OpenLogic:CentOS:7.3 | |
credativ:Debian:7 | |
credativ:Debian:8 | |
RedHat:RHEL:6.8 | |
RedHat:RHEL:7.3 | |
SUSE:SLES:11-SP4 | |
SUSE:SLES:12-SP2 |
NewerOlder