From a027766fa9780b732df0c1e97aaff0414e3862fb Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 19 Jun 2015 18:27:47 -0300 Subject: Use 'inetd' as namevar --- manifests/init.pp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'manifests') diff --git a/manifests/init.pp b/manifests/init.pp index 0159c64..016da91 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,14 +1,18 @@ class inetd { - package { "openbsd-inetd": ensure => installed, } + package { 'inetd': + name => 'openbsd-inetd', + ensure => installed, + } # inetd service - service { "openbsd-inetd": + service { 'inetd': + name => 'openbsd-inetd', enable => true, ensure => running, hasrestart => true, hasstatus => false, pattern => "/usr/sbin/inetd", - require => Package["openbsd-inetd"], + require => Package['inetd'], } # inetd config file @@ -17,6 +21,6 @@ class inetd { group => "root", mode => 0644, ensure => present, - notify => Service["openbsd-inetd"], + notify => Service['inetd'], } } -- cgit v1.2.3