Guest User

Untitled

a guest
Jul 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. class projects::blacklightdev {
  2.  
  3. include projects::blacklight
  4. include rubygems
  5. include rubygems::blacklight
  6. include sqlite
  7.  
  8. svn::workdir { blacklight_latest:
  9. repository => "file:///svn/blacklight/trunk/rails",
  10. local_container => "/usr/local/projects",
  11. local_name => "blacklight_latest"
  12. }
  13.  
  14. exec { "change blacklightdev to apache" :
  15. command => "/bin/chown -R apache:apache /usr/local/projects"
  16. }
  17.  
  18. exec { "blacklightdev db:migrate" :
  19. path => ["/usr/bin", "/usr/sbin", "/bin"],
  20. command => "cd /usr/local/projects/blacklight_latest; rake db:reset"
  21. }
  22.  
  23. file {'/etc/httpd/host.d/blacklightdev.lib.conf':
  24. mode => 644, owner => apache, group => apache,
  25. require => Package['httpd'],
  26. notify => Service['httpd'],
  27. source => [
  28. "puppet:///projects/host.d/blacklightdev.lib.conf"
  29. ],
  30. }
  31. }
Add Comment
Please, Sign In to add comment