Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {%- set ant_prefix = salt['pillar.get']('ant.prefix', '/usr/local/') %}
- {%- set ant_link= salt['pillar.get']('ant.link', '/usr/bin/ant') %}
- {%- set ant_homedir = salt['pillar.get']('ant.homedir', '/ant') %}
- {%- set ant_bindir = salt['pillar.get']('ant.bindir', '/bin') %}
- install-ant:
- archive.tar:
- - options: jxf
- - tarfile: salt://ant-install/apache-ant-1.9.3-bin.tar.bz2
- - template: jinja
- - dest: {{ ant_prefix }}
- ant-present:
- file.exists:
- - name: {{ ant_prefix }}{{ant_homedir}}{{ant_bindir}}/ant
- config-ant:
- file.managed:
- - require:
- - "install-ant"
- - name: /etc/profile.d/ant.sh
- - source: salt://ant-install/ant.sh
- - template: jinja
- - mode: 644
- - user: root
- - group: root
- - context:
- ant_home: {{ ant_prefix }}{{ant_homedir}}
- ant_bin: {{ ant_prefix }}{{ant_homedir}}{{ant_bindir}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement