aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2011-03-19 12:29:46 -0300
committerdrebs <drebs@riseup.net>2011-03-19 12:29:46 -0300
commitf873eaa52ab748bc9f1ae12d2cbf5ffc0f3f77d9 (patch)
treefa9af6f864dc7a7e79725f8f207ade88548feba0
parentebea61edc5ed367dd6bad6a5719961973194630a (diff)
downloadpadrao-f873eaa52ab748bc9f1ae12d2cbf5ffc0f3f77d9.tar.gz
padrao-f873eaa52ab748bc9f1ae12d2cbf5ffc0f3f77d9.tar.bz2
usando set ao inves de cut
-rw-r--r--bootstrap.mdwn6
1 files changed, 4 insertions, 2 deletions
diff --git a/bootstrap.mdwn b/bootstrap.mdwn
index 7d92f3a..31834f0 100644
--- a/bootstrap.mdwn
+++ b/bootstrap.mdwn
@@ -50,6 +50,7 @@ Os comandos a seguir realizam as seguintes tarefas:
puppet apply -d -v $puppet_bootstrap_dir/manifests/stage0.pp
puppet apply -d -v $puppet_bootstrap_dir/manifests/host-stage1.pp
+
Configuração do nó administrativo
---------------------------------
@@ -71,6 +72,7 @@ Os comandos a seguir realizam as seguintes tarefas:
puppet apply -d -v $puppet_bootstrap_dir/manifests/stage0.pp
puppet apply -d -v $puppet_bootstrap_dir/manifests/admin-stage1.pp
+
Criação de repositórios padrão
------------------------------
@@ -189,7 +191,7 @@ Configuração de submódulos padrão
repos="`lynx -dump http://git.sarava.org/?a=project_index | awk '{ print $1 }' | grep ^puppet-`"
for repo in $repos; do
- module="`basename $repo .git | cut -d - -f 2`"
+ module="`basename $repo .git | sed -e s/^puppet-//`"
if [ ! -d "modules/$module" ]; then
git submodule add git://git.sarava.org/puppet-$module.git modules/$module
fi
@@ -207,7 +209,7 @@ Configurando referências remotas em massa
# Adicionando referencias
for repo in $repos; do
- module="`basename $repo .git | cut -d - -f 2`"
+ module="`basename $repo .git | sed -e s/^puppet-//`"
if [ -d "puppet-$module" ]; then
cd puppet-$module
for remote in $remotes; do