Sha256: d860a9cb1d31fb59de0845a2afa9765de5ff908e6a8933f758b8bedc413f1db0

Contents?: true

Size: 1.32 KB

Versions: 2

Compression:

Stored size: 1.32 KB

Contents

include:
  - lang.java
  - www.users

teamcity-download:
  file.directory:
    - name: /tmp/TeamCity
    - makedirs: True
    - user: www-data
    - group: www-data
    - require:
      - sls: www.users
  cmd.run:
    - name: wget -c http://download.jetbrains.com/teamcity/TeamCity-{{ pillar['teamcity-version'] }}.tar.gz
    - unless: test -d /var/TeamCity/bin
    - cwd: /tmp
    - user: www-data
    - group: www-data
    - require:
      - file.directory: teamcity-download

teamcity-extract:
  cmd.run:
    - name: tar xfz /tmp/TeamCity-{{ pillar['teamcity-version'] }}.tar.gz 
    - cwd: /tmp/TeamCity
    - user: www-data
    - group: www-data
    - require:
      - cmd: teamcity-download

teamcity-install:
  cmd.run:
    - name: rm -rf /var/TeamCity && mv /tmp/TeamCity/* /var/TeamCity && rm -fr /tmp/TeamCity
    - cwd: /tmp
    - unless: test -d /var/TeamCity/bin
    - require:
      - cmd: teamcity-extract

teamcity-setup-service:
  file.managed:
    - name: {{ pillar['etc_dir'] }}/init.d/teamcity
    - source: salt://ci/teamcity/etc/init.d/teamcity
    - user: root
    - group: root
    - mode: 755
    - require:
      - cmd: teamcity-install

teamcity:
  service:
    - running
    - enable: True
    - reload: True
    - watch:
      - file: {{ pillar['etc_dir'] }}/init.d/teamcity
  require:
    - file: teamcity-setup-service

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
salted-rails-0.0.6 salt/ci/teamcity/init.sls
salted-rails-0.0.5 salt/ci/teamcity/init.sls