Add scl_enable_onlogin option to class python

Open
#233 6 comments 0 reactions 1 assignee View on GitHub

@ghoneycutt is already working on this.

Since Aug 22, 2015.

Assessment

This issue has not been assessed yet.

Description

SCL installation is actually quite confusing since we need to run "scl enable" before using python. To avoid human error it is useful to set scl permanatly on each user login.

Example:

    # Permanently Enable a Software Collection
    # see http://developerblog.redhat.com/2014/03/19/permanently-enable-a-software-collection/
    # WARNING: this will not work for cron, virtualenv etc.
    file { "/etc/profile.d/enable${python::python_version}.sh":
      mode    => '0755',
      content => "#!/bin/bash\nsource /opt/rh/${python::python_version}/enable\nexport X_SCLS=\"`scl enable ${python::python_version} 'echo \$X_SCLS'`\"",
    }

This may be managed by an additional paramter like python::scl_enable_onlogin (defalut=Flase).

Dominant language
Ruby
Stars
196
Forks
372
Avg merge
1d 18m
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from voxpupuli/puppet-python

All issues in voxpupuli/puppet-python

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.