August 2015
Intermediate to advanced
168 pages
3h 32m
English
You have learnt a lot about facts, variables, and templates. Now, lets transform our Nginx role to be data driven. We will start templating the default.conf file for Nginx that we created earlier. The approach toward converting a file into a template would be as follows:
$ mkdir roles/nginx/templates $ mkdir roles/nginx/defaults
default.conf file on our system is as follows: server { listen 80; server_name localhost; location / { root /usr/share/nginx/html; ...Read now
Unlock full access