-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Templates for OpenStack Yoga version
- Loading branch information
Showing
13 changed files
with
124 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
unique template features/ceilometer/meters/nova/rpms/compute; | ||
|
||
'/software/packages' = { | ||
pkg_repl('openstack-ceilometer-compute'); | ||
pkg_repl('python3-ceilometerclient'); | ||
pkg_repl('python3-pecan'); | ||
pkg_repl('openstack-ceilometer-compute'); | ||
|
||
SELF; | ||
SELF; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
unique template features/octavia/gunicorn/config; | ||
|
||
|
||
# Include gunicorn base configuration | ||
include 'features/openstack/gunicorn/config'; | ||
|
||
|
||
# Define gunicorn configuration for Octavia | ||
include 'components/metaconfig/config'; | ||
prefix '/software/components/metaconfig/services/{/etc/sysconfig/gunicorn.octavia}'; | ||
'module' = 'tiny'; | ||
# panlint disable=LP006 | ||
bind '/software/components/metaconfig/services/{/etc/sysconfig/gunicorn.octavia}/contents' = openstack_gunicorn_sysconfig; | ||
|
||
'contents/GUNICORN_APP' = "\"'octavia.api.app:setup_app()'\""; | ||
'contents/GUNICORN_APP_CONFIG' = '/var/lib/octavia/gunicorn_app.py'; | ||
'contents/GUNICORN_APP_DIR' = '/etc/octavia'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
unique template features/openstack/gunicorn/config; | ||
|
||
# Add gunicorn RPM | ||
'/software/packages' = pkg_repl('python3-gunicorn'); | ||
|
||
# Load gunicorn sysconfig file schema | ||
include 'features/openstack/gunicorn/sysconfig_schema'; | ||
|
||
# Define gunicorn template service | ||
include 'features/openstack/gunicorn/gunicorn_service'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Add gunicorn service template to systemd configuration | ||
|
||
unique template features/openstack/gunicorn/gunicorn_service; | ||
|
||
variable GUNICORN_BIN ?= '/usr/bin/gunicorn'; | ||
variable GUNICORN_PID_FILE = '/var/run/gunicorn.%i.pid'; | ||
|
||
include 'components/systemd/config'; | ||
|
||
'/software/components/systemd/skip/service' = false; | ||
|
||
# This is a template unit file | ||
'/software/components/systemd/unit/{gunicorn@}/file/only' = true; | ||
'/software/components/systemd/unit/{gunicorn@}/file/replace' = true; | ||
'/software/components/systemd/unit/{gunicorn@}/startstop' = false; | ||
|
||
prefix '/software/components/systemd/unit/{gunicorn@}/file/config/unit'; | ||
'Description' = 'gunicorn service %I'; | ||
|
||
prefix '/software/components/systemd/unit/{gunicorn@}/file/config/install'; | ||
'WantedBy' = list('multi-user.target'); | ||
|
||
prefix '/software/components/systemd/unit/{gunicorn@}/file/config/service'; | ||
'EnvironmentFile' = list('/etc/sysconfig/gunicorn.%i'); | ||
# Use sh to run the command to avoid problems with quoting and allow correct parsing of GUNICORN_OPTIONS | ||
'ExecStart' = format( | ||
"/bin/sh -cv '%s --chdir ${GUNICORN_APP_DIR} --pid %s " + | ||
"--config ${GUNICORN_APP_CONFIG} ${GUNICORN_OPTIONS} ${GUNICORN_APP}'", | ||
GUNICORN_BIN, | ||
GUNICORN_PID_FILE | ||
); | ||
'PIDFile' = GUNICORN_PID_FILE; | ||
'Restart' = 'always'; | ||
'SyslogIdentifier' = 'gunicorn'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
unique template features/openstack/gunicorn/sysconfig_schema; | ||
|
||
type openstack_gunicorn_sysconfig = { | ||
'GUNICORN_APP' : string | ||
'GUNICORN_APP_CONFIG' : absolute_file_path with match(SELF, '.*\.py') | ||
'GUNICORN_APP_DIR' : absolute_file_path | ||
'GUNICORN_OPTIONS' ? string | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters