Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to install older Erlang version #22

Open
xhujerr opened this issue Oct 6, 2015 · 0 comments
Open

Fails to install older Erlang version #22

xhujerr opened this issue Oct 6, 2015 · 0 comments

Comments

@xhujerr
Copy link

xhujerr commented Oct 6, 2015

If you have two Erlang versions in your repositories it fails to install the older one. In my case the new one is Erlang 18.1. The erlang package obsoletes the older packages (of same name). My workaround is:

  if $erlang_exclude_version {
    package {'erlang':
      ensure => $erlang_version,
      install_options => {'--exclude'=> "erlang-${erlang_exclude_version}"},
    }
  } else {
    package {'erlang':
      ensure => $erlang_version,
    }
  }

From hieradata I supply erlang_exclude_version=18.1 so the resulting yum command looks like:
yum install erlang-R14B --exclude erlang-18.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant