Skip to content

Commit

Permalink
The path is now configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
deigote committed Aug 22, 2012
1 parent 9c339b9 commit b6ea1fa
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions manifests/init.pp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class aws-tools($path = "/opt/aws-tools") {
class aws_tools($path = "/opt") {

include git

file { "/opt":
file { "$path":
ensure => directory,
owner => 'root',
group => 'root',
Expand All @@ -11,12 +11,14 @@

git::clone { "aws-tools-clone":
url => "https://github.com/osoco/aws-tools.git",
path => "$path",
require => File["/opt"]
path => "$path/aws-tools",
username => "",
password => "",
require => File["$path"]
}

git::pull { "aws-tools-pull":
path => "$path",
path => "$path/aws-tools",
}

}

0 comments on commit b6ea1fa

Please sign in to comment.