Spatial Labs 🌍

Full Stack Geospatial Consultancy

Molecule docker driver missing error

We are just getting into testing our ansible playbooks and roles. For this we are using molecule. If you run into the following problem when initializing an ansible role via the molecule init command: ➜ molecule init role -d docker myrole Usage: molecule init role [OPTIONS] ROLE_NAME Try 'molecule init role --help' for help. Error: Invalid value for '--driver-name' / '-d': invalid choice: docker. (choose from delegated) Fix is simply to install the driver via pip:...

 Β· 1 min Β· spatial labs team

Create Limited User Account for Ansible

πŸ‘¨β€πŸš€ Add a limited user account Assuming you already have ansible setup on a control node, we can now turn our attention to the user that will run commands on our behalf via Ansible on the managed nodes. πŸ”’ Let’s create a password hash As we never include plaintext passwords in our Playbooks we wanna setup the user password via a hash. To generate the hash let’s do this: Assuming you are on your control node install passlib python package....

 Β· 4 min Β· spatial labs team

Intro to Ansible on Linode

Linode We love❀️ linode. one of the best things about linode is it’s command line interface (CLI). For example creating a node on linode is as easy as: linode-cli linodes create \ --region eu-central \ --type g6-nanode-1 \ --image linode/debian9 \ --root_pass MySuperSecretPassword The above command will create a new linode instance. To see its status you can just run the following: ➜ linode-cli linodes list β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ id β”‚ label β”‚ region β”‚ type β”‚ image β”‚ status β”‚ ipv4 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ xxxxxxxx β”‚ linodexxxxxxxx β”‚ eu-central β”‚ g6-nanode-1 β”‚ linode/debian9 β”‚ running β”‚ xxx....

 Β· 2 min Β· spatial labs team

Natural Language Processing (NLP) with Spacy

Spacy is one of the most popular packages for text processing and NLP tasks. In the following post we will go over the following tasks using spaCy: Basic text processing and pattern matching Building machine learning models with text Representing text with word embeddings that numerically capture the meaning of words and documents For example, here’s how you would load the English language model. import spacy nlp = spacy....

 Β· 2 min Β· spatial labs team

Deploying Keycloak to Linode

What is Keycloak? Keycloak is the most advanced open source sigle-sign-on (SSO) solution currently in the market. There are many SSO out there but they are all managed solutions from vendors such as Google Cloud, Amazon Web Services, Auth0, etc. Running via docker We are going to deploy our solution using docker. So we are going to create a linode with Docker preinstalled. You can figure out which β€œimage stack” to use by running linode-cli with the following:...

 Β· 1 min Β· spatial labs team