Initial version of python class which installs python.
This commit is contained in:
parent
23e17e32ae
commit
97b9ab10a6
1 changed files with 24 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue