From 90ef76a20ba51dd411e84bc5d5c01b9ab0a6bf9c Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Sat, 25 Jul 2020 17:41:02 +0200 Subject: puppet-lint: autofix --- manifests/service.pp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'manifests/service.pp') diff --git a/manifests/service.pp b/manifests/service.pp index 9fb1737..013ad10 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -4,25 +4,24 @@ # @summary This class handles the configuration file. Avoid modifying private classes. # class ferm::service { - # this is a private class assert_private("You're not supposed to do that!") if $ferm::manage_service { - service{'ferm': + service { 'ferm': ensure => 'running', enable => true, } # on Ubuntu, we can't start the service, unless we set ENABLED=true in /etc/default/ferm... if ($facts['os']['name'] in ['Ubuntu', 'Debian']) and ($ferm::install_method == 'package') { - file_line{'enable_ferm': + file_line { 'enable_ferm': path => '/etc/default/ferm', line => 'ENABLED="yes"', match => 'ENABLED=', notify => Service['ferm'], } - file_line{'disable_ferm_cache': + file_line { 'disable_ferm_cache': path => '/etc/default/ferm', line => 'CACHE="no"', match => 'CACHE=', -- cgit v1.2.3