Skip to content

Instantly share code, notes, and snippets.

diff --git a/autogen/hooks_utils.py b/autogen/hooks_utils.py
new file mode 100644
index 00000000..7de0e876
--- /dev/null
+++ b/autogen/hooks_utils.py
@@ -0,0 +1,24 @@
+from typing import Callable
+from collections import defaultdict
+
+class Hooks:
[root@storage1 ~]# NAME="test2"
[root@storage1 ~]# zfs create zones/$NAME
[root@storage1 ~]# zfs set quota=10G zones/$NAME
[root@storage1 ~]# zfs set sharenfs=rw,root=10.10.0.11 zones/$NAME
[root@storage1 ~]# chmod 777 /zones/$NAME
[root@blade1 ~]# ifconfig |grep 'inet 10.10'
inet 10.10.0.11 netmask ffff0000 broadcast 10.10.255.255
[root@blade1 ~]# mount -Fnfs -o rw,intr storage1:/zones/test2 nfs-mount-dir
[root@blade1 ~]# cd nfs-mount-dir; ls -la
#SmartOS/Server
NAME="test"
zfs create zones/$NAME
zfs set quota=10G zones/$NAME
zfs set sharenfs=rw zones/$NAME
chmod 777 /zones/$NAME
share -F nfs -o sec=sys /zones/$NAME
#Linux/Client
# mount storage1:/zones/test /root/hola/
@killfill
killfill / gist:7050ad70264c52f57461
Created February 8, 2016 21:01
FIFO: Change internal database
If you happend to need to change the internal fifo DB, can do it like this:
```
$sniffle attach
Attaching to /tmp/sniffle/erlang.pipe.1 (^D to exit)
^L
sniffle_vm:alias(<<"0aa656d6-4418-49a5-ab96-f722e9323ee8">>, <<"my-new-alias">>).
sniffle_vm:dataset(<<"0aa656d6-4418-49a5-ab96-f722e9323ee8">>, <<"70f1b13e-0f85-11e5-a009-4f90f9a0b7bd">>).
sniffle_vm:get(<<"0aa656d6-4418-49a5-ab96-f722e9323ee8">>).
@killfill
killfill / gist:f5a83b2b619587d41fd0
Created May 9, 2015 17:21
LeoFS instalation tips
#Based on https://gist.github.com/kevinmeziere/18f20f4f1df6a42eefa8
<create leofs zone>
<indide leofs zone>
VERSION=rel
LEO_VER=1.2.7
MGR1=192.168.10.53
MGR2=192.168.10.52 #fifo zone
NEW_COOKIE=`openssl rand -base64 32 | fold -w16 | head -n1`
@killfill
killfill / gist:e93bb4de17aae577f4eb
Created February 19, 2015 21:06
Quick way to make SmartOS Zone send emails through gmail
pkgin -y in cy2-login
sed -i "s|localhost|localhost localhost.localdomain|g" /etc/hosts
echo "relayhost = [smtp.gmail.com]:587" >> /opt/local/etc/postfix/main.cf
echo "smtp_use_tls = yes" >> /opt/local/etc/postfix/main.cf
@killfill
killfill / gist:705e6ed3d779556dfc34
Created August 25, 2014 15:07
CG stub without persistent disks
jobs:
- name: etcd_z1
persistent_disk: 0
- name: etcd_z2
persistent_disk: 0
- name: logs_z1
persistent_disk: 0
@killfill
killfill / gist:8c6cb634a6812125af45
Created August 25, 2014 15:06
CF stub without IPs
jobs:
- name: ha_proxy_z1
networks:
- name: cf1
static_ips: null
- name: logs_z1
networks:
- name: cf1
---
name: the-micro
logging:
level: debug
network:
type: dynamic
diff --git a/bosh_cli_plugin_micro/lib/bosh/deployer/instance_manager.rb b/bosh_cli_plugin_micro/lib/bosh/deployer/instance_manager.rb
index dcc578a..0b07db1 100644
--- a/bosh_cli_plugin_micro/lib/bosh/deployer/instance_manager.rb
+++ b/bosh_cli_plugin_micro/lib/bosh/deployer/instance_manager.rb
@@ -133,9 +133,10 @@ module Bosh::Deployer
end
end
- step 'Updating persistent disk' do
- update_persistent_disk