Загрузка...

Install Rancher 2 w/ Terraform & Ansible - Part #4 - Install Docker with Ansible

For each server we manage with Ansible, we have stated that we have a 'common' selection of software that we always want to install. This can and likely will be different for everyone, but it's likely that there is some software you always want available, right from the get go. After this, however, everything is custom. Not every server needs a web server, a database, PHP, or NodeJS. A huge win for me, and a big reason I like and use Ansible is Ansible Galaxy. Most programming languages have a central repo of good stuff. PHP has packagist, Elixir has Hex, JavaScript has NPM. Ansible Galaxy is basically this for Ansible roles. Ansible Galaxy is really useful, even if you don't use Ansible. You can learn a lot about how to install X, Y, and / or Z by reading through one or more roles for the piece of software you want to install. And they are typically chock full of best practices. Now I don't have a scientific, well constructed reason for my choice of roles. I typically look at the vanity metrics (download count, stars, 'score', watchers, that kind of thing), and then make a short list of roles to check out from there. There's nothing I can teach you here other than it's likely very similar to how you already use packagist, hex, or NPM. In the case of our Rancher 2 Kubernetes nodes, we will always need to have Docker installed. At the time of writing / recording, Rancher is only supporting Docker 17.03.2 on Ubuntu 16.04 (64-bit). This version of Docker is not the latest and greatest. It's also a bit of a pain to get installed on to Ubuntu 18.x, without a bunch of additional commands. Fortunately, Ansible will take care of all the hard work for us. We just need a role, and a bit of config.

Видео Install Rancher 2 w/ Terraform & Ansible - Part #4 - Install Docker with Ansible автора Обнимите меня, я программист
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки