summaryrefslogtreecommitdiffstats
path: root/conductor/etc
diff options
context:
space:
mode:
authorrl001m <ruilu@research.att.com>2017-12-17 09:04:31 -0500
committerrl001m <ruilu@research.att.com>2017-12-17 09:05:11 -0500
commit710d958a29198b6633236c1b7cad12babfe46833 (patch)
tree5819d23e6a3b9d4e111b3debaf41ee7fe7731a78 /conductor/etc
parent22cff5d3b51d9aa2d4fd11f657264e41063add1c (diff)
Added all common modules in conductor directory
Added the common modules used by all the other components of Homing Optimizer. Change-Id: I6e8a991b54ef422da66b3174f27f6998731ec188 Issue-ID: OPTFRA-11 Signed-off-by: rl001m <ruilu@research.att.com>
Diffstat (limited to 'conductor/etc')
-rw-r--r--conductor/etc/conductor/api_paste.ini26
-rw-r--r--conductor/etc/conductor/conductor-config-generator.conf7
-rw-r--r--conductor/etc/conductor/log.conf49
-rw-r--r--conductor/etc/conductor/policy.json18
-rw-r--r--conductor/etc/conductor/rootwrap.conf27
-rw-r--r--conductor/etc/conductor/rootwrap.d/README.txt1
6 files changed, 128 insertions, 0 deletions
diff --git a/conductor/etc/conductor/api_paste.ini b/conductor/etc/conductor/api_paste.ini
new file mode 100644
index 0000000..9d6b32a
--- /dev/null
+++ b/conductor/etc/conductor/api_paste.ini
@@ -0,0 +1,26 @@
+# Conductor API WSGI Pipeline
+# Define the filters that make up the pipeline for processing WSGI requests
+# Note: This pipeline is PasteDeploy's term rather than Conductor's pipeline
+# used for processing samples
+
+# Remove authtoken from the pipeline if you don't want to use keystone authentication
+[pipeline:main]
+pipeline = cors http_proxy_to_wsgi api-server
+#pipeline = cors http_proxy_to_wsgi request_id authtoken api-server
+
+[app:api-server]
+paste.app_factory = conductor.api.app:app_factory
+
+#[filter:authtoken]
+#paste.filter_factory = keystonemiddleware.auth_token:filter_factory
+
+#[filter:request_id]
+#paste.filter_factory = oslo_middleware:RequestId.factory
+
+[filter:cors]
+paste.filter_factory = oslo_middleware.cors:filter_factory
+oslo_config_project = conductor
+
+[filter:http_proxy_to_wsgi]
+paste.filter_factory = oslo_middleware.http_proxy_to_wsgi:HTTPProxyToWSGI.factory
+oslo_config_project = conductor \ No newline at end of file
diff --git a/conductor/etc/conductor/conductor-config-generator.conf b/conductor/etc/conductor/conductor-config-generator.conf
new file mode 100644
index 0000000..fa694d2
--- /dev/null
+++ b/conductor/etc/conductor/conductor-config-generator.conf
@@ -0,0 +1,7 @@
+[DEFAULT]
+output_file = etc/conductor/conductor.conf.sample
+wrap_width = 79
+namespace = conductor
+namespace = oslo.log
+# namespace = oslo.messaging
+# namespace = oslo.middleware.cors \ No newline at end of file
diff --git a/conductor/etc/conductor/log.conf b/conductor/etc/conductor/log.conf
new file mode 100644
index 0000000..070da15
--- /dev/null
+++ b/conductor/etc/conductor/log.conf
@@ -0,0 +1,49 @@
+[loggers]
+keys=root
+
+[handlers]
+keys=trfhand,infohand,errhand,debughand,warninghand
+
+[logger_root]
+level=NOTSET
+handlers=trfhand,infohand,errhand,debughand,warninghand
+
+
+[handler_trfhand]
+class=FileHandler
+formatter=generic
+level=NOTSET
+args=('/home/larry/Desktop/log/application.log',)
+
+[handler_errhand]
+class=FileHandler
+level=ERROR
+formatter=generic
+args=('/home/larry/Desktop/log/error.log', )
+
+[handler_infohand]
+class=FileHandler
+level=INFO
+formatter=generic
+args=('/home/larry/Desktop/log/info.log',)
+
+[handler_debughand]
+class=FileHandler
+level=DEBUG
+formatter=generic
+args=('/home/larry/Desktop/log/debug.log',)
+
+[handler_warninghand]
+class=FileHandler
+level=WARNING
+formatter=generic
+args=('/home/larry/Desktop/log/warning.log',)
+
+
+[formatters]
+keys=generic
+
+[formatter_generic]
+class=logging.Formatter
+format=%(asctime)s %(levelname)s %(name)s: [-] %(message)s
+datefmt= \ No newline at end of file
diff --git a/conductor/etc/conductor/policy.json b/conductor/etc/conductor/policy.json
new file mode 100644
index 0000000..95e5e19
--- /dev/null
+++ b/conductor/etc/conductor/policy.json
@@ -0,0 +1,18 @@
+{
+ "context_is_admin": "role:admin",
+ "segregation": "rule:context_is_admin",
+
+ "homing:get_samples": "",
+ "homing:get_sample": "",
+ "homing:query_sample": "",
+ "homing:create_samples": "",
+
+ "homing:compute_statistics": "",
+ "homing:get_meters": "",
+
+ "homing:get_resource": "",
+ "homing:get_resources": "",
+
+ "homing:events:index": "",
+ "homing:events:show": ""
+} \ No newline at end of file
diff --git a/conductor/etc/conductor/rootwrap.conf b/conductor/etc/conductor/rootwrap.conf
new file mode 100644
index 0000000..75275ca
--- /dev/null
+++ b/conductor/etc/conductor/rootwrap.conf
@@ -0,0 +1,27 @@
+# Configuration for conductor-rootwrap
+# This file should be owned by (and only-writeable by) the root user
+
+[DEFAULT]
+# List of directories to load filter definitions from (separated by ',').
+# These directories MUST all be only writeable by root !
+filters_path=/etc/conductor/rootwrap.d,/usr/share/conductor/rootwrap
+
+# List of directories to search executables in, in case filters do not
+# explicitely specify a full path (separated by ',')
+# If not specified, defaults to system PATH environment variable.
+# These directories MUST all be only writeable by root !
+exec_dirs=/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/sbin,/usr/local/bin
+
+# Enable logging to syslog
+# Default value is False
+use_syslog=False
+
+# Which syslog facility to use.
+# Valid values include auth, authpriv, syslog, user0, user1...
+# Default value is 'syslog'
+syslog_log_facility=syslog
+
+# Which messages to log.
+# INFO means log all usage
+# ERROR means only log unsuccessful attempts
+syslog_log_level=ERROR \ No newline at end of file
diff --git a/conductor/etc/conductor/rootwrap.d/README.txt b/conductor/etc/conductor/rootwrap.d/README.txt
new file mode 100644
index 0000000..a3808e1
--- /dev/null
+++ b/conductor/etc/conductor/rootwrap.d/README.txt
@@ -0,0 +1 @@
+This space reserved for future rootwrap command filters. \ No newline at end of file