Skip to content

Instantly share code, notes, and snippets.

View amontalban's full-sized avatar

Andres Montalban amontalban

View GitHub Profile
#!/bin/sh
##
## modified chef install script
## for kitchen-salt, the entirety of chef is not required
## but ruby and gem are required in a specific directory
## for kitchen tests to run
##
os="$(uname -s)"
packages=(ruby ruby-devel git)
# Sysadmins trusted IPs
variable "sysadmins_networks" {
default = [
"1.2.3.4/32",
"5.6.7.8/32",
"9.10.11.12/32",
"13.14.15.16/32"
]
}
Available: true
Contents: |
# api_url={{.RenderData.ApiURL}}
# token={{.RenderData.GenerateToken}}
DEFAULT {{.Env.Name}}
PROMPT 0
TIMEOUT 10
LABEL {{.Env.Name}}
KERNEL {{if eq .Env.Kernel "memdisk"}} memdisk {{else}} {{.Env.PathFor "tftp" .Env.Kernel}} {{end}}
{{if .Env.Initrds}}
dr-provision2018/01/26 18:46:48.595653 [125:318]dhcp [ info]: /home/travis/gopath/src/github.com/digitalrebar/provision/backend/dhcpUtils.go:55
[125:318]Found our lease for strat: MAC token 08:00:27:4a:42:9f, will use it
dr-provision2018/01/26 18:46:48.597359 [125:319]dhcp [ info]: /home/travis/gopath/src/github.com/digitalrebar/provision/midlayer/dhcp.go:530
[125:319]xid 0x284a429f: Request handing out: 192.168.50.10 to 08:00:27:4a:42:9f via 192.168.50.4
dr-provision2018/01/26 18:46:48.600822 [126:320]static [debug]: /home/travis/gopath/src/github.com/digitalrebar/provision/backend/conncache.go:63
[126:320]addrCache: Renewing local 192.168.50.4 -> remote 192.168.50.10
dr-provision2018/01/26 18:46:48.600864 [126:321]static [debug]: /home/travis/gopath/src/github.com/digitalrebar/provision/midlayer/tftp.go:50
[126:321]TFTP: attempting to send lpxelinux.0
dr-provision2018/01/26 18:46:48.600910 [126:322]static [debug]: /home/travis/gopath/src/github.com/digitalrebar/provision/midlayer/tftp.go:67
[126:322]TFTP: l
[91:230]TFTP: attempting to send pxelinux.cfg/C0A8320A
dr-provision2018/01/26 18:46:15.085777 [0:231]backend [error]: /home/travis/gopath/src/github.com/digitalrebar/provision/backend/fs.go:109
[0:231]Static FS: Dynamic file error for /pxelinux.cfg/C0A8320A: template: :249:72: executing "default-pxelinux-memdisk.tmpl" at <.RenderData.ApiURL>: can't evaluate field RenderData in type *backend.Rend
erData
dr-provision2018/01/26 18:46:15.086445 [92:232]static [debug]: /home/travis/gopath/src/github.com/digitalrebar/provision/backend/conncache.go:63
[92:232]addrCache: Renewing local 192.168.50.4 -> remote 192.168.50.10
dr-provision2018/01/26 18:46:15.087292 [92:233]static [debug]: /home/travis/gopath/src/github.com/digitalrebar/provision/midlayer/tftp.go:50
[92:233]TFTP: attempting to send pxelinux.cfg/C0A8320
dr-provision2018/01/26 18:46:15.088417 [93:234]static [debug]: /home/travis/gopath/src/github.com/digitalrebar/provision/backend/conncache.go:63
[93:234]addrCache: Renewing local 192.168.50.4 -> remote 192.1
@amontalban
amontalban / radios_uruguay.m3u
Last active August 5, 2017 16:06
Radios Uruguay
#EXTM3U
#EXTINF:0 tvg-id="oldies-fm-90-3" tvg-name="oldies-fm-90-3" channel-id="oldies-fm-90-3" tvg-logo="https://cdn.webrad.io/images/logos/radios-com-uy/oldies-fm-90-3.png" group-title="Radios Uruguay" radio, Oldies FM 90.3
http://50.7.76.254:9908/stream/1/
@amontalban
amontalban / GD.patch
Created March 13, 2017 21:15
GD Patch to support optional features included in libgd > 2.0.33
diff -urN GD-2.56.orig/Build.PL GD-2.56/Build.PL
--- GD-2.56.orig/Build.PL 2014-10-27 23:34:54.000000000 -0200
+++ GD-2.56/Build.PL 2017-03-13 18:03:07.000000000 -0300
@@ -261,7 +261,7 @@
return unless $config;
$AUTOCONFIG++;
- my ($version) = $config =~ /^GD library\s+(\S+)/m;
+ my ($version) = $config =~ /^GD library\s+([0-9.]+)/m;
warn "Configuring for libgd version $version.\n";
@amontalban
amontalban / Makefile.PL.patch
Last active March 10, 2017 22:07
Image::Magick patch for FreeBSD/Linux support
--- Makefile.PL.orig 2017-03-10 22:02:48.408518250 +0000
+++ Makefile.PL 2017-03-10 22:06:53.689076385 +0000
@@ -160,12 +160,18 @@
}
}
+if ($Config{osname} eq 'freebsd') {
+ $LIB_magick = "MagickCore-6";
+} else {
+ $LIB_magick = "MagickCore-6.Q16";
@amontalban
amontalban / saltstack.conf
Last active March 1, 2017 14:16
saltstack.conf
SaltStack: {
url : "http://repo.saltstack.com/freebsd/${ABI}",
enabled : true,
mirror_type : "http",
priority : 10,
}
[2017-02-13 13:32:55] requirements_debian_libs_install
requirements_debian_libs_install ()
{
__rvm_try_sudo apt-get --no-install-recommends --yes install "$@" || return $?
}
current path: /root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/rvm/bin
command(25): requirements_debian_libs_install bash curl patch bzip2 gawk libssl-dev make libc6-dev patch openssl curl zlib1g zlib1g-dev libyaml-dev libsqlite3-dev sqlite3 libgmp-dev libgdbm-dev libncurses5-dev bison pkg-config libffi-dev libgmp-dev libreadline6-dev
++ 1486992775.963586104 /scripts/functions/requirements/debian : requirements_debian_libs_install() 30 > __rvm_try_sudo apt-get --no-install-recommends --yes install bash curl patch bzip2 gawk libssl-dev make libc6-dev patch openssl curl zlib1g zlib1g-dev libyaml-dev libsqlite3-dev sqlite3 libgmp-dev libgdbm-dev libncurses5-dev bison pkg-config libffi-dev libgmp-dev libreadline6-dev
++ 1486992775.968450601 /scripts/functions/utility : __rvm_try_sudo() 353 > typeset -