Puppet Class: cubbystack::horizon
- Defined in:
- manifests/horizon.pp
Overview
Class: cubbystack::horizon
Configures Horizon
Parameters
- config_file
-
The location of the local_settings.py file to deploy. Defaults to ‘modules/cubbystack/files/horizon/local_settings.py’ Static for now.
- web_user
-
The user that the web service runs as Defaults to the params file
- web_group
-
The group that the web service runs as Defaults to the params file
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'manifests/horizon.pp', line 20
class cubbystack::horizon (
$package_ensure = latest,
$config_file = 'puppet:///modules/cubbystack/horizon/local_settings.py',
$web_user = $::cubbystack::params::horizon_apache_user,
$web_group = $::cubbystack::params::horizon_apache_group
) {
include ::cubbystack::params
package { 'horizon':
name => $::cubbystack::params::horizon_package_name,
ensure => $package_ensure,
}
if $::cubbystack::params::horizon_package_deps {
package { $::cubbystack::params::horizon_package_deps:
ensure => $package_ensure,
}
}
File {
ensure => present,
owner => $web_user,
group => $web_group,
mode => '0640',
}
if $config_file {
file { $::cubbystack::params::horizon_config_file:
source => $config_file,
require => Package['horizon'],
}
}
}
|