Skip to content
Browse files

setup and create scm dirs

  • Loading branch information...
1 parent 9d7fed8 commit 5c6a405f2fb30d63e376eef4e5b01b9cc0fa82d5 @kitplummer committed
Showing with 38 additions and 0 deletions.
  1. +19 −0 files/loadout.sh
  2. +19 −0 manifests/init.pp
View
19 files/loadout.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# Set apps
+
+for APP in Allura* Forge* NoWarnings
+do
+ cd $APP
+ python setup.py develop
+ cd ..
+done
+
+# Load out directories for Allura
+
+for SCM in git svn hg
+do
+ mkdir -p ~/var/scm/$SCM
+ chmod 777 ~/var/scm/$SCM
+ sudo ln -s ~/var/scm/$SCM /tmp
+done
View
19 manifests/init.pp
@@ -6,6 +6,13 @@
exec { "get_allura":
command => "git clone git://git.code.sf.net/p/allura/git.git allura",
cwd => "/var",
+ creates => '/var/allura'
+ }
+
+ exec { "update_allura":
+ onlyif => '/usr/bin/test -f /var/allura',
+ command => 'git pull',
+ cwd => "/var/allura",
}
case $operatingsystem {
@@ -57,5 +64,17 @@
package { "mongo-server-10gen": ensure => installed, require => Yumrepo["10gen"]}
}
}
+
+ file { "/tmp/loadout.sh":
+ mode => 0755,
+ owner => root,
+ group => root,
+ source => "puppet:///modules/allura/loadout.sh",
+ } ->
+ exec { "sh /tmp/loadout.sh":
+ cwd => "/var/allura",
+ creates => "/var/scm/git",
+ timeout => 600,
+ }
# resources
}

0 comments on commit 5c6a405

Please sign in to comment.
Something went wrong with that request. Please try again.