Handy bashrc aliases

I use these aliases to generate passwords on the CLI May or may not be secure passwords, use wisely # some more ls aliasesalias ll=’ls -alF’alias la=’ls -A’alias l=’ls -CF’alias rand12=”openssl rand -base64 24 | sed ‘s/\///g; s/+//g’ | cut -c1-12″alias rand24=”openssl rand -base64 48 | sed ‘s/\///g; s/+//g’ | cut -c1-24″alias manyrand24=” for i […]

Read More »

Functional Ceph RadosGW docker container and config

This is just a basic example of getting RadosGW to run in docker with Keystone auth support. It runs S3 and Swift API’s out of the box, so you can use tools like s3cmd or ‘openstack container list’ using the below configs   Command to run inside docker container radosgw -d -f –cluster ceph –name […]

Read More »

Linux VLAN interfaces

# Create tagged interface and bring it up, then add it to a bridge ip link add link eth0 name eth0.10 type vlan id 10 ip link set dev eth0.10 up brctl addbr br10 brctl addif br10 eth0.10

Read More »

Ceph – Edit running crushmap

Edit crushmap in a running cluster then re-inject it – Be careful! ceph osd getcrushmap -o crushmap crushtool -d crushmap -o crushmap.txtvim crushmap.txtcrushtool -c crushmap.txt -o crushmap1ceph osd setcrushmap -i crushmap1

Read More »

Building an Ubuntu Vagrant box

wget –no-check-certificate \ https://raw.githubusercontent.com/hashicorp/vagrant/main/keys/vagrant.pub \ -O /home/vagrant/.ssh/authorized_keys sudo rm -f /etc/machine-idsudo dbus-uuidgen –ensure=/etc/machine-idsudo rm /var/lib/dbus/machine-idsudo dbus-uuidgen –ensurereboot You can also try this parameter in the Ubuntu netplan configuration file: dhcp4: yesdhcp-identifier: mac sudo qemu-img convert -f qcow2 -O qcow2 /nvmedata2/test1_default.img ~/.vagrant.d/boxes/betterubuntu-VAGRANTSLASH-1804-1/0/libvirt/box.img cory@lab1:/nvmedata/labs/test2$ cat ~/.vagrant.d/boxes/betterubuntu-VAGRANTSLASH-1804-1/0/libvirt/Vagrantfile # The contents below were provided by the Packer Vagrant post-processor […]

Read More »

Named \ Bind9 example config

I came across this nice example of a bind9 config file that handles multiple subnet\vlans\zones and treats them differently server:/var/named/etc/bind# cat named.conf// This is the primary configuration file for the BIND DNS server named.//// Please read /usr/share/doc/bind9/README.Debian for information on the// structure of BIND configuration files in Debian, *BEFORE* you customize// this configuration file.//acl “lan” […]

Read More »

Keycloak + HAProxy

I would have though this to be a common deployment but I had quite a significant challenge in getting this setup to run   Here is my working config for Keycloak behind a reverse proxy Traffic flow Client keycloak.hawkless.id.au—>HTTPS—>HAProxy—>HTTPS—>Keycloak Container   haproxy.cfg globalmaxconn 4000tune.ssl.default-dh-param 2048listen statsbind 0.0.0.0:9010mode httpstats enablestats uri /statsstats realm HAProxy Statisticsstats auth […]

Read More »

Manually add a ceph-mon

mkdir /tmp/cephmonceph auth get mon. -o /tmp/cephmon/mon.keyceph mon getmap -o /tmp/cephmon/monmapsudo ceph-mon -i mon-hostname –mkfs –monmap /tmp/cephmon/monmap –keyring /tmp/cephmon/mon.keyceph-mon -i mon-hostname –public-addr 10.50.1.71ps ax | grep ceph-monkill {mon-pid}chown ceph:ceph /var/lib/ceph/mon/ -Rsystemctl enable ceph-mon@mon-hostname.servicesystemctl start ceph-mon@mon-hostname.servicesystemctl status ceph-mon@mon-hostname.service

Read More »

Running mattermost in docker

Ive set this up a few times and the permissions issues get me every timeFor reference this seems to be a winning recipe git clone https://github.com/mattermost/mattermost-docker/ cd mattermost-docker Edit the docker-compose.yml and change the UID and the GID to your current running user IMPORTANT! docker-compose build to build the new image mkdir -pv ./volumes/app/mattermost/{data,logs,config,plugins,client-plugins} You […]

Read More »