This file contains hidden or 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
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: |
This file contains hidden or 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
[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 |
This file contains hidden or 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
#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/ |
This file contains hidden or 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
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">>). |
This file contains hidden or 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
#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` |
This file contains hidden or 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
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 |
This file contains hidden or 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
jobs: | |
- name: etcd_z1 | |
persistent_disk: 0 | |
- name: etcd_z2 | |
persistent_disk: 0 | |
- name: logs_z1 | |
persistent_disk: 0 |
This file contains hidden or 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
jobs: | |
- name: ha_proxy_z1 | |
networks: | |
- name: cf1 | |
static_ips: null | |
- name: logs_z1 | |
networks: | |
- name: cf1 |
This file contains hidden or 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
--- | |
name: the-micro | |
logging: | |
level: debug | |
network: | |
type: dynamic |
This file contains hidden or 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
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 |
NewerOlder