Skip to content

Instantly share code, notes, and snippets.

@wolstena
wolstena / elasticsearc.manifest.xml
Created November 1, 2012 03:23
SMF manifest for elasticsearch
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='elasticsearch'>
<service name='application/elasticsearch' type='service' version='0'>
<create_default_instance enabled='true'/>
<single_instance/>
<dependency name='fs' grouping='require_all' restart_on='none' type='service'>
@wolstena
wolstena / gist:4115105
Created November 20, 2012 00:21
Elasticsearch zone dataset manifest
{
"uuid": "b3a66edf-00af-49d6-b277-0f8ffaad95d1",
"name": "base64-elasticsearch",
"version": "1.0.0",
"description": "Base image with Elasticsearch",
"os": "smartos",
"type": "zone-dataset",
"platform_type": "smartos",
@wolstena
wolstena / gist:4679109
Created January 31, 2013 01:28
sniffle crash loog
2013-01-31 00:42:39 =CRASH REPORT====
crasher:
initial call: gen:init_it/7
pid: <0.169.0>
registered_name: estatsd_server
exception error: {{badmatch,{error,eacces}},[{gen_leader,incarnation,3,[{file,"src/gen_leader.erl"},{line,1320}]},{gen_leader,init_it,6,[{file,"src/gen_leader.erl"},{line,436}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}
ancestors: [estatsd_sup,<0.167.0>]
messages: []
links: [<0.168.0>,<0.170.0>,<0.72.0>]
dictionary: []
@wolstena
wolstena / nxlog.conf
Created April 18, 2013 20:38
nxlog config
## This is a sample configuration file. See the nxlog reference manual about the
## configuration options. It should be installed locally and is also available
## online at http://nxlog.org/nxlog-docs/en/nxlog-reference-manual.html
## Please set the ROOT to the folder your nxlog was installed into,
## otherwise it will not start.
#define ROOT C:\Program Files\nxlog
define ROOT C:\Program Files (x86)\nxlog
@wolstena
wolstena / ip addr list
Last active December 16, 2015 10:58
keepalived debuginf info
vrrp_script varnish_check {
script "/etc/keepalived/poller health"
interval 2
}
vrrp_script promote_check {
script "/etc/keepalived/poller promote"
interval 2
weight 20
}
@wolstena
wolstena / gist:5640089
Created May 23, 2013 22:51
Smartos nic
pci8086,340a, instance #0
System software properties:
name='ddi-forceattach' type=int items=1
value=00000001
Driver properties:
name='device_type' type=string items=1 dev=none
value='pciex'
name='fm-ereport-capable' type=boolean dev=none
Hardware properties:
name='pci-msi-capid-pointer' type=int items=1
{
"update_disks": [
{
"boot": true,
"model": "ide"
}
],
"update_nics": [
{
"nic_tag": "lan",
@wolstena
wolstena / Vagrant Questions
Last active December 24, 2015 01:09
Vangrant + Ansible
-Make changes to /etc/network/interfaces (eg change dns servers)
-Multiple server auto-resolving port forwarding of 22.
-First run: authorized_keys
-If you don't specify a host file, how do you specify groups and roles. == via facts?
@wolstena
wolstena / gist:6941417
Created October 11, 2013 20:23
Using lists with with_items
Can't get lists to work. Dictionary no problem
- name: Varnish | Print debuging info
# debug: msg="OUTPUT $item[0] and $item[1]"
debug: msg="OUTPUT ${item.0} and ${item.1}"
with_items:
- [ "git://github.com/nand2/libvmod-throttle.git", "/home/vagrant/varnish/libvmod-throttle" ]
- [ "git://github.com/jib/libvmod-timers.git", "/home/vagrant/varnish/libvmod-timers" ]
- [ "git://github.com/jib/libvmod-statsd.git", "/home/vagrant/varnish/libvmod-statsd" ]
@wolstena
wolstena / gist:7162707
Created October 25, 2013 22:20
msdeploy example
msdeploy -verb:sync -source:appHostConfig="music_stage_aliases" -dest:="music_aliases",computerName="web5" -enableLink:AppPoolExtension -enableLink:ContentExtension -replace:objectName=site,targetAttributeName=id,replace=20 -replace:objectName=binding,targetAttributeName=bindingInformation,match=10\.1\.11\.,replace=10.1.15. -replace:objectName=binding,targetAttributeName=bindingInformation,match=stage\.web1\.,replace=web5. -replace:objectName=application,scopeAttributeName=applicationPool,match=_stage_,replace=_ -replace:objectName=virtualDirectory,scopeAttributeName=physicalPath,match=_stage_,replace=_ -replace:objectName=filePath,scopeAttributeName=path,match="web.config",replace="web.stage.config" -replace:objectName=filePath,scopeAttributeName=path,match="web.prod.config",replace="web.config" -whatif