Skip to content
Main Menu
  • Home
  • Blog
  • Contact

DevOps Fu

Tips and Tricks for DevOps Engineers

  • Home
  • Blog
  • Contact

Month: August 2018

  • Home
  • 2018
  • August

How to install the dns-route53 plugin for certbot on Ubuntu?

August 24, 2018March 26, 2019 Fabrice

There are no instruction on how to install the dns route53 plugin for certbot. Here is how to do it for Ubuntu. To install certbot: $ sudo apt update $ sudo apt install software-properties-common $ sudo apt-add-repository ppa:certbot/certbot $ sudo… Read More

SysadminLetsencrypt, SSLLeave a comment

How to convert a string to int in Jinja2?

August 23, 2018March 26, 2019 Fabrice

Simple: MYSTRING | int I work as a freelancer, so if you don’t want to do that kind of things yourself or don’t have the time, just drop me a line to hire me.

AutomationAnsible, Jinja2Leave a comment

How to create a self-signed SSL certificate?

August 23, 2018March 26, 2019 Fabrice

Do this: $ openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 I work as a freelancer, so if you don’t want to do that kind of things yourself or don’t have the time, just drop me a… Read More

SysadminOpenSSL, SSLLeave a comment

How to generate a fingerprint of an SSH key?

August 18, 2018March 26, 2019 Fabrice

Run the following: $ ssh-keygen -l -f /PATH/TO/PUBLIC/KEY Or for the old MD5 fingerprint: $ ssh-keygen -l -E md5 -f /PATH/TO/PUBLIC/KEY I work as a freelancer, so if you don’t want to do that kind of things yourself or don’t… Read More

SysadminSSHLeave a comment

Are you puzzled about why SSH does not use your ssh-agent?

August 18, 2018March 26, 2019 Fabrice

It could be that you are using the IdentityFile combined with the IdentitiesOnly option. When IdentitiesOnly is set to yes, SSH will not try to use the ssh agent, but only the key that you specified with IdentityFile. Consequently, you… Read More

SysadminSSHLeave a comment

How to get the SSH public key from the private key?

August 18, 2018March 26, 2019 Fabrice

Run the following to get the SSH public key from the private key: $ ssh-keygen -y -f /PATH/TO/PRIVATE/KEY I work as a freelancer, so if you don’t want to do that kind of things yourself or don’t have the time,… Read More

SysadminSSHLeave a comment

How to install a MySQL NDB Cluster on Ubuntu?

August 13, 2018March 26, 2019 Fabrice

Official documentation here. There are 3 different types of nodes for MySQL Cluster: NDB manager, NDB node and MySQL server. Please note the standard MySQL server does not support NDB tables, so the MySQL server must be the one compiled… Read More

DatabaseMySQLLeave a comment

How to extract an object from a list based on attribute value in Jinja2?

August 7, 2018March 23, 2019 Fabrice

Use the `selectattr()` filter. For example: – set_fact: myobj: "{{ hostvars[inventory_hostname].ansible_mounts | selectattr(‘mount’, ‘equalto’, ‘/’) | list }}" – debug: var=myobj I work as a freelancer, so if you don’t want to do that kind of things yourself or don’t… Read More

AutomationAnsible, Jinja2Leave a comment

How to loop over a role in Ansible?

August 6, 2018March 23, 2019 Fabrice

Don’t use “roles:” but “tasks:” and use the include_role module. For example: — # roles/myrole/tasks/main.yml – debug: var=bla   — # playbook – hosts: localhost connection: local gather_facts: no tasks: – name: Loop over role include_role: name: myrole vars: bla:… Read More

AutomationAnsibleLeave a comment

Recent Posts

  • How to persist variables in a loop from a find command in Bash?
  • How to iterate an array in Bash?
  • How to trim leading and trailing characters in Bash?
  • How to install jq on CentOS?
  • Magic SysRq cheatsheet

Categories

  • Automation
  • AWS
  • Bash
  • CentOS
  • Containers
  • Cryptography
  • Database
  • Development
  • Docker
  • Git
  • Linux
  • Python
  • Sysadmin
  • Virtualization

Archives

  • December 2020
  • October 2020
  • August 2020
  • July 2020
  • June 2020
  • April 2020
  • March 2020
  • February 2020
  • November 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
Copyright © 2018-2019 Fabrice Triboix
Best Business by Axle Themes