Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 25 additions & 5 deletions manifests/nova_dependencies.pp
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
class openstack_hyper_v::nova_dependencies inherits openstack_hyper_v::params {

Class['windows_python'] -> Class['mingw'] -> Windows_python::Dependency<| |>

class { 'mingw': }
# === Class: openstack_hyper_v::nova_dependencies
#
# This class is responsible of managing all the dependencies that OpenStack
# Nova needs in order to work properly.
#
# === Parameters
#
# [*build_from_source*]
# Boolean value that determines if the dependencies will be compiled when
# necessary or installed through prebuilt packages. The default values is
# false. If true, MinGW is used.
#
# === Authors
#
class openstack_hyper_v::nova_dependencies (
$build_from_source = $::openstack_hyper_v::params::build_from_source,
) inherits openstack_hyper_v::params {

if $build_from_source {
class { 'mingw':
before => Class['windows_python'],
}
}

Class['windows_python'] -> Windows_python::Dependency<| |>

class { 'windows_python':
python_source => $python_source,
Expand Down
3 changes: 3 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
class openstack_hyper_v::params {
# General
$build_from_source = false

# Python base installation
$python_source = undef
$python_installdir = 'C:\Python27'
Expand Down