Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

mantl nginx

TanyaCouture edited this page Feb 25, 2016 · 1 revision

nginx: consolidate versions and in progress

  • nginx: mantl-nginx

    • System dependencies
      • nginx
      • mantl-common
    • Ansible main tasks
      • make tls directory -> mkdir -p /etc/nginx/ssl && chmod 0700 /etc/nginx/ssl
      • deploy tls files
      • encrypt admin password -> look at mantl PR#1058 for adding passwd to consul
  • nginx: mantl-nginx Web and proxy server. create tls directory solution: sudo mkdir -p /etc/nginx/ssl && chmod 0700

          deploy tls files
          solution(check to see if this works):
            sudo cp -p ssl/certs/nginx.cert.pem /etc/nginx/ssl/nginx.cert && chmod 0444 /etc/nginx/ssl/nginx.cert
            sudo cp -p ssl/private/nginx.key.pem /etc/nginx/ssl/nginx.key && chmod 0444 /etc/nginx/ssl/nginx.key
    
      encrypt admin password
        // run shell command: htpasswd -Bnb admin {{ nginx_admin_password | quote }} | cut -f 2 -d ':'
        // store in variable nginx_admin_password_encrypted
    
        set admin password variable
          // sets nginx_admin_password_encrypted as the stdout of this variable to survive between plays of ansible run
    
          solutions: the password has to be different for every install, this step may need to be done outside the context of a package.
    
Clone this wiki locally