Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ansible
common
Commits
042c877f
Commit
042c877f
authored
9 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
More work on Collectd, stil WIP.
parent
6665987b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/collectd_agent.yml
+24
-3
24 additions, 3 deletions
tasks/collectd_agent.yml
templates/collectd/write.conf.j2
+9
-0
9 additions, 0 deletions
templates/collectd/write.conf.j2
with
33 additions
and
3 deletions
tasks/collectd_agent.yml
+
24
−
3
View file @
042c877f
...
@@ -23,16 +23,37 @@
...
@@ -23,16 +23,37 @@
file
:
file
:
path
:
/etc/collectd/collectd.conf.d/
path
:
/etc/collectd/collectd.conf.d/
owner
:
root
owner
:
root
group
:
root
group
:
'
{{
root_group[ansible_os_family]
}}'
mode
:
'
0755'
mode
:
'
0755'
state
:
directory
state
:
directory
-
name
:
Base configuration
-
name
:
Gather Collectd facts
collectd_facts
:
-
name
:
Base Collectd configuration
copy
:
copy
:
src
:
collectd.conf
src
:
collectd.conf
dest
:
/etc/collectd/collectd.conf
dest
:
/etc/collectd/collectd.conf
owner
:
root
owner
:
root
group
:
root
group
:
'
{{
root_group[ansible_os_family]
}}'
mode
:
'
0644'
notify
:
-
Restart Collectd
-
name
:
Default Collectd configuration
with_fileglob
:
-
template/collectd/*.j2
template
:
src
:
'
{{
item
}}'
dest
:
/etc/collectd/collectd.conf.d/
owner
:
root
group
:
'
{{
root_group[ansible_os_family]
}}'
mode
:
'
0644'
mode
:
'
0644'
notify
:
notify
:
-
Restart Collectd
-
Restart Collectd
-
name
:
Enabled Collectd service
service
:
name
:
collectd
state
:
started
enabled
:
yes
This diff is collapsed.
Click to expand it.
templates/collectd/write.conf.j2
0 → 100644
+
9
−
0
View file @
042c877f
{% if collectd_collectd_server is defined %}
{% elif collectd_riemann_server is defined and (collectd['major'] > 5 or
(collectd['major'] == 5 and collectd['minor'] >= 3)) %}
{% elif collectd_graphite_server is defined and (collectd['major'] > 5 or
(collectd['major'] == 5 and collectd['minor'] >= 1)) %}
{% endif %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment