Check out refstack source.
This patch checks out the refstack source to a configurable directory.
This commit is contained in:
parent
452d9770f3
commit
63547e70ac
@ -20,7 +20,8 @@ class refstack::api () {
|
|||||||
require refstack::params
|
require refstack::params
|
||||||
|
|
||||||
# Import parameters into local scope.
|
# Import parameters into local scope.
|
||||||
$python_version = $refstack::params::python_version
|
$python_version = $::refstack::params::python_version
|
||||||
|
$src_api_root = $::refstack::params::src_api_root
|
||||||
|
|
||||||
class { 'python':
|
class { 'python':
|
||||||
version => $python_version,
|
version => $python_version,
|
||||||
@ -37,4 +38,13 @@ class refstack::api () {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Download the latest Refstack Source
|
||||||
|
vcsrepo { $src_api_root:
|
||||||
|
ensure => latest,
|
||||||
|
provider => git,
|
||||||
|
revision => 'master',
|
||||||
|
source => 'https://git.openstack.org/stackforge/refstack/',
|
||||||
|
require => Package['git']
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,10 @@
|
|||||||
# Centralized configuration management for the refstack module.
|
# Centralized configuration management for the refstack module.
|
||||||
#
|
#
|
||||||
class refstack::params (
|
class refstack::params (
|
||||||
$python_version = '2.7'
|
$python_version = '2.7',
|
||||||
|
|
||||||
|
# Source and install directories.
|
||||||
|
$src_api_root = '/opt/refstack-api'
|
||||||
) {
|
) {
|
||||||
|
|
||||||
# Resolve a few parameters based on the install environment.
|
# Resolve a few parameters based on the install environment.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user