
In anticipation of puppet 4, start trying to deal with puppet 4 things that can be helpfully predicted by puppet lint plugins. This patch also fixes lint errors caught by the puppet-lint-absolute_classname-check gem. Change-Id: Ia6fdc921b4c4a8ec2d5f6a6dfe9669704eafc67b
38 lines
707 B
Puppet
38 lines
707 B
Puppet
# == Class: apps_site
|
|
#
|
|
class apps_site (
|
|
$vhost_name = $::fqdn,
|
|
$root_dir = '/opt/apps_site',
|
|
$serveradmin = "webmaster@${::domain}",
|
|
|
|
$commit = 'master',
|
|
) {
|
|
|
|
if !defined(Package['git']) {
|
|
package { 'git':
|
|
ensure => present
|
|
}
|
|
}
|
|
|
|
vcsrepo { $root_dir:
|
|
ensure => latest,
|
|
provider => git,
|
|
revision => $commit,
|
|
source => 'https://git.openstack.org/stackforge/apps-catalog.git',
|
|
require => [
|
|
Package['git'],
|
|
]
|
|
}
|
|
|
|
include ::apache
|
|
|
|
::apache::vhost { $vhost_name:
|
|
port => 80,
|
|
docroot => "${root_dir}/openstack_catalog/web",
|
|
priority => '50',
|
|
template => 'apps_site/vhost.erb',
|
|
vhost_name => $vhost_name,
|
|
}
|
|
|
|
}
|