Skip to content

Commit

Permalink
set the dev name during play execution
Browse files Browse the repository at this point in the history
  • Loading branch information
sabandi committed Aug 25, 2021
1 parent 39680ea commit 40a54c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions tasks/docker/con_requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- name: Avi Controller | Requirements | Set the management device name | ip addr
set_fact:
con_dev_name: "{{ con_mgmt_device.stdout }}"
AVICONTROLLER_DEV_NAME: "{{ con_mgmt_device.stdout }}"
when: con_dev_name == None

- name: Avi Controller | Requirements | Set max_cores and memory limits of environment
Expand Down
5 changes: 0 additions & 5 deletions templates/avicontroller.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
container=avicontroller
logfile="/var/log/${container}.log"

# The following value is the management device that the controller will use.
# This interface is managed by the service and is used when working with clusters
# to properly shut down the sub-interface when a new master is chosen.
AVICONTROLLER_DEV_NAME="{{ con_dev_name }}"

write_log() {
echo $1 2>&1 | tee -a ${logfile}
}
Expand Down

0 comments on commit 40a54c0

Please sign in to comment.