Manage filebeat configuration via puppet
Related to T2591
Test Plan
Octocatalog-diff for moma :
*** Running octocatalog-diff on host moma.softwareheritage.org
I, [2020-09-21T14:17:34.928892 #4635] INFO -- : Catalogs compiled for moma.softwareheritage.org
I, [2020-09-21T14:17:36.404154 #4635] INFO -- : Diffs computed for moma.softwareheritage.org
diff origin/production/moma.softwareheritage.org current/moma.softwareheritage.org
*******************************************
+ File[/etc/filebeat/filebeat.yml] =>
parameters =>
"content": "# File managed by puppet - modifications will be lost\nfilebeat....
"ensure": "present",
"group": "root",
"mode": "0644",
"notify": "Service[filebeat]",
"owner": "root"
*******************************************
+ File[/etc/filebeat/inputs.d/deposit-non-ssl-access.yml] =>
parameters =>
"content": "# File managed by puppet - modifications will be lost\n- type: l...
"ensure": "present",
"group": "root",
"mode": "0644",
"notify": "Service[filebeat]",
"owner": "root"
*******************************************
+ File[/etc/filebeat/inputs.d/webapp-non-ssl-access.yml] =>
parameters =>
"content": "# File managed by puppet - modifications will be lost\n- type: l...
"ensure": "present",
"group": "root",
"mode": "0644",
"notify": "Service[filebeat]",
"owner": "root"
*******************************************
+ File[/etc/filebeat/inputs.d] =>
parameters =>
"ensure": "directory",
"group": "root",
"mode": "0755",
"owner": "root",
"purge": true
*******************************************
+ Profile::Filebeat::Log_input[deposit-non-ssl-access] =>
parameters =>
"fields": {
"apache_log_type": "access_log"
},
"paths": [
"/var/log/apache2/deposit.softwareheritage.org_non-ssl_access.log"
]
*******************************************
+ Profile::Filebeat::Log_input[webapp-non-ssl-access] =>
parameters =>
"fields": {
"apache_log_type": "access_log"
},
"paths": [
"/var/log/apache2/archive.softwareheritage.org_non-ssl_access.log"
]
*******************************************
*** End octocatalog-diff on moma.softwareheritage.org
Migrated from D3961 (view on Phabricator)