Skip to content

Instantly share code, notes, and snippets.

pillar_roots:
base:
- /srv/pillar
ext_pillar:
- cmd_json: "echo {'arg':'value'}"
pillar_opts: False
@welbymcroberts
welbymcroberts / gist:6452046
Created September 5, 2013 15:50
Mikrotik basic config
/interface bridge
add l2mtu=1598 name=LAN
/interface ethernet
set 2 master-port=ether2
set 3 master-port=ether2
set 4 master-port=ether2
/interface wireless security-profiles
add authentication-types=wpa2-psk eap-methods=passthrough management-protection=allowed mode=dynamic-keys name=149 supplicant-identity="" wpa2-pre-shared-key=149149149149
/interface wireless
set 0 band=2ghz-b/g/n channel-width=20/40mhz-ht-above frequency=2427 security-profile=149 ssid=149
global_defs {
notification_email {
notify@email
}
notification_email_from whatever@3email
}
vrrp_script chk_haproxy {
script "killall -0 haproxy" # verify the pid existance
interval 2 # check every 2 seconds
@welbymcroberts
welbymcroberts / gist:9748758
Created March 24, 2014 20:44
Mikrotik for Virgin Media
/interface bridge
add l2mtu=1598 name=LAN
/interface ethernet
set 2 master-port=ether2
set 3 master-port=ether2
set 4 master-port=ether2
/interface wireless security-profiles
add authentication-types=wpa2-psk eap-methods=passthrough management-protection=allowed mode=dynamic-keys name=149 supplicant-identity="" wpa2-pre-shared-key=149149149149
/interface wireless
set 0 band=2ghz-b/g/n channel-width=20/40mhz-ht-above frequency=2427 security-profile=149 ssid=149

Keybase proof

I hereby claim:

  • I am welbymcroberts on github.
  • I am welby (https://keybase.io/welby) on keybase.
  • I have a public key whose fingerprint is A8C4 575D BB0B 169D 3B8B BBC0 3FFA 90BE 2A49 BBD0

To claim this, I am signing this object:

/tool fetch url="http://icanhazip.com/" dst-path="$PREFIX/ip"
:local BINDIP [:pick [/file get [/file find name="$PREFIX/ip"] contents] 0 ([:len $ip]-1)]