makeporngreatagain.pro
yeahporn.top
hd xxx

Setting-Up Apache LoadBalancer With Ansible

750
  1. Before we start using ansible for setting-up LB. lets create a lb-config.j2 which will our this will be configuration template of our LB, create in /home/ec2-user/ansible/config
    vim lb-config.j2

    Content of lb-config.j2

    ProxyRequests off
    <Proxy balancer://webcluster >
      {% for hosts in groups['webservers'] %}
        BalancerMember http://{{hostvars[hosts]['ansible_host']}}
      {% endfor %}
        ProxySet lbmethod=byrequests
    </Proxy>
    
    # Optional
    <Location /balancer-manager>
      SetHandler balancer-manager
    </Location>
    
    ProxyPass /balancer-manager !
    ProxyPass / balancer://webcluster/
  2. Go to playbooks directory on ansible host and create setup-app.yml
    vim setup-lb.yml
  3. Content of setup-app.yml, Click Here!
  4. Now run your playbook with:
    ansible-playbook setup-lb.yml
Leave A Reply

Your email address will not be published.

baseofporn.com https://www.opoptube.com
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.