You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "David M. Lyle (JIRA)" <ji...@apache.org> on 2016/03/28 14:07:25 UTC

[jira] [Created] (METRON-87) Ansible Roles defining hdp_repo_def could duplicate repo definitions.

David M. Lyle created METRON-87:
-----------------------------------

             Summary: Ansible Roles defining hdp_repo_def could duplicate repo definitions.  
                 Key: METRON-87
                 URL: https://issues.apache.org/jira/browse/METRON-87
             Project: Metron
          Issue Type: Bug
            Reporter: David M. Lyle


When roles contain

  - name: Retrieve HDP repository definition
    get_url:
      url: "{{ hdp_repo_def }}"
      dest: /etc/yum.repos.d/hdp.repo
      mode: 0644

are assigned to hosts which are also hadoop_slave hosts, they will duplicate the HDP and HDP-UTILS repo definitions making yum unhappy.

Proposed fix:
 Change the destination to /etc/yum.repos.d/HDP.repo.
 Move all definitions of hdp_repo_def to {role}/defaults/main.yml
 Change default location of repo file to: http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.4.0/hdp.repo
  Remove unused variable from the yaf role.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)