- To create ssh secret:
oc create secret generic sshsecret \
--from-file=ssh-privatekey=$HOME/.ssh/id_rsa
Adding a new disk to a bhyve vm takes a few steps. | |
1. increase the quota on the zfs dataset to accomodate the additional | |
space. | |
2. create a zvol inside the zone | |
3. stop the vm and update its configuration to reflect the change | |
4. start the vm, login and use the disk | |
# update quota |
tar -cvz /<path>/ | gpg --encrypt --recipient <keyID> > /<backup-path>/backup_`date +%d_%m_%Y`.tar.gz.gpg |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
TMPL=$1 | |
DESTINATION=/config/consultemplate/template/$TMPL | |
TMPDESTINATION=/tmp/$DESTINATION | |
LOGS=/logs/$HOSTNAME | |
mkdir -p $LOGS | |
mkdir -p "`dirname $DESTINATION`" |
alias dz-search='dz list -c | grep -i' | |
alias zlogin='dz shell ' | |
function alogin() { | |
UUID=$(cat ~/.dz/vms.json | jq -r '.[][] | select(.alias=="'${1}'") | .uuid') | |
dz shell ${UUID} | |
} |
dataset=$(zfs list | grep data | awk '{print $1}') | |
sudo zfs set mountpoint=/data $dataset | |
sudo groupadd graphite | |
sudo useradd -c "Graphite User" -m -d /data/graphite -g graphite -s /bin/bash graphite | |
sudo pkgin up | |
sudo pkgin -y ug | |
sudo pkgin -y in gcc47 | |
sudo pkgin -y in openldap-client |
1 pkgin -y fug | |
2 pkgin in build-essential | |
3 pkgin in cmake | |
4 pkgin se ncurses | |
5 pkgin in ncursesw-5.9nb1 | |
6 pkgin se libcurl | |
7 pkgin in curl | |
8 pkgin in zlib | |
9 pkgin se zlib | |
10 pkgin se libgcrypt |