summaryrefslogtreecommitdiffstats
path: root/cyborg_enhancement/mitaka_version/cyborg/etc
diff options
context:
space:
mode:
authorbobzhou <zhoubo8@lenovo.com>2018-12-17 17:41:39 +0800
committerbobzhou <zhoubo8@lenovo.com>2018-12-17 17:41:39 +0800
commit31560e9a26e6a7e2e65d18924c938ee7a7683fb3 (patch)
tree26ec12331a2ec612a0f51c7866fbe41262ca0fe1 /cyborg_enhancement/mitaka_version/cyborg/etc
parentfc1b7908a77b5cce763f92b3d314057345f3ab7a (diff)
upload cyborg base mitaka version
Change-Id: Iff52024026c9eff899246be70cc89fe6e65befff Signed-off-by: bobzhou <zhoubo8@lenovo.com>
Diffstat (limited to 'cyborg_enhancement/mitaka_version/cyborg/etc')
-rw-r--r--cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/README.cyborg.conf5
-rw-r--r--cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/README.policy.json.txt4
-rw-r--r--cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/cyborg.conf31
-rw-r--r--cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/policy.json11
-rw-r--r--cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/policy.json.bak4
5 files changed, 55 insertions, 0 deletions
diff --git a/cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/README.cyborg.conf b/cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/README.cyborg.conf
new file mode 100644
index 0000000..ddbfb92
--- /dev/null
+++ b/cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/README.cyborg.conf
@@ -0,0 +1,5 @@
+To generate the sample cyborg.conf file, run the following
+command from the top level of the cyborg directory:
+
+tox -egenconfig
+
diff --git a/cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/README.policy.json.txt b/cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/README.policy.json.txt
new file mode 100644
index 0000000..7028545
--- /dev/null
+++ b/cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/README.policy.json.txt
@@ -0,0 +1,4 @@
+To generate the sample policy.json file, run the following command from the top
+level of the cyborg directory:
+
+ tox -egenpolicy
diff --git a/cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/cyborg.conf b/cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/cyborg.conf
new file mode 100644
index 0000000..615242b
--- /dev/null
+++ b/cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/cyborg.conf
@@ -0,0 +1,31 @@
+[DEFAULT]
+transport_url = rabbit://guest:guest@192.168.0.2:5672/
+logging_exception_prefix = ERROR %(name)s ^[[01;35m%(instance)s^[[00m
+logging_default_format_string = %(color)s%(levelname)s %(name)s [^[[00;36m-%(color)s] ^[[01;35m%(instance)s%(color)s%(message)s^[[00m
+logging_context_format_string = %(color)s%(levelname)s %(name)s [^[[01;36m %(request_id)s ^[[00;36m%(project_name)s %(user_name)s%(color)s] ^[[01;35m%(instance)s%(color)s%(message)s^[[00m
+logging_debug_format_suffix = ^[[00;33m{{(pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d}}^[[00m
+debug = True
+log_dir=/var/log/cyborg
+
+periodic_interval = 10
+
+[database]
+connection = mysql+pymysql://cyborg:cyborg@192.168.0.2/cyborg?charset=utf8
+
+[keystone_authtoken]
+#memcached_servers = 10.3.4.1:11211
+#cafile = /opt/stack/data/ca-bundle.pem
+project_domain_name = Default
+project_name = services
+user_domain_name = Default
+password = cyborg
+username = cyborg
+auth_url = http://192.168.0.2:5000
+auth_type = password
+
+[api]
+api_workers = 2
+host_ip=192.168.0.2
+
+
+
diff --git a/cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/policy.json b/cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/policy.json
new file mode 100644
index 0000000..836300e
--- /dev/null
+++ b/cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/policy.json
@@ -0,0 +1,11 @@
+{
+ "context_is_admin": "role:admin",
+ "admin_or_owner": "is_admin:True or project_id:%(project_id)s",
+ "default": "rule:admin_or_owner",
+
+ "admin_api": "is_admin:True",
+ "cyborg:accelerator:get": "rule:admin_or_owner",
+ "cyborg:accelerator:create": "rule:admin_or_owner",
+ "cyborg:accelerator:delete": "rule:admin_or_owner",
+ "cyborg:accelerator:update": "rule:admin_or_owner"
+}
diff --git a/cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/policy.json.bak b/cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/policy.json.bak
new file mode 100644
index 0000000..5716f9e
--- /dev/null
+++ b/cyborg_enhancement/mitaka_version/cyborg/etc/cyborg/policy.json.bak
@@ -0,0 +1,4 @@
+# leave this file empty to use default policy defined in code.
+{
+
+}