diff --git a/manifests/api.pp b/manifests/api.pp index 1b5d84a..8de7c81 100644 --- a/manifests/api.pp +++ b/manifests/api.pp @@ -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'] + } + } diff --git a/manifests/params.pp b/manifests/params.pp index 354886d..c8bcd27 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -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.