Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 931660 Details for
Bug 1129408
HA: Systemd unit needs option to be disabled for horizon
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Add manage_service feature for horizon
0001-PATCH-Add-manage_service-feature-for-horizon.patch (text/plain), 3.44 KB, created by
Ivan Chavero
on 2014-08-27 19:44:10 UTC
(
hide
)
Description:
Add manage_service feature for horizon
Filename:
MIME Type:
Creator:
Ivan Chavero
Created:
2014-08-27 19:44:10 UTC
Size:
3.44 KB
patch
obsolete
>From 6498ebb8a9f292ef1ff6fa10480ed3e5dea1fd73 Mon Sep 17 00:00:00 2001 >From: Ivan Chavero <ichavero@redhat.com> >Date: Wed, 27 Aug 2014 13:38:32 -0600 >Subject: [PATCH] [PATCH] Add manage_service feature for horizon > >--- > manifests/init.pp | 10 ++++++++++ > manifests/wsgi/apache.pp | 17 ++++++++++++++++- > spec/classes/horizon_init_spec.rb | 4 ---- > spec/classes/horizon_wsgi_apache_spec.rb | 1 - > 4 files changed, 26 insertions(+), 6 deletions(-) > >diff --git a/manifests/init.pp b/manifests/init.pp >index 405b732..c0f02c4 100644 >--- a/manifests/init.pp >+++ b/manifests/init.pp >@@ -123,6 +123,12 @@ > # [*configure_apache*] > # (optional) Configure Apache for Horizon. (Defaults to true) > # >+# [*manage_apache*] >+# (optional) Start Apache. (Defaults to true) >+# >+# [*enable_apache*] >+# (optional) Enable Apache startup after reboot. (Defaults to true) >+# > # [*bind_address*] > # (optional) Bind address in Apache for Horizon. (Defaults to undef) > # >@@ -188,6 +194,8 @@ class horizon( > $help_url = 'https://access.redhat.com/site/documentation//en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/5/index.html', > $local_settings_template = 'horizon/local_settings.py.erb', > $configure_apache = true, >+ $manage_apache = true, >+ $enable_apache = true, > $bind_address = undef, > $servername = $::fqdn, > $listen_ssl = false, >@@ -281,6 +289,8 @@ class horizon( > > if $configure_apache { > class { 'horizon::wsgi::apache': >+ manage_service => $manage_apache, >+ enabled => $enable_apache, > bind_address => $bind_address, > fqdn => $fqdn, > servername => $servername, >diff --git a/manifests/wsgi/apache.pp b/manifests/wsgi/apache.pp >index dd96ce0..94a1529 100644 >--- a/manifests/wsgi/apache.pp >+++ b/manifests/wsgi/apache.pp >@@ -35,6 +35,8 @@ > # (optional) A hash of extra paramaters for apache::wsgi class. > # Defaults to {} > class horizon::wsgi::apache ( >+ $manage_service = true, >+ $enabled = true, > $bind_address = undef, > $fqdn = $::fqdn, > $servername = $::fqdn, >@@ -52,7 +54,20 @@ class horizon::wsgi::apache ( > ) { > > include ::horizon::params >- include ::apache >+ >+ if $manage_service { >+ if $enabled { >+ $service_ensure = 'running' >+ } else { >+ $service_ensure = 'stopped' >+ } >+ } >+ >+ class { '::apache': >+ default_vhost => false, >+ service_enable => $enabled, >+ service_ensure => $service_ensure, >+ } > > if $::osfamily == 'RedHat' { > class { 'apache::mod::wsgi': >diff --git a/spec/classes/horizon_init_spec.rb b/spec/classes/horizon_init_spec.rb >index 759c073..c5d0984 100644 >--- a/spec/classes/horizon_init_spec.rb >+++ b/spec/classes/horizon_init_spec.rb >@@ -7,10 +7,6 @@ describe 'horizon' do > 'fqdn' => '*' } > end > >- let :pre_condition do >- 'include apache' >- end >- > let :fixtures_path do > File.expand_path(File.join(__FILE__, '..', '..', 'fixtures')) > end >diff --git a/spec/classes/horizon_wsgi_apache_spec.rb b/spec/classes/horizon_wsgi_apache_spec.rb >index c9c339e..9330447 100644 >--- a/spec/classes/horizon_wsgi_apache_spec.rb >+++ b/spec/classes/horizon_wsgi_apache_spec.rb >@@ -11,7 +11,6 @@ describe 'horizon::wsgi::apache' do > end > > let :pre_condition do >- "include apache\n" + > "class { 'horizon': secret_key => 's3cr3t', configure_apache => false }" > end > >-- >1.9.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1129408
:
931660
|
931662