config.pp 554 B

1234567891011121314151617181920212223
  1. class python::config {
  2. Class['python::install'] -> Python::Pip <| |>
  3. Class['python::install'] -> Python::Requirements <| |>
  4. Class['python::install'] -> Python::Virtualenv <| |>
  5. Python::Virtualenv <| |> -> Python::Pip <| |>
  6. if $python::gunicorn {
  7. Class['python::install'] -> Python::Gunicorn <| |>
  8. Python::Gunicorn <| |> ~> Service['gunicorn']
  9. service { 'gunicorn':
  10. ensure => running,
  11. enable => true,
  12. hasrestart => true,
  13. hasstatus => false,
  14. pattern => '/usr/bin/gunicorn',
  15. }
  16. }
  17. }