-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from avinetworks/rc-20.1.4
updating with 20.1.4 assets
- Loading branch information
Showing
6 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=Avi Host Service | ||
|
||
[Service] | ||
TimeoutStartSec=0 | ||
Restart=always | ||
|
||
ExecStart=/usr/sbin/avi_host_server.py | ||
ExecStop=pkill -f avi_host_server.py | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
- block: | ||
- name: Check Cpuset installed | ||
command: cset --version | ||
register: csetres | ||
failed_when: csetres.rc > 0 | ||
changed_when: false | ||
- name: Check Taskset installed | ||
command: taskset --version | ||
register: tsres | ||
failed_when: tsres.rc > 0 | ||
changed_when: false | ||
become: true | ||
when: se_dp_isolation|bool | ||
|
||
- name: Cleanup avihost service | ||
service: name=avihost enabled=no state=stopped | ||
become: true | ||
ignore_errors: yes | ||
when: se_dp_isolation|bool | ||
|
||
- name: Copy Avi Host script to remote machine | ||
copy: | ||
src: "/opt/avi/scripts/avi_host_server.py" | ||
dest: /usr/sbin/avi_host_server.py | ||
mode: 0755 | ||
become: true | ||
ignore_errors: yes | ||
|
||
- name: systemd | Deploy the avihost service | ||
copy: | ||
src: "systemd/avihost.service" | ||
dest: /etc/systemd/system/avihost.service | ||
mode: 0644 | ||
become: true | ||
ignore_errors: yes | ||
|
||
- name: Avi Host | Services | systemd | Daemon reload | ||
systemd: daemon_reload=yes name=avihost | ||
become: true | ||
ignore_errors: yes | ||
when: se_dp_isolation|bool | ||
|
||
- name: Avi Host | Services | Start the avihost service | ||
service: name=avihost enabled=yes state=started | ||
become: true | ||
ignore_errors: yes | ||
when: se_dp_isolation|bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters