Initial version of python class which installs python.

This commit is contained in:
Timo Mkinen 2012-04-17 00:35:42 +03:00
parent 23e17e32ae
commit 97b9ab10a6

View file

@ -1,3 +1,27 @@
# Install python
#
class python {
package { "python":
ensure => installed,
notify => $operatingsystem ? {
"openbsd" => Exec["python-links"],
default => undef,
},
}
exec { "python-links":
path => "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin",
command => "pkg_info python | egrep '^[ ]*ln -sf' | sh",
user => "root",
group => "wheel",
refreshonly => true,
}
}
# Install python software using setup.py. # Install python software using setup.py.
# #
# === Parameters # === Parameters