Commit 114ac52a authored by Jens Langhammer's avatar Jens Langhammer

add telegraf user to docker group for docker stats

parent 408fec9b
Pipeline #2782 failed with stage
in 13 seconds
...@@ -11,6 +11,11 @@ class beryjuorg_gitlab::runner ( ...@@ -11,6 +11,11 @@ class beryjuorg_gitlab::runner (
class {'docker': class {'docker':
} }
->exec { 'telegraf docker membership':
unless => '/bin/grep -q "docker\\S*telegraf" /etc/group',
command => '/usr/sbin/usermod -aG docker telegraf',
notify => Service['telegraf'],
}
->telegraf::input { 'docker': ->telegraf::input { 'docker':
plugin_type => 'docker', plugin_type => 'docker',
options => { options => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment