[Mageia-sysadm] [746] use mysql module, reindent the file to be consistent with space and more compact

root at mageia.org root at mageia.org
Sun Jan 9 12:15:14 CET 2011


Revision: 746
Author:   misc
Date:     2011-01-09 12:15:13 +0100 (Sun, 09 Jan 2011)
Log Message:
-----------
use mysql module, reindent the file to be consistent with space and more compact

Modified Paths:
--------------
    puppet/modules/blog/manifests/init.pp

Modified: puppet/modules/blog/manifests/init.pp
===================================================================
--- puppet/modules/blog/manifests/init.pp	2011-01-09 11:15:12 UTC (rev 745)
+++ puppet/modules/blog/manifests/init.pp	2011-01-09 11:15:13 UTC (rev 746)
@@ -1,41 +1,34 @@
 #TODO: 
 # - add the creation of the user 'blog' in puppet
 class blog {
-	package { 'mysql':
-        	ensure => installed
-    	}
-
-        package { 'php-mysql':
-                ensure => installed
-        }
-
     include apache::mod_php
+    include mysql
 
-    	package { 'wget':
-        	ensure => installed
-    	}
+    package { ['wget','php-mysql']:
+        ensure => installed
+    }
 
 
 	file { "check_new-blog-post":
-        	path => "/usr/local/bin/check_new-blog-post.sh",
-        	ensure => present,
-        	owner => blog,
-        	group => blog,
-        	mode => 755,
-        	content => template("blog/check_new-blog-post.sh")
-    	}
+        path => "/usr/local/bin/check_new-blog-post.sh",
+        ensure => present,
+        owner => blog,
+        group => blog,
+        mode => 755,
+        content => template("blog/check_new-blog-post.sh")
+    }
 
-	file { "/var/lib/blog":
-                ensure => directory,
-                owner => blog,
-                group => blog,
-                mode => 644,
-        }
+    file { "/var/lib/blog":
+        ensure => directory,
+        owner => blog,
+        group => blog,
+        mode => 644,
+    }
 
-	cron { blog:
-        	user => blog,
-        	minute => '*/15',
-        	command => "/usr/local/bin/check_new-blog-post.sh",
-        	require => File["check_new-blog-post"]
-    	}
+    cron { blog:
+        user => blog,
+        minute => '*/15',
+        command => "/usr/local/bin/check_new-blog-post.sh",
+        require => File["check_new-blog-post"]
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110109/cd239dc2/attachment.html>


More information about the Mageia-sysadm mailing list