Skip to content

Commit

Permalink
SECOPS-3304 - remove configure parts that don't exist in this agent.
Browse files Browse the repository at this point in the history
  • Loading branch information
deekayen committed Jun 3, 2022
1 parent d37383b commit 1a622b7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 32 deletions.
26 changes: 0 additions & 26 deletions tasks/configure_collector.yml

This file was deleted.

4 changes: 0 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
- configure_al_collector
- provision_al_collector

- name: Include Agent optional configuration file
include: configure_collector.yml
tags: [configure_al_collector]

- name: Include Agent Provisioning file
include: provision_collector.yml
tags: [provision_al_collector]
Expand Down
4 changes: 2 additions & 2 deletions tasks/provision_collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
when: al_remote_registration_key is defined and al_remote_registration_key != "your_registration_key_here"

- name: Provision Alert Logic Collector
ansible.builtin.command: "/etc/init.d/al-remote provision {{ al_remote_provision_options | join(' ') }}"
ansible.builtin.command: "/etc/init.d/al-log-syslog provision --key {{ al_remote_provision_options | join(' ') }}"
notify:
- restart al-log-syslog
tags: provision_al_collector
when: not al_remote_for_imaging and not collector_provisioned.stat.exists and al_remote_provision_options != "[]"

- name: Provision Alert Logic Collector - for Imaging
ansible.builtin.command: "/etc/init.d/al-remote provision {{ al_remote_provision_options | join(' ') }}"
ansible.builtin.command: "/etc/init.d/al-log-syslog provision --key {{ al_remote_provision_options | join(' ') }}"
tags: provision_al_collector
when: al_remote_for_imaging and not collector_provisioned.stat.exists and al_remote_provision_options != "[]"

0 comments on commit 1a622b7

Please sign in to comment.