How to run OpenSearch on FreeBSD

Want to try out OpenSearch on FreeBSD? Right now there is no official support or port for OpenSearch on FreeBSD, so I created a small hotfix for a demo installation. As I like to run everything on BastilleBSD I added basic support for jails as well (due to missing default loopback interface). Install dependencies: pkg install openjdk15 bash Fetch and extract opensearch and create a FreeBSD clone: The attached patch adds support for jails as well

Upgrade BastilleBSD jails from source (offline/src.txz)

Upgrade BastilleBSD jails from source Using bastille upgrade 12.1-RELEASE 12.2-RELEASE is the prefered way of upgrading. If you need to do that air-gapped or with a special release (like -HEAD) you can use this tutorial. before you start: make sure your host system is not behind the jails release svnlite checkout /usr/src If you want to fetch a special branch you can svnlite checkout one of the following branches: ‘release/12.

Create an Ubuntu Linux jail on FreeBSD 12.2

Create a jailed Ubuntu Linux with Bastille on FreeBSD 12.2 Make sure Bastille is installed and configured. click here This is not offically supported, so don’t use it in production! update 2021/02/11: Auto Installer You could try the following POC for automated jail creation: DO NOT USE THIS IN PRODUCTION! THIS MIGHT BREAK YOUR RUNNING INSTALLATION git clone -b linux_compat cd bastille && make install bastille bootstrap bionic bastille create -L linuxjail bionic (ipaddress) (interface) bastille console linuxjail Manual installation This how-to is based on

Easy and lightweight jails with BastilleBSD

HowTo create jails with Bastille 0.8 TDLR of (updated for Bastille 0.8.20210115) install bastille Bastille is very active so make sure you switch to latest pkg mirror vim /etc/pkg/FreeBSD.conf FreeBSD: { url: "pkg+${ABI}/latest", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", enabled: yes } enable bastille sysrc bastille_enable=YES create virtual network bridge sysrc cloned_interfaces+=lo1 sysrc ifconfig_lo1_name="bastille0" service netif cloneup edit /etc/pf.conf (add the lines without #) ext_if="em0" set block-policy return scrub in on $ext_if all fragment reassemble set skip on lo table <jails> persist nat on $ext_if from <jails> to any -> ($ext_if) ## Enable dynamic rdr (see below) bastille 0.

How to create a FreeBSD pkg mirror using bastille and poudriere

This a short how-to for creating a FreeBSD pkg mirror using BastilleBSD and Poudriere. Two things: Yes! This is not a full how to for creating a mirror, but I assume you’re able to spawn a webserver and move files on the filesystem. Yes! You could do more automation using templates. At the time we started playing with poudriere with bastille didn’t have the features it has now (0.8). on the jail host: Bastille is very active so make sure you switch to latest pkg mirror

Add password authentication to Elasticsearch 7.10 on FreeBSD 12.2

If you want/need to add password authentication to your FreeBSD Elasticsearch cluster (this should work on any FreeBSD with elasticsearch7) TLDR; (again) Add the following lines to your /usr/local/etc/elasticsearch/elasticsearch.yml: true true and restart elasticsearch. service elasticsearch restart Make sure curl is installed: pkg install curl Link the installed Java into the bundled directory (this is neither recommended nor supported but it does the trick) mkdir -p /usr/local/lib/elasticsearch/jdk/bin ln -s /usr/local/bin/java /usr/local/lib/elasticsearch/jdk/bin/java And run the password setup utility (this might take up to 2 minutes)