Skip to content
Main Menu
  • Home
  • Blog
  • Contact

DevOps Fu

Tips and Tricks for DevOps Engineers

  • Home
  • Blog
  • Contact

Year: 2018

  • Home
  • 2018

How to properly use certbot with Nginx on Ubuntu?

December 18, 2018March 26, 2019 Fabrice

Install and configure Nginx: $ sudo apt update $ sudo apt install nginx $ sudo rm /etc/nginx/sites-enabled/default $ sudo vi /etc/nginx/sites-available/MYSITE # See below $ sudo ln -s /etc/nginx/sites-available/MYSITE /etc/nginx/sites-enabled $ sudo systemctl restart nginx The /etc/nginx/sites-available/MYSITE config file should… Read More

SysadminCertbot, LetsencryptLeave a comment

How to install an old version of PHP using geerlingguy.php on Ubuntu target

November 23, 2018March 26, 2019 Fabrice

Your playbook should look like so: — – hosts: XYZ become: yes pre_tasks: – name: Add repository for old PHP apt_repository: repo: ppa:ondrej/php update_cache: yes state: present roles: – role: geerlingguy.apache … – role: geerlingguy.php php_webserver_daemon: apache2 php_default_version_debian: "7.1" php_version:… Read More

AutomationAnsible, PHPLeave a comment

How to install and kick off minikube on Ubuntu?

October 16, 2018March 26, 2019 Fabrice

Install kubectl: $ sudo apt update $ sudo apt install apt-transport-https $ curl -sSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add – $ echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list $ sudo apt update $ sudo apt install kubectl… Read More

ContainersDocker, KubernetesLeave a comment

How to do a basic install of Prometheus on Ubuntu?

October 9, 2018March 26, 2019 Fabrice

Machine requirement I will assume your machine is Ubuntu >= 16.04. Please make sure only ports 80 and 443 are open. I assume there are two DNS entries to your machine, such as prometheus.blablabla.com and grafana.blablabla.com (replace as appropriate throughout… Read More

SysadminGrafana, PrometheusLeave a comment

How to programmatically know your external IP address?

October 9, 2018March 26, 2019 Fabrice

You are probably used to type “what is my ip” in google to know this, but how can you do that in a shell script? Here it is: $ curl ifconfig.co Simple! I work as a freelancer, so if you… Read More

SysadminLeave a comment

How to install Docker on Ubuntu

October 4, 2018March 26, 2019 Fabrice

Follow the steps to install Docker Community Edition: $ sudo apt install curl software-properties-common $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add – $ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" $ sudo apt update $ sudo apt install… Read More

ContainersDockerLeave a comment

How to enable and analyse the slow query log on MySQL?

October 2, 2018March 26, 2019 Fabrice

Set the following variables in your MySQL config file: slow_query_log = 1 (means true) long_query_time = 0 (means 0 seconds) log_queries_not_using_indexes = 1 (means true) log_output = FILE (default is TABLE) Setting long_query_time to 0 will instruct MySQL to log… Read More

DatabaseMySQLLeave a comment

How to do a basic install of an ELK stack on Ubuntu for log stashing?

September 5, 2018March 26, 2019 Fabrice

Use a machine with at least 4GiB of RAM. This guide will install ElasticSearch, Logstash and Kibana all on the same machine, so this is suited only for a small-scale setup. Install and configure ElasticSearch $ sudo apt install apt-transport-https… Read More

SysadminELKLeave a comment

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

Posts navigation

1 2 3 Next

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