Code Monkey home page Code Monkey logo

avinetworks-letsencrypt-demo's Introduction

Avi Networks Let's Encrypt Demo

This playbook is designed to create a new gslbservice and virtualservice on an Avi controller and generate a new valid certificate through Lets Encrypt.

Variables

/vars/creds.yaml - Login credentials for the Avi Controller

avi_controller_username: admin
avi_controller_password: avi123
avi_api_version: 20.1.3
avi_controller: 5.5.5.5
aws_subnet: aws-subnet

Example extra variables:

ApplicationName=testapp1.company.com
ApplicationType=https_termination [http|https_proxy|https_termination|tcp]
Tenant=admin
HealthMonitor=ping
ListeningPort='443'
sni=none [parent|child]
PoolMembers='10.10.10.10,80,enabled'
CloudName=Default-Cloud
ssl_key=ssl/key.key (Optional, creates a certificate with cert and key)
ssl_crt=ssl/crt.crt (Optional, creates a certificate with cert and key)
GenerateCertificate=True (Optional, Generates a certificate via Let's Encrypt)
WafEnabled=True (Optional, enables the WAF on the VIP)

Usage

It is recommended that you always use an encrypted vault. The creds.yaml file needs to be encrypted.

Example to create the virtualservice and gslbservice using existing cert and key:

ansible-playbook main.yaml --vault-password-file=../vault_pass --extra-vars "ApplicationName=testapp1.company.com ApplicationType=https_termination Tenant=admin HealthMonitor=ping ListeningPort='443' sni=none PoolMembers='10.1.1.1,80,enabled' ssl_key=ssl/key.key ssl_crt=ssl/crt.crt CloudName=Default-Cloud"

Example to create the virtualservice and gslbservice and generate a new certificate using Lets Encrypt:

ansible-playbook main.yaml --vault-password-file=../vault_pass --extra-vars "ApplicationName=testapp1.company.com ApplicationType=https_termination Tenant=admin HealthMonitor=ping ListeningPort='443' sni=none PoolMembers='10.1.1.1,80,enabled' CloudName=Default-Cloud GenerateCertificate=True"

avinetworks-letsencrypt-demo's People

Contributors

canad1an avatar thebertster avatar slarimore02 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.