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
973f1359
Commit
973f1359
authored
9 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Collectd agent WIP (installation, basic config for Debian-based and OpenBSD).
parent
79e88afc
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
files/collectd.conf
+8
-0
8 additions, 0 deletions
files/collectd.conf
handlers/main.yml
+5
-0
5 additions, 0 deletions
handlers/main.yml
tasks/collectd_agent.yml
+21
-2
21 additions, 2 deletions
tasks/collectd_agent.yml
vars/main.yml
+6
-0
6 additions, 0 deletions
vars/main.yml
with
40 additions
and
2 deletions
files/collectd.conf
0 → 100644
+
8
−
0
View file @
973f1359
AutoLoadPlugin
true
FQDNLookup
false
<
Plugin
syslog
>
LogLevel
info
</
Plugin
>
<
Include
"/etc/collectd/collectd.conf.d"
>
Filter
"*.conf"
</
Include
>
This diff is collapsed.
Click to expand it.
handlers/main.yml
+
5
−
0
View file @
973f1359
...
...
@@ -18,3 +18,8 @@
service
:
name
:
ssh
state
:
restarted
-
name
:
Restart Collectd
service
:
name
:
collectd
state
:
restarted
This diff is collapsed.
Click to expand it.
tasks/collectd_agent.yml
+
21
−
2
View file @
973f1359
...
...
@@ -7,7 +7,8 @@
-
name
:
apt install Collectd
when
:
ansible_pkg_mgr == 'apt'
apt
:
name
:
collectd-core
name
:
collectd
install_recommends
:
no
state
:
present
update_cache
:
yes
cache_valid_time
:
3600
...
...
@@ -15,5 +16,23 @@
-
name
:
pkg install Collectd
when
:
ansible_pkg_mgr == 'openbsd_pkg'
openbsd_pkg
:
name
:
collectd-5.5
name
:
'
{{
openbsd_collectd_version[ansible_distribution_release]
}}'
state
:
present
-
name
:
Create configuration directory
file
:
path
:
/etc/collectd/collectd.conf.d/
owner
:
root
group
:
root
mode
:
'
0755'
state
:
directory
-
name
:
Base configuration
copy
:
src
:
collectd.conf
dest
:
/etc/collectd/collectd.conf
owner
:
root
group
:
root
mode
:
'
0644'
notify
:
-
Restart Collectd
This diff is collapsed.
Click to expand it.
vars/main.yml
+
6
−
0
View file @
973f1359
...
...
@@ -24,3 +24,9 @@ sudoers_location:
FreeBSD
:
'
/usr/local/etc/sudoers'
Debian
:
'
/etc/sudoers'
OpenBSD
:
'
/etc/sudoers'
openbsd_collectd_version
:
'
5.5'
:
'
collectd-4.10.2p4'
'
5.6'
:
'
collectd-4.10.2p4'
'
5.7'
:
'
collectd-5.4.1p1'
'
5.8'
:
'
collectd-5.5.0p1'
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