#
# Install the Oozie package
#

{% set oozie_host = salt['mine.get']('G@stack_id:' ~ grains.stack_id ~ ' and G@roles:hdp2.oozie', 'grains.items', 'compound').values()[0]['fqdn'] %}

include:
  - hdp2.repo
{% if salt['pillar.get']('hdp2:security:enable', False) %}
  - krb5
  - hdp2.security
  - hdp2.oozie.security
{% endif %}

oozie-client:
  pkg:
    - installed
    - require:
      - module: hdp2_refresh_db

/etc/profile.d/oozie.sh:
  file:
    - managed
    - user: root
    - group: root
    - mode: 644
    - contents: export OOZIE_URL=http://{{ oozie_host }}:11000/oozie

#
# Install the Oozie package
#

{% set oozie_host = salt['mine.get']('G@stack_id:' ~ grains.stack_id ~ ' and G@roles:hdp2.oozie', 'grains.items', 'compound').values()[0]['fqdn'] %}

include:
  - hdp2.repo
{% if salt['pillar.get']('hdp2:security:enable', False) %}
  - krb5
  - hdp2.security
  - hdp2.oozie.security
{% endif %}

oozie-client:
  pkg:
    - installed

/etc/profile.d/oozie.sh:
  file:
    - managed
    - user: root
    - group: root
    - mode: 644
    - contents: export OOZIE_URL=http://{{ oozie_host }}:11000/oozie

Remove reference to non-existing module hdp2_refresh_db
Remove reference to non-existing module hdp2_refresh_db

clarkperkins/hdp2-formula,clarkperkins/hdp2-formula,stackdio-formulas/hdp2-formula,stackdio-formulas/hdp2-formula