1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2025-09-07 23:09:30 +00:00

added ::fluentd::user

this will manage the user if  is set to true. This will add the td-agent user to the user group 'adm', so td-agent can view log files under /var/log/*.
This commit is contained in:
Max Wilhelm
2015-12-22 13:56:46 +01:00
parent 6a08c099c4
commit 7821317f84
4 changed files with 56 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
require 'spec_helper'
describe 'fluentd::user', :type => :class do
let(:facts) {
{
:osfamily => 'Debian',
:lsbdistid => 'Ubuntu',
:operatingsystem => 'Ubuntu',
:lsbdistcodename => 'precise',
}
}
describe 'when called with no parameters on Ubuntu' do
it {
should contain_user('fluentd').with({
'name' => 'td-agent',
'gid' => 'td-agent',
'groups' => ['adm']
})
}
end
end