summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-02-26 10:35:44 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-02-26 10:35:44 -0300
commit376db4ae495f5f9dfaf5140677596413d1dee403 (patch)
tree738e50aebd065cd1d209a6e91aa23723d216cbb5
parentd0670f438cf9930a0596fd48c7df1b6f60b2b86d (diff)
downloadpadrao-376db4ae495f5f9dfaf5140677596413d1dee403.tar.gz
padrao-376db4ae495f5f9dfaf5140677596413d1dee403.tar.bz2
Git coding style
-rw-r--r--puppet.mdwn28
1 files changed, 14 insertions, 14 deletions
diff --git a/puppet.mdwn b/puppet.mdwn
index 6e5b6d1..cefc1da 100644
--- a/puppet.mdwn
+++ b/puppet.mdwn
@@ -39,29 +39,29 @@ O primeiro passo é criar o arquivo de manifesto `/etc/puppet/manifests/classes/g
# 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