Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wazuh-agent #223

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ansible/eth1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
- { role: infra-role-open-ports, tags: open-ports }
- { role: infra-role-nimbus-eth1, tags: nimbus-eth1 }
- { role: infra-role-rocketpool, tags: rocketpool }
- { role: infra-role-wazuh-agent, tags: wazuh-agent }
1 change: 1 addition & 0 deletions ansible/fluffy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- { role: update-netplan, tags: update-netplan }
- { role: infra-role-open-ports, tags: open-ports }
- { role: infra-role-smart-metrics, tags: smart-metrics }
- { role: infra-role-wazuh-agent, tags: wazuh-agent }
tasks:
- include_role:
name: infra-role-nimbus-fluffy
Expand Down
8 changes: 5 additions & 3 deletions ansible/geth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
hosts:
- nimbus-geth-mainnet
roles:
- { role: infra-role-open-ports, tags: open-ports }
- { role: infra-role-open-ports, tags: open-ports }
- { role: infra-role-smart-metrics, tags: smart-metrics }
- { role: infra-role-geth, tags: geth }
- { role: infra-role-geth, tags: geth }
- { role: infra-role-geth-exporter, tags: geth-exporter }
- { role: infra-role-wazuh-agent, tags: wazuh-agent }

- name: Deploy Geth nodes for Windows
become: true
Expand All @@ -26,8 +27,9 @@
hosts:
- nimbus-geth-holesky
roles:
- { role: infra-role-open-ports, tags: open-ports }
- { role: infra-role-open-ports, tags: open-ports }
- { role: infra-role-smart-metrics, tags: smart-metrics }
- { role: infra-role-wazuh-agent, tags: wazuh-agent }
tasks:
- include_role:
name: infra-role-geth
Expand Down
4 changes: 4 additions & 0 deletions ansible/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,7 @@ validator_client_consul_failures_before_critical: '{{ beacon_node_consul_failure
bootstrap__vault_ca_cert: '{{ lookup("passwordstore", "services/vault/certs/root-ca/cert returnall=true")}}'
bootstrap__vault_client_cert: '{{ lookup("passwordstore", "services/vault/certs/client-host/cert returnall=true")}}'
bootstrap__vault_client_key: '{{ lookup("passwordstore", "services/vault/certs/client-host/privkey returnall=true")}}'

# Wazuh Agent
wazuh_agent_enrollment_key: '{{ lookup("vault", "wazuh-agent", field="enrollment-key", env="all", stage="all")}}'
wazuh_root_ca: '{{ lookup("vault", "certs/wazuh-ca", field="certificate", env="all", stage="all")}}'
13 changes: 7 additions & 6 deletions ansible/holesky.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
- nimbus-holesky-neth
vars_files: layout/holesky.yml
roles:
- { role: update-netplan, tags: update-netplan, when: ansible_system == 'Linux' }
- { role: infra-role-swap-file, tags: swap-file }
- { role: infra-role-open-ports, tags: open-ports }
- { role: redirect-ports, tags: redirect-ports }
- { role: nimbus-era-files, tags: nimbus-era-files }
- { role: infra-role-mev-boost, tags: mev-boost, when: mev_boost_enabled == true }
- { role: update-netplan, tags: update-netplan, when: ansible_system == 'Linux' }
- { role: infra-role-swap-file, tags: swap-file }
- { role: infra-role-open-ports, tags: open-ports }
- { role: redirect-ports, tags: redirect-ports }
- { role: nimbus-era-files, tags: nimbus-era-files }
- { role: infra-role-mev-boost, tags: mev-boost, when: mev_boost_enabled == true }
- { role: infra-role-wazuh-agent, tags: wazuh-agent }
tasks:
- include_role:
name: infra-role-beacon-node-linux
Expand Down
2 changes: 2 additions & 0 deletions ansible/mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- { role: infra-role-open-ports, tags: [ open-ports ] }
- { role: redirect-ports, tags: [ redirect-ports ] }
- { role: get-geth-api-urls, tags: [ get-geth-api-urls, beacon-node ] }
- { role: infra-role-wazuh-agent, tags: wazuh-agent }
tasks:
- include_role:
name: infra-role-beacon-node-linux
Expand Down Expand Up @@ -51,6 +52,7 @@
- { role: redirect-ports, tags: [ redirect-ports ] }
- { role: get-geth-api-urls, tags: [ get-geth-api-urls, beacon-node ] }
- { role: nimbus-era-files, tags: [ nimbus-era-files ] }
- { role: infra-role-wazuh-agent, tags: wazuh-agent }
tasks:
- include_role:
name: infra-role-beacon-node-linux
Expand Down
4 changes: 4 additions & 0 deletions ansible/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,7 @@
- name: infra-role-nimbus-bench-eth1
src: [email protected]:status-im/infra-role-nimbus-bench-eth1.git
version: ed5059de24c54ab928f390640f9a9a7649753e12

- name: infra-role-wazuh-agent
src: [email protected]:status-im/infra-role-wazuh-agent.git
version: 413e806e8238a4d6f361fab8897bddc1411b0b9b
1 change: 1 addition & 0 deletions ansible/sepolia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
- { role: infra-role-smart-metrics, tags: [ smart-metrics ] }
- { role: redirect-ports, tags: [ redirect-ports ] }
- { role: nimbus-era-files, tags: [ nimbus-era-files ] }
- { role: infra-role-wazuh-agent, tags: wazuh-agent }
tasks:
- include_role:
name: infra-role-geth
Expand Down