Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
5071736
Merge pull request #2654 from codeenigma/Gitlab-stop-fix-PR-2.x
drazenCE Sep 2, 2025
a8ba8e4
Fixing-email-title-for-backup-validation (#2657)
matej5 Sep 4, 2025
057138d
Adding-task-to-create-aurora-cluster (#2659)
matej5 Sep 8, 2025
2b30a78
Fixing truthy variable mistakes. (#2662)
gregharvey Sep 10, 2025
cb63668
feat(php): Add FPM slow logrotate (#2625)
klausi Sep 10, 2025
9f05b90
r73458-install-php-gmp-by-default2 (#2667)
nfawbert Sep 10, 2025
a89ae45
Wazuh-mitre-report-setup (#2588)
drazenCE Sep 11, 2025
71278e9
Wazuh mitre report setup pr 2.x (#2669)
drazenCE Sep 11, 2025
65a6a0d
pin_ansible_version (#2671)
tymofiisobchenko Sep 12, 2025
854a245
Fixing-ce-provision-vars (#2678)
drazenCE Sep 16, 2025
1850230
Updating-string (#2507)
matej5 Sep 17, 2025
d62d4e6
Added-tasks-to-backup-Aurora-and-copy-AMI-to-safe-region (#2682)
matej5 Sep 18, 2025
6717286
SG-creation-update (#2605)
matej5 Sep 18, 2025
3bcee17
Fixing-copy-AMI-to-backup-region (#2684)
matej5 Sep 18, 2025
7bd773f
Fixing-ami-copy-task (#2686)
matej5 Sep 19, 2025
88851ce
Bug fixes pr 2.x (#2690)
gregharvey Sep 22, 2025
cf6129b
73569 allowing webp nginx pr 2.x (#2692)
filiprupic Sep 22, 2025
72021af
extending provision.sh to support tags in plays (#2431)
filiprupic Sep 24, 2025
e783690
Adding-option-for-Aurora-RDS-for-backup-validation (#2635)
matej5 Sep 24, 2025
572f4b0
Fixing-aws_vpc-override (#2688)
matej5 Sep 24, 2025
ef10642
Updating-pam-ldap-condition (#2695)
drazenCE Sep 24, 2025
e630bcb
Nslcd-nscd-restart (#2693)
drazenCE Sep 30, 2025
3a2b4b3
Fixing-varnish-pinning (#2710)
drazenCE Oct 1, 2025
6657bcc
Bug fixes pr 2.x (#2698)
gregharvey Oct 1, 2025
3986a6f
Adding-cyphers-nginx-template (#2679)
drazenCE Oct 1, 2025
dd4c3c9
Fixing-when-statement (#2700)
matej5 Oct 1, 2025
7cb9bae
Bug fixes pr 2.x (#2714)
gregharvey Oct 1, 2025
6028ea0
Updated cloudwatch agent role config.json and added collectd memory m…
SunnyOd Oct 1, 2025
ed4ba42
Updated the CloudWatch Agent roles config.json to best practices and …
SunnyOd Oct 1, 2025
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
3 changes: 3 additions & 0 deletions roles/debian/aws_cloudwatch_agent/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ aws_cloudwatch_agent:
# Group prefix. Useful for grouping by environments.
# Eg. instead of "syslog", you can have "dev syslog", "prod syslog", etc.
log_group_prefix: ""
# Enable collectd integration
collectd:
enabled: false
# You'd normally use IAM policies, but that allows
# non-AWS servers to log in cloudwatch too.
use_credentials: false
Expand Down
1 change: 1 addition & 0 deletions roles/debian/aws_cloudwatch_agent/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
- name: Install main config.
ansible.builtin.template:
src: config.json.j2
force: true
dest: /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.d/config.json
owner: cwagent
group: cwagent
Expand Down
4 changes: 4 additions & 0 deletions roles/debian/aws_cloudwatch_agent/templates/config.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@
"swap_used_percent"
],
"metrics_collection_interval": 60
}{%- if aws_cloudwatch_agent.collectd is defined and aws_cloudwatch_agent.collectd.enabled %},
"collectd": {
"metrics_aggregation_interval": 60
}
{%- endif %}
}
}
}
5 changes: 5 additions & 0 deletions roles/debian/collectd/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- name: Restart collectd
ansible.builtin.service:
name: collectd
state: restarted
7 changes: 7 additions & 0 deletions roles/debian/collectd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,10 @@
force: true
when:
- collectd_configdir.stat.exists
notify: Restart collectd

- name: Ensure collectd service is enabled and started.
ansible.builtin.service:
name: collectd
state: started
enabled: true
2 changes: 1 addition & 1 deletion roles/debian/wazuh/templates/generate_weekly_report.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ fi
# Optional: Clean up old report files (keep last 2 weeks)
find /tmp -name "weekly-report-*.pdf" -mtime +14 -delete 2>/dev/null

log_message "Weekly report process completed"
log_message "Weekly report process completed"