dev/modules/sysconfig/manifests/buildout.pp
author Yves-Marie Haussonne <ymh.work+github@gmail.com>
Fri, 09 May 2014 18:34:46 +0200
changeset 655 cac6781d8b7f
parent 587 a1aa29e7809f
permissions -rw-r--r--
add the file settings_dev.py to be cleaned, set cache timeout to 0 (i.e. disable cache for tests)

class sysconfig::buildout {

  exec {
    'bootstrap':
      command => '/usr/bin/python bootstrap.py',
      cwd     => '/srv/comt',
      creates => '/srv/comt/bin',
      user    => 'vagrant';
    'buildout':
      command => '/srv/comt/bin/buildout -c /srv/comt/buildout-prod.cfg',
      cwd     => '/srv/comt',
      timeout => 0,
      creates => '/srv/comt/bin/gunicorn';
  }

  Exec['bootstrap'] -> Exec['buildout']

}