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:...
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....
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....
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....
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:...