]> gitweb.fluxo.info Git - padrao.git/commitdiff
Git coding style
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 26 Feb 2010 13:35:44 +0000 (10:35 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 26 Feb 2010 13:35:44 +0000 (10:35 -0300)
puppet.mdwn

index 6e5b6d15f0e77e3b23e639ab0a33b17699738c6f..cefc1da778b107bd73c382867de7fb7b059d8487 100644 (file)
@@ -39,29 +39,29 @@ O primeiro passo 
       # directory for gitosis user and repositories
       file { "/var/git":
         ensure => directory,
-        mode => 0755,
-        owner => gitosis,
-        group => gitosis;
+        mode   => 0755,
+        owner  => gitosis,
+        group  => gitosis;
       }
     
       # the needed packages
       package { gitosis: ensure => installed; }
-      package { sudo: ensure => installed; }
-      package { git: ensure => installed; }
+      package { sudo:    ensure => installed; }
+      package { git:     ensure => installed; }
     
       # alters the user's home dir
       user { gitosis:
         allowdupe => false,
-        comment => "git repository hosting,,,",
-        ensure => present,
-        home => "/var/git",
-        shell => "/bin/sh";
+        comment   => "git repository hosting,,,",
+        ensure    => present,
+        home      => "/var/git",
+        shell     => "/bin/sh";
       }
     
       # tries to get rid of ugly directory structure
       file { "/srv/gitosis":
         ensure => absent,
-        force => true;
+        force  => true;
       }
       file { "/srv": ensure => absent; }
     }
@@ -145,10 +145,10 @@ Agora adicionamos um manifesto para o puppetmasterd em `puppet/manifests/classes
       cron { puppet-conf:
         command => "git --git-dir=/etc/puppet/.git/ pull /var/git/repositories/puppet-conf.git master && \
                     git --git-dir=/etc/puppet/.git/ --work-tree=/etc/puppet/ checkout -f",
-        user => root,
-        hour => '*',
-        minute => '*/5',
-        ensure => present;
+        user    => root,
+        hour    => '*',
+        minute  => '*/5',
+        ensure  => present;
       }
      
       # runs the service