Guest User

Untitled

a guest
Oct 17th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. node "submitz" inherits default {
  2.  
  3. include django
  4. include supervisor
  5.  
  6. django::resource::project {'submitz':
  7. ensure => present,
  8. location => '/opt/submitz/submitz',
  9. source => 'git@github.com:xipax/submitz.git',
  10. user => 'submitz',
  11. }
  12.  
  13.  
  14. django::resource::virtualenv {'submitz':
  15. ensure => present,
  16. location => '/opt/submitz/.virtualenvs/submitz',
  17. user => 'submitz',
  18. project => '/opt/submitz/submitz',
  19. requirements => 'stable.pip',
  20. require => Django::Resource::Project['submitz']
  21. }
  22.  
  23. supervisor::service {"gunicorn-submitz":
  24. ensure => running,
  25. enable => true,
  26. command => "/opt/submitz/.virtualenvs/submitz/bin/gunicorn_django -w 4 -b 0.0.0.0:9000",
  27. chdir => '/opt/submitz/submitz/submitz',
  28. user => "submitz",
  29. autorestart => true,
  30. redirect_stderr => true,
  31. environment => 'LANG=en_US.UTF-8, LC_ALL=en_US.UTF-8, LC_LANG=en_US.UTF-8'
  32. }
Add Comment
Please, Sign In to add comment