]> gitweb.fluxo.info Git - templater.git/commitdiff
Updates puppet_module
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 31 Oct 2017 19:35:10 +0000 (17:35 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 31 Oct 2017 19:35:10 +0000 (17:35 -0200)
share/templater/puppet_module/setup

index 37a9b4711e1243aea5475c463389f17623ef1717..d06f1ddf6aa5faf02266e674c9cc35af34ee54d4 100755 (executable)
@@ -5,6 +5,7 @@
 
 # Parameters
 SHARE="$1"
+PROJECT="$(basename `pwd`)"
 
 # Include basic functions
 source $SHARE/templater/functions || exit 1
@@ -16,7 +17,8 @@ function templater_puppet_module {
 
     mkdir -p manifests
 
-    touch manifests/init.pp
+    echo "class $PROJECT {"  > manifests/init.pp
+    echo "}"                >> manifests/init.pp
   else
     __templater_echo "Puppet Module already set"
   fi