Check out refstack source.

This patch checks out the refstack source to a configurable directory.
This commit is contained in:
Michael Krotscheck 2015-04-20 17:24:16 -07:00
parent 452d9770f3
commit 63547e70ac
2 changed files with 15 additions and 2 deletions

View File

@ -20,7 +20,8 @@ class refstack::api () {
require refstack::params
# 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':
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']
}
}

View File

@ -17,7 +17,10 @@
# Centralized configuration management for the refstack module.
#
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.