|
|
|
|
|
|
|
|
{% set nginx = pillar.get('nginx', {}) -%} |
|
|
|
|
|
|
|
|
{% from "nginx/map.jinja" import nginx with context %} |
|
|
{% set htauth = nginx.get('htpasswd', '/etc/nginx/.htpasswd') -%} |
|
|
{% set htauth = nginx.get('htpasswd', '/etc/nginx/.htpasswd') -%} |
|
|
|
|
|
|
|
|
htpasswd: |
|
|
htpasswd: |
|
|
pkg.installed: |
|
|
pkg.installed: |
|
|
- name: apache2-utils |
|
|
|
|
|
|
|
|
- name: {{ nginx.apache_utils }} |
|
|
|
|
|
|
|
|
{% for name, user in pillar.get('users', {}).items() %} |
|
|
{% for name, user in pillar.get('users', {}).items() %} |
|
|
{% if user['webauth'] is defined -%} |
|
|
{% if user['webauth'] is defined -%} |