Skip to content

Commit

Permalink
use better paramaters
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach Leslie committed Jan 7, 2013
1 parent 3aee373 commit 1f5f524
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions manifests/src.pp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
class freebsd::src (
$dir = '/usr/src',
$subversion_ver = '1.7.6',
$release = '9.0.0',
) {

Expand All @@ -10,11 +9,10 @@
package { "devel/subversion": }

exec { "checkout source":
command => '/usr/local/bin/svn co svn://svn.freebsd.org/base/release/9.0.0/ /usr/src/',
require => Package["devel/subversion"],
creates => '/usr/src/.svn',
command => "/usr/local/bin/svn co svn://svn.freebsd.org/base/release/${release}/ ${dir}/",
creates => "${dir}/.svn",
timeout => '1800',
require => Package["subversion-${subversion_ver}"],
require => Package["devel/subversion"],
}

# Below here lies a bunch of junk that will copy the GENERIC configuration,
Expand Down

0 comments on commit 1f5f524

Please sign in to comment.