Skip to content

Commit

Permalink
Merge pull request #9 from homelessnessbo/master
Browse files Browse the repository at this point in the history
pam_nofile limits
  • Loading branch information
UnderGreen authored Jan 23, 2017
2 parents c4c7639 + b6be39e commit 09079c1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ prometheus_config_flags:
'alertmanager.url': '{{ prometheus_alertmanager_url }}'

prometheus_config_flags_extra: {}
prometheus_pam_domain: "prometheus"
prometheus_pam_nofile_value: "1024"

13 changes: 13 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,19 @@
notify:
- restart prometheus

- name: change pam nofile limits for prometheus
pam_limits:
domain: "{{ prometheus_pam_domain }}"
limit_item: nofile
limit_type: "{{ item }}"
value: "{{ prometheus_pam_nofile_value }}"
use_max: yes
with_items:
- soft
- hard
notify:
- restart prometheus

- name: ensure prometheus service is enabled
service:
name: prometheus
Expand Down

0 comments on commit 09079c1

Please sign in to comment.