aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xansible/roles/common/templates/rsyslog.conf.j26
-rw-r--r--ansible/roles/murano/tasks/start.yml8
-rw-r--r--ansible/roles/murano/templates/murano.conf.j23
3 files changed, 15 insertions, 2 deletions
diff --git a/ansible/roles/common/templates/rsyslog.conf.j2 b/ansible/roles/common/templates/rsyslog.conf.j2
index a789bff24..86d8298b9 100755
--- a/ansible/roles/common/templates/rsyslog.conf.j2
+++ b/ansible/roles/common/templates/rsyslog.conf.j2
@@ -126,6 +126,12 @@ $template SwiftObjectExpirerFile,"/var/log/swift/swift-object-expirer.log"
$template SwiftObjectUpdaterFile,"/var/log/swift/swift-object-updater.log"
:syslogtag,contains,"swift-object-updater" ?SwiftObjectUpdaterFile
+$template MuranoEngineFile,"/var/log/murano/murano-engine.log"
+:syslogtag,contains,"murano-engine" ?MuranoEngineFile
+
+$template MuranoApiFile,"/var/log/murano/murano-api.log"
+:syslogtag,contains,"murano-api" ?MuranoApiFile
+
$template DynFile,"/var/log/syslog.log"
*.* ?DynFile
& ~
diff --git a/ansible/roles/murano/tasks/start.yml b/ansible/roles/murano/tasks/start.yml
index 3ec223170..c9f73b11e 100644
--- a/ansible/roles/murano/tasks/start.yml
+++ b/ansible/roles/murano/tasks/start.yml
@@ -13,7 +13,9 @@
insecure_registry: "{{ docker_insecure_registry }}"
name: murano_engine
image: "{{ murano_engine_image_full }}"
- volumes: "{{ node_config_directory }}/murano-engine/:/opt/kolla/config_files/:ro"
+ volumes:
+ - "{{ node_config_directory }}/murano-engine/:/opt/kolla/config_files/:ro"
+ - "/var/lib/kolla/dev/log:/dev/log"
volumes_from:
env:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
@@ -33,7 +35,9 @@
insecure_registry: "{{ docker_insecure_registry }}"
name: murano_api
image: "{{ murano_api_image_full }}"
- volumes: "{{ node_config_directory }}/murano-api/:/opt/kolla/config_files/:ro"
+ volumes:
+ - "{{ node_config_directory }}/murano-api/:/opt/kolla/config_files/:ro"
+ - "/var/lib/kolla/dev/log:/dev/log"
env:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
when: inventory_hostname in groups['murano-api']
diff --git a/ansible/roles/murano/templates/murano.conf.j2 b/ansible/roles/murano/templates/murano.conf.j2
index 85b1fea64..db4192e37 100644
--- a/ansible/roles/murano/templates/murano.conf.j2
+++ b/ansible/roles/murano/templates/murano.conf.j2
@@ -7,6 +7,9 @@ rabbit_userid = {{ rabbitmq_user }}
rabbit_password = {{ rabbitmq_password }}
notification_driver = noop
+use_syslog = True
+syslog_log_facility = LOG_LOCAL0
+
{% if service_name == 'murano-api' %}
bind_host = {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}
bind_port = {{ murano_api_port }}