Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set art = piller.get('artifactory', {}) %}
- {% set version = art.get('version', '3.0.4') %}
- {% set base = art.get('base', '/opt') %}
- {% set home = art.get('home', '/opt/artifactory') %}
- {% set uid = art.get('uid', '1030') %}
- {% set gid = art.get('gid', '1006') %}
- artifactory:
- group.present:
- - name: system
- - gid: {{ gid }}
- user.present:
- - uid: {{ uid }}
- - gid: {{ gid }}
- - home: {{ home }}
- - shell: /bin/bash
- - require:
- - group: artifactory
- file.managed:
- - name: /var/lib/artifactory-{{ version }}.zip
- - source: 'http://dl.bintray.com/content/jfrog/artifactory/artifactory-{{ version }}.zip?direct'
- - source_hash: md5=c65a2a41657d9e14b35a81c66ace78c6
- - require:
- - user: artifactory
- cmd.wait:
- - cwd: {{ base }}
- - name: 'unzip /var/lib/artifactory-{{ version }}.zip && ln -sf {{ base }}/artifactory-{{ version }} {{ home }} && chown artifactory:artifactory {{ base }}/artifactory -R'
- - watch:
- - file: artifactory
- service.running:
- - enabled: True
- - require:
- - cmd: 'artifactory service install'
- - user: artifactory
- artifactory service install:
- cmd.wait:
- - cwd: {{ home }}
- - name: bin/installService.sh
- - watch:
- - cmd: artifactory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement