Sha256: c5e428c3fc620773119e97517acf951510d5546c1cfc01f3512de336d773dded

Contents?: true

Size: 1.81 KB

Versions: 3

Compression:

Stored size: 1.81 KB

Contents

include:
  - lang.java

teamcity-download:
  file.directory:
    - name: {{ pillar['homedir'] }}/tmp/teamcity
    - makedirs: True
    - user: {{ pillar['username'] }}
    - group: {{ pillar['username'] }}
  cmd.run:
    - name: wget -nv -c http://download.jetbrains.com/teamcity/TeamCity-{{ pillar['versions']['teamcity'] }}.tar.gz
    - unless: test -d {{ pillar['homedir'] }}/local/TeamCity-{{ pillar['versions']['teamcity'] }}/bin
    - cwd: {{ pillar['homedir'] }}/tmp/teampcity
    - user: {{ pillar['username'] }}
    - group: {{ pillar['username'] }}
    - unless: test -d {{ pillar['homedir'] }}/local/TeamCity-{{ pillar['versions']['teamcity'] }}/bin
    - require:
      - file.directory: teamcity-download

teamcity-extract:
  cmd.run:
    - name: tar xfz /tmp/TeamCity-{{ pillar['versions']['teamcity'] }}.tar.gz 
    - cwd: {{ pillar['homedir'] }}/tmp/teampcity
    - user: {{ pillar['username'] }}
    - group: {{ pillar['username'] }}
    - unless: test -d {{ pillar['homedir'] }}/local/TeamCity-{{ pillar['versions']['teamcity'] }}/bin
    - require:
      - cmd: teamcity-download

teamcity-install:
  cmd.run:
    - name: mv TeamCity-* ../../TeamCity-{{ pillar['versions']['teamcity'] }}
    - cwd: {{ pillar['homedir'] }}/tmp/teampcity
    - unless: test -d {{ pillar['homedir'] }}/local/TeamCity-{{ pillar['versions']['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
    - sls:lang.java

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
salted-rails-0.0.9 salt/ci/teamcity/init.sls
salted-rails-0.0.8 salt/ci/teamcity/init.sls
salted-rails-0.0.7 salt/ci/teamcity/init.sls