diff --git a/data/Gentoo.yaml b/data/Gentoo.yaml new file mode 100644 index 00000000..176f0ed1 --- /dev/null +++ b/data/Gentoo.yaml @@ -0,0 +1,8 @@ +--- +systemd::accounting: + DefaultCPUAccounting: 'yes' + DefaultIOAccounting: 'yes' + DefaultIPAccounting: 'yes' + DefaultBlockIOAccounting: 'yes' + DefaultMemoryAccounting: 'yes' + DefaultTasksAccounting: 'yes' diff --git a/metadata.json b/metadata.json index 27832b3e..a3dde701 100644 --- a/metadata.json +++ b/metadata.json @@ -73,6 +73,9 @@ { "operatingsystem": "Archlinux" }, + { + "operatingsystem": "Gentoo" + }, { "operatingsystem": "Fedora", "operatingsystemrelease": [ diff --git a/spec/classes/init_spec.rb b/spec/classes/init_spec.rb index 54466a94..620cb447 100644 --- a/spec/classes/init_spec.rb +++ b/spec/classes/init_spec.rb @@ -252,6 +252,8 @@ accounting = %w[DefaultCPUAccounting DefaultIOAccounting DefaultIPAccounting DefaultBlockIOAccounting DefaultMemoryAccounting DefaultTasksAccounting] when 'Debian' accounting = %w[DefaultCPUAccounting DefaultBlockIOAccounting DefaultMemoryAccounting] + when 'Gentoo' + accounting = %w[DefaultCPUAccounting DefaultIOAccounting DefaultIPAccounting DefaultBlockIOAccounting DefaultMemoryAccounting DefaultTasksAccounting] when 'RedHat' accounting = %w[DefaultCPUAccounting DefaultBlockIOAccounting DefaultMemoryAccounting DefaultTasksAccounting] when 'Suse'