init.sls 883 Bytes
Newer Older
Guba Sándor committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
include:
  - manager.gitrepo
  - manager.agentgit
  - manager.postgres
  - manager.rabbitmq
  - manager.virtualenv
  - manager.configuration
  - manager.nginx

manager:
  pkg.installed:
    - pkgs:
      - virtualenvwrapper
      - postgresql
      - git
      - python-pip
      - python-dev
      - libpq-dev
      - ntp
      - rabbitmq-server
      - memcached
      - gettext
      - wget
      - libxml2-dev
      - libxslt1-dev
      - libmemcached-dev
    - require_in:
      - service: postgres_service
  user:
    - present
    - name: {{ pillar['user'] }}
    - gid_from_name: True
     

  service:
    - running
37 38 39 40 41 42 43
    - watch:
      - file: postactivate
      - file: /etc/init/manager.conf
      - file: /etc/init/mancelery.conf
      - file: /etc/init/moncelery.conf
      - file: /etc/init/slowcelery.conf
      - sls: manager.gitrepo
Guba Sándor committed
44 45 46 47

portal:
  service:
    - running