diff options
-rw-r--r-- | manifests/init.pp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index b62ee79..3a149e5 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,5 +1,3 @@ -import "git" - class django::server { package { ["httpd", "Django", "mod_python"]: ensure => installed, @@ -16,15 +14,11 @@ class django::server { group => "root", mode => 0644, source => "puppet:///django/django.conf", - require => [Package["httpd"],Package["mod_python"]], + require => [Package["httpd"],Package["mod_python"], Exec["Checkout django example"]], notify => Service["httpd"], } - git::repo { "django-code-repo": - src => "git://$gitserver/pub/git/sd/intranet/everest_django", - dst => "/usr/local/everest_django", - require => [Package["httpd"], Package["Django"]], + exec { "Checkout django example": + command => "/usr/bin/git clone git://${everestrepo}/pub/git/code/everest_django /usr/local/everest_django", } - - } |