|
| 1 | +# vmware.alb.avise |
| 2 | + |
| 3 | +Using this module you are able to install the Avi Vantage Service Engine, to your system. However, minimum requirements must be met. Please visit the Avi SE Requirements webpage: https://kb.avinetworks.com/docs/latest/system-requirements-hardware/ |
| 4 | + |
| 5 | +## Requirements |
| 6 | + |
| 7 | +- Docker is required, and can be installed using `avinetworks.docker` or manually installed. |
| 8 | + |
| 9 | +- `avisdk` python library is required and can be installed by: |
| 10 | +`pip install avisdk --upgrade` |
| 11 | + |
| 12 | +## Role Dependencies |
| 13 | + |
| 14 | +- avinetworks.avisdk |
| 15 | + - To install these use the following command: `ansible-galaxy install -f avinetworks.avisdk` |
| 16 | + |
| 17 | +## Role Variables |
| 18 | + |
| 19 | +### Standard Parameters |
| 20 | +| Variable | Required | Default | Comments | |
| 21 | +|----------|----------|---------|----------| |
| 22 | +| `se_skip_requirements` | No | `false` | Skips any requirements for disk space, ram, and cpu. | |
| 23 | + |
| 24 | +### Auto-registration parameters |
| 25 | +| Variable | Required | Default | Comments | |
| 26 | +|----------|----------|---------|----------| |
| 27 | +| `se_autoregister` | No | `true` | Autoregister the service engine to the specified controller. | |
| 28 | +| `se_auth_token` | No | `None`| If defined it will be the token used to register the service engine to the controller | |
| 29 | +| `se_master_ctl_ip` | No | `None` | The IP address of the controller. | |
| 30 | +| `se_master_ctl_username` | No | `None` | The username to login into controller api. <br>**Not required when `se_autoregister: false`** | |
| 31 | +| `se_master_ctl_password` | No | `None` | The passowrd to login into the controller api. <br>**Not required when `se_autoregister: false`** | |
| 32 | +| `se_cloud_name` | No | `Default-Cloud` | Name of cloud the SE should auto-register with. | |
| 33 | +| `se_tenant` | No | `admin` | Name of se_tenant the SE should auto-register with. | |
| 34 | +| `segroup_uuid` | No | `None` | Uuid of segroup_uuid the SE should auto-register with. | |
| 35 | + |
| 36 | +### Package Deploy Variables |
| 37 | +| Variable | Required | Default | Comments | |
| 38 | +|----------|----------|---------|----------| |
| 39 | +| `se_package_deploy` | No | `false` | Set to true to deploy via package. | |
| 40 | +| `se_package_source` | No | `se_docker.tgz` | Source location of the docker tgz | |
| 41 | +| `se_package_dest` | No | `/tmp/se_docker.tgz` | Destination location on the remote server | |
| 42 | + |
| 43 | +### Docker Hub and Docker Repo Variables |
| 44 | +| Variable | Required | Default | Comments | |
| 45 | +|----------|----------|---------|----------| |
| 46 | +| `se_docker_repo` | No | `None` | If using a local repository please enter it here. | |
| 47 | +| `se_version` | No | `latest` | Version of the Avi Service Engine package you want to deploy. | |
| 48 | +| `se_image` | No | `avinetworks/se:{{ se_version }}` | Full name of the service engine image. | |
| 49 | +| `se_docker_repo_user` | No | `None` | User to be used for repository authentication. | |
| 50 | +| `se_docker_repo_password` | No | `None` | Password to be used for repository authentication. | |
| 51 | + |
| 52 | +### Docker Deployment Variables |
| 53 | +| Variable | Required | Default | Comments | |
| 54 | +|-----------------------|----------|-----------|---------| |
| 55 | +| `se_dpdk` | No | `false` | When set to true performs se_dpdk installation. | |
| 56 | +| `se_inband_mgmt` | No | `false` | Enables inband management interface for this Service Engine (i.e. Use Management interface for data traffic as well). | |
| 57 | +| `se_cores` | No | `{{ ansible_processor_cores * ansible_processor_count }}` | How many cores the service engine will use. | |
| 58 | +| `se_memory_gb` | No | `{{ ansible_memtotal_mb / 1024 }}` | How much memory the service engine will use. | |
| 59 | +| `se_destination_disk` | No | auto-detect based on `ansible_mounts` largest sized disk | The disk that the service engine data will be installed | |
| 60 | +| `se_disk_path` | No | `{{ se_destination_disk }}opt/avi/se/data` | The path that the service engine data will be installed. | |
| 61 | +| `se_disk_gb` | No | `10` | The size of the disk that will be used by service engine data. | |
| 62 | +| `se_logs_disk_path` | No | `None` | The path that the service engine log data will be stored. | |
| 63 | +| `se_logs_disk_gb` | No | `None` | The size of the disk that will be used by log data. | |
| 64 | +| `se_fresh_install` | No | `false` | Erases any pre-existing directories associated with the service engine. | |
| 65 | +| `se_mounts_extras` | No | `[]` | Extra mounting points to be used by the service engine. <br>No need to include the `-v` | |
| 66 | +| `se_env_variables_extras` | No | `[]` | Extra environment variables to be used by the service engine. <br>No need to include `-e` | |
| 67 | + |
| 68 | +## Example Playbooks |
| 69 | + |
| 70 | +**WARNING:** |
| 71 | +**Before using this example please make the correct changes required for your server. For more information please visit [https://kb.avinetworks.com/sizing-service-engines/] (https://kb.avinetworks.com/sizing-service-engines/)** |
| 72 | + |
| 73 | +**It is recommended you adjust these parameters based on the implementation desired.** |
| 74 | +### Standard Example |
| 75 | +``` |
| 76 | +
|
| 77 | +- hosts: service_engines |
| 78 | + collections: |
| 79 | + - vmware.alb |
| 80 | + tasks: |
| 81 | + - name: Create a dockersied se |
| 82 | + include_role: |
| 83 | + name: avise |
| 84 | + vars: |
| 85 | + se_master_ctl_ip: 10.10.27.101 |
| 86 | + se_master_ctl_username: admin |
| 87 | + se_master_ctl_password: avi123 |
| 88 | + se_disk_gb: 60 |
| 89 | + se_cores: 4 |
| 90 | + se_memory_gb: 12 |
| 91 | +``` |
| 92 | + |
| 93 | +### Minimum Example |
| 94 | +``` |
| 95 | +
|
| 96 | +- hosts: service_engines |
| 97 | + collections: |
| 98 | + - vmware.alb |
| 99 | + tasks: |
| 100 | + - name: Create a dockersied se |
| 101 | + include_role: |
| 102 | + name: avise |
| 103 | + vars: |
| 104 | + se_master_ctl_ip: 10.10.27.101 |
| 105 | + se_master_ctl_username: admin |
| 106 | + se_master_ctl_password: avi123 |
| 107 | +``` |
| 108 | + |
| 109 | +### Example without Auto-registration |
| 110 | +``` |
| 111 | +
|
| 112 | +- hosts: all |
| 113 | + collections: |
| 114 | + - vmware.alb |
| 115 | + tasks: |
| 116 | + - name: Create a dockersied se |
| 117 | + include_role: |
| 118 | + name: avise |
| 119 | + vars: |
| 120 | + se_master_ctl_ip: 10.10.27.101 |
| 121 | + se_auth_token: "{{ se_auth_token }}" |
| 122 | +``` |
| 123 | + |
0 commit comments