From 21f541b6d5fce1f476a027d4cc9ec84dad989c8c Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 15 Mar 2012 22:55:03 +0000 Subject: clean module main_mirror to conform to puppet style guide with puppet-lint --- deployment/main_mirror/manifests/init.pp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'deployment/main_mirror') diff --git a/deployment/main_mirror/manifests/init.pp b/deployment/main_mirror/manifests/init.pp index fb30d980..a4e8cc76 100644 --- a/deployment/main_mirror/manifests/init.pp +++ b/deployment/main_mirror/manifests/init.pp @@ -2,18 +2,20 @@ class main_mirror { # FIXME shouldn't the various code in this module ? include mirror::main - class { rsyncd: - rsyncd_conf => 'main_mirror/rsyncd.conf' + class { 'rsyncd': + rsyncd_conf => 'main_mirror/rsyncd.conf' } - $mirror = "/distrib" - file { ["$mirror", "$mirror/mirror", "$mirror/archive"]: + $mirror = '/distrib' + file { [$mirror, + "$mirror/mirror", + "$mirror/archive"]: ensure => directory, } file { - "$mirror/README": source => "puppet:///modules/main_mirror/README"; - "$mirror/mirror/mirror.readme": source => "puppet:///modules/main_mirror/mirror/mirror.readme"; - "$mirror/mirror/paths.readme": source => "puppet:///modules/main_mirror/mirror/paths.readme"; + "$mirror/README": source => 'puppet:///modules/main_mirror/README'; + "$mirror/mirror/mirror.readme": source => 'puppet:///modules/main_mirror/mirror/mirror.readme'; + "$mirror/mirror/paths.readme": source => 'puppet:///modules/main_mirror/mirror/paths.readme'; } } -- cgit v1.2.1