Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kevenli/408d3d2ff04e9a9e25eec90c6de27638 to your computer and use it in GitHub Desktop.
Save kevenli/408d3d2ff04e9a9e25eec90c6de27638 to your computer and use it in GitHub Desktop.
# module https://forge.puppet.com/stankevich/python
# $puppet module install stankevich-python --version 1.18.2
# solution see https://github.com/stankevich/puppet-python/issues/233
class { 'python':
version => 'python27',
pip => 'present',
dev => 'absent',
virtualenv => 'absent',
gunicorn => 'absent',
provider => 'scl',
use_epel => false,
}
file { "/etc/profile.d/enable_python27.sh":
mode => '0755',
content => "#!/bin/bash\nsource /opt/rh/python27/enable\nexport X_SCLS=\"`scl enable python27 'echo \$X_SCLS'`\"",
require => Class['python']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment