-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sanity and unit tests fixes for new ubuntu image (#361)
Sanity and unit test for latest ansible versions
- Loading branch information
1 parent
31bf629
commit 1a7072a
Showing
34 changed files
with
146 additions
and
83 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,2 @@ | ||
# This file contains ignores rule violations for ansible-lint | ||
roles/agent/tasks/start.yml schema[tasks] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
molecule ~= 5.0.1 | ||
molecule ~= 6.0.1; python_version >= "3.10" | ||
molecule ~= 5.0.1; python_version < "3.10" | ||
molecule-docker ~= 2.1.0 | ||
pytest | ||
pytest-molecule ~= 2.0.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
- name: Configure agent (Linux) | ||
include_tasks: linux/configure.yml | ||
ansible.builtin.include_tasks: linux/configure.yml | ||
when: ansible_facts.os_family != "Windows" | ||
|
||
- name: Configure agent (Windows) | ||
include_tasks: windows/configure.yml | ||
ansible.builtin.include_tasks: windows/configure.yml | ||
when: ansible_facts.os_family == "Windows" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
--- | ||
- name: Install sensu-go-agent binary | ||
include_role: | ||
ansible.builtin.include_role: | ||
name: install | ||
vars: | ||
components: [sensu-go-agent] | ||
components: [sensu-go-agent] # noqa: var-naming[no-role-prefix] | ||
|
||
- name: Inform restart handler that we are in charge of the agent service | ||
set_fact: | ||
ansible.builtin.set_fact: | ||
manage_sensu_agent_service: true | ||
|
||
- name: Configure the agent | ||
include_tasks: configure.yml | ||
ansible.builtin.include_tasks: configure.yml | ||
|
||
- name: Start the agent | ||
include_tasks: start.yml | ||
ansible.builtin.include_tasks: start.yml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
--- | ||
- name: Load Windows locations | ||
include_vars: windows.yml | ||
ansible.builtin.include_vars: windows.yml | ||
|
||
- name: Install agent communication PKI | ||
win_copy: | ||
ansible.windows.win_copy: | ||
src: "{{ agent_trusted_ca_file }}" | ||
dest: "{{ trusted_ca_file_path }}" | ||
when: agent_trusted_ca_file is defined | ||
|
||
- name: Configure sensu-agent ({{ agent_config_path }}) | ||
win_template: | ||
ansible.windows.win_template: | ||
src: agent.yml.j2 | ||
dest: "{{ agent_config_path }}" | ||
notify: Restart Windows agent |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
- name: Restart backend | ||
service: | ||
ansible.builtin.service: | ||
name: sensu-backend | ||
state: restarted | ||
when: manage_sensu_backend_service | default(False) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
--- | ||
- name: Install sensu-go-backend binary | ||
include_role: | ||
ansible.builtin.include_role: | ||
name: install | ||
vars: | ||
components: [sensu-go-backend] | ||
components: [sensu-go-backend] # noqa: var-naming[no-role-prefix] | ||
|
||
- name: Inform restart handler that we are in charge of the backend service | ||
set_fact: | ||
ansible.builtin.set_fact: | ||
manage_sensu_backend_service: true | ||
|
||
- name: Configure the backend | ||
include_tasks: configure.yml | ||
ansible.builtin.include_tasks: configure.yml | ||
|
||
- name: Start the backend | ||
include_tasks: start.yml | ||
ansible.builtin.include_tasks: start.yml |
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
Oops, something went wrong.