Skip to content

Commit

Permalink
removed init and upstart since they are no longer supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Anderson committed Jun 19, 2019
1 parent 27c3404 commit 376cbd0
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 302 deletions.
34 changes: 0 additions & 34 deletions files/init/avicontroller

This file was deleted.

57 changes: 0 additions & 57 deletions files/init/avicontroller_watcher

This file was deleted.

11 changes: 0 additions & 11 deletions files/init/avicontroller_watcher.sh

This file was deleted.

32 changes: 0 additions & 32 deletions files/upstart/avicontroller

This file was deleted.

21 changes: 0 additions & 21 deletions files/upstart/avicontroller.conf

This file was deleted.

3 changes: 0 additions & 3 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@

- name: Avi Controller | Services | Restart the avicontroller service
service: name=avicontroller enabled=yes state=restarted

- name: Avi Controller | Services | init.d | Restart the avicontroller_watcher service
service: name=avicontroller_watcher enabled=yes state=restarted
12 changes: 0 additions & 12 deletions tasks/docker/fresh_install.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
---
- block:
- name: Avi Controller | Requirements | init.d | Stop the avicontroller_watcher service for fresh install
service: name=avicontroller_watcher enabled=no state=stopped
- name: Avi Controller | Requirements | init.d | Stop the avicontroller service for fresh install
service: name=avicontroller enabled=no state=stopped
when: ansible_service_mgr == 'init' or
( ansible_service_mgr != 'systemd' and not con_new_service )

- name: Avi Controller | Requirements | systemd | Check the avicontroller service exist
stat: path=/etc/systemd/system/avicontroller.service
register: service_status
Expand All @@ -15,10 +7,6 @@
systemd: daemon_reload=yes name=avicontroller enabled=no state=stopped
when: ansible_service_mgr == 'systemd' and service_status.stat.exists

- name: Avi Controller | Requirements | upstart | Stop the avicontroller service for fresh install
service: name=avicontroller enabled=no state=stopped
when: ansible_service_mgr == 'upstart' and con_new_service

- name: Avi Controller | Requirements | Clean directories for fresh install
file: path="{{ item }}" state=absent
when: item != None
Expand Down
6 changes: 1 addition & 5 deletions tasks/docker/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
---

- name: Avi Controller | Services | systemd | Check if Avi Controller installed
include: "services/systemd/check.yml"
when: ansible_service_mgr == "systemd"
- name: Avi Controller | Services | init.d | Check if Avi Controller installed
include: "services/initd/check.yml"
when: ansible_service_mgr != "systemd"

- block:
- name: Avi Controller | Check minimum requirements
Expand All @@ -28,7 +24,7 @@
when: con_setup_json != None

- name: Avi Controller | Copy setup.json to controller
copy: content="{{ con_setup_json_raw | to_nice_json }}\n" dest="{{ con_disk_path }}/setup.json"
copy: content="{{ con_setup_json_raw | to_json }}\n" dest="{{ con_disk_path }}/setup.json"
when: con_setup_json_raw != None

# We must do this step first just in case we need to override defaults from the supplied package
Expand Down
5 changes: 0 additions & 5 deletions tasks/docker/services/upstart/check.yml

This file was deleted.

5 changes: 0 additions & 5 deletions tasks/docker/services/upstart/install.yml

This file was deleted.

117 changes: 0 additions & 117 deletions templates/16.x/avicontroller.j2

This file was deleted.

0 comments on commit 376cbd0

Please sign in to comment.