Skip to content
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
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
5 changes: 5 additions & 0 deletions roles/debian/aws_cloudwatch_agent/templates/config.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@
],
"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/gitlab/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@

- name: Configure GitLab LE boot-time renewal timer
when:
- gitlab.letsencrypt
- gitlab.letsencrypt_timer
- gitlab_ctl_binary.stat.exists
block:
- name: Install systemd service for LE renewal
Expand Down