12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- class python (
- $version = 'system',
- $pip = false,
- $dev = false,
- $virtualenv = false,
- $gunicorn = false
- ) {
-
- $compatible = [ 'Debian', 'Ubuntu', 'CentOS', 'RedHat' ]
- if ! ($::operatingsystem in $compatible) {
- fail("Module is not compatible with ${::operatingsystem}")
- }
- Class['python::install'] -> Class['python::config']
- include python::install
- include python::config
- }
|