puppet-openstack_health/manifests/init.pp
Glauco Oliveira e091e45134 Add provisioning scripts
This is a initial version of how to deploy OpenStack-Health.

This script provisions openstack-health as it is today. This will be a
foundation for future deployments, once the application becomes more
mature.

Change-Id: Id4ef45bba0db28b95d7fb72799cb86ab4db6343b
Co-Authored-By: Bruno Tavares <btavare@thoughtworks.com>
Co-Authored-By: Caio Carrara <ccarrara@thoughtworks.com>
2015-10-13 22:34:07 -03:00

28 lines
732 B
Puppet

# Install and maintain OpenStack Health.
# params:
# source_dir:
# The directory where the application will be running
# git_source_repo:
# Source code repository
# git_revision:
# Branch or tag that will be deployed
class openstack_health(
$source_dir = '/opt/openstack-health',
$git_source_repo = 'https://git.openstack.org/openstack/openstack-health',
$git_revision = 'master',
) {
include ::httpd
include ::openstack_health::user
vcsrepo { $source_dir :
ensure => latest,
owner => 'openstack_health',
group => 'openstack_health',
provider => git,
revision => $git_revision,
source => $git_source_repo,
require => Class['::openstack_health::user'],
}
}