Created
August 1, 2017 03:07
-
-
Save kevenli/408d3d2ff04e9a9e25eec90c6de27638 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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