This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
mantl collectd
TanyaCouture edited this page Feb 25, 2016
·
1 revision
-
collectd: mantl-collectd: PR #36
collectd/files/collectd_docker_plugin.pp // 2.52 KB collectd/handlers/main.yml: restart collectd // sudo // service collectd to be restarted // tag is collects collectd/tasks/main.yml // sudo // install collectd package // Dependencies - mantl-collectd - libsemanage-python // tags are collectd and bootstrap line 14 // sudo // create plugins directory /usr/share/collectd/plugins // permissions 0755(chmod) // tag is collectd line 23 // sudo // collectd.conf.j2 is the path of the Jinja2 formatted template on the local server // render the template to /etc/collectd.conf (on remote machine) // restart collectd // tag is collectd line 34: authorizes collectd to make tcp connections // sudo // name of a SELinux boolean: collect_tcp_network_connect // boolean value set to yes // persistent: boolean setting should survive a reboot // (direct quote)when: ansible_selinux.status == "enabled" and ansible_selinux.mode == "enforcing" // tag is collectd line 41: check if collectd is authorized to connect to docker // sudo // shell: semodule -l // register: semodule_list // failed_when: no // changed_when: no // when: ansible_selinux.status == "enabled" and ansible_selinux.mode == "enforcing" // tag is collectd line 51: copy collectd selinux docker policy // sudo // copy: src=collectd_docker_plugin.pp dest=/tmp/collectd_docker_plugin.pp owner=root mode=0600 // when: "semodule_list.stdout is defined and semodule_list.stdout.find('collectd_docker_plugin') == -1" // tag is collectd line 58: authorize collectd to connect to docker // sudo shell: semodule -i /tmp/collectd_docker_plugin.pp when: "semodule_list.stdout is defined and semodule_list.stdout.find('collectd_docker_plugin') == -1" // tag is collectd line 65: enable collectd // sudo // collectd starts on boot // start collectd if not running(idempotent actions) microservices-infrastructure/roles/collectd/templates/collectd.conf.j2 //