system-config/modules/openstack_project/manifests/activity_dev.pp
Jeremy Stanley 9e275a0731 Fix dependencies for activity-dev
* modules/openstack_project/manifests/activity_dev.pp: Add missing
parent directory and replace incorrect dependency on a non-puppeted
www-data user account with one on the apache2 package instead.

Change-Id: Ie1dceb9c5d83ed11f9aa9aebd2a18d2ee91b44af
2013-09-22 01:53:12 +00:00

57 lines
1.0 KiB
Puppet

# Server for activity board - staging
class openstack_project::activity_dev (
$site_admin_password = '',
$site_mysql_password = '',
$site_mysql_host = '',
$sysadmins = [],
) {
class { 'openstack_project::server':
iptables_public_tcp_ports => [22, 80],
sysadmins => $sysadmins,
}
realize (
User::Virtual::LocalUser['smaffulli'],
)
include apache
a2mod { 'rewrite':
ensure => present,
}
a2mod { 'proxy':
ensure => present,
}
a2mod { 'proxy_http':
ensure => present,
}
apache::vhost {'activity-dev.openstack.org':
port => 80,
priority => '50',
docroot => '/srv/static/dash',
require => File['/srv/static/dash'],
}
file { '/srv/static/dash':
ensure => directory,
owner => 'www-data',
group => 'www-data',
mode => '0775',
require => [
File['/srv/static'],
Package['apache2'],
]
}
file { '/srv/static':
ensure => directory,
owner => 'root',
group => 'root',
mode => '0755',
}
}