File ardana-opsconsole-8.0+git.1534267103.829be13.obscpio of Package ardana-opsconsole
07070100000000000081A40000000000000000000000015B730EDF00000086000000000000000000000000000000000000003800000000ardana-opsconsole-8.0+git.1534267103.829be13/.gitreview[gerrit]
host=gerrit.suse.provo.cloud
port=29418
project=ardana/opsconsole-ansible.git
defaultremote=ardana
defaultbranch=stable/pike
07070100000001000081A40000000000000000000000015B730EDF0000279F000000000000000000000000000000000000003500000000ardana-opsconsole-8.0+git.1534267103.829be13/LICENSE
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
07070100000002000081A40000000000000000000000015B730EDF0000014B000000000000000000000000000000000000003700000000ardana-opsconsole-8.0+git.1534267103.829be13/README.mdREADME
======
This repo contains the following roles:
The verbs:
The operations:
- deploy - deploy ops console roles
- status - status of ops console components
- start - start ops console
- stop - stop ops console
- reconfigure - reconfigure ops console
- upgrade - upgrade ops console
07070100000003000081A40000000000000000000000015B730EDF000002E1000000000000000000000000000000000000004F00000000ardana-opsconsole-8.0+git.1534267103.829be13/_ops-console-schedule-restart.yml#
# (c) Copyright 2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
# Schedule a restart of ops-console services using ardana_notify_... variables
- hosts: all
tasks:
- include: roles/OPS-WEB/tasks/_schedule_restart.yml07070100000004000081A40000000000000000000000015B730EDF00000508000000000000000000000000000000000000004400000000ardana-opsconsole-8.0+git.1534267103.829be13/ops-console-deploy.yml#
# (c) Copyright 2015-2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
- hosts: OPS-WEB
become: yes
roles:
- OPS-WEB
tasks:
- include: roles/OPS-WEB/tasks/install.yml
- include: roles/OPS-WEB/tasks/configure.yml
- hosts: OPS-WEB
become: yes
roles:
- OPS-WEB
tasks:
- include: roles/OPS-WEB/tasks/_post-configure.yml
- hosts: OPS-WEB
become: yes
roles:
- OPS-WEB
tasks:
- include: roles/OPS-WEB/tasks/start.yml
# We use the standard ansible ampersand operator to select the
# intersection of OPS-WEB hosts and MON-AGN hosts.
- hosts: OPS-WEB:&MON-AGN
become: yes
roles:
- OPS-WEB
tasks:
- include: roles/OPS-WEB/tasks/configure-monitoring.yml
07070100000005000081A40000000000000000000000015B730EDF000002AB000000000000000000000000000000000000005C00000000ardana-opsconsole-8.0+git.1534267103.829be13/ops-console-reconfigure-credentials-change.yml#
# (c) Copyright 2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
- include: ops-console-reconfigure.yml
07070100000006000081A40000000000000000000000015B730EDF000003EE000000000000000000000000000000000000004900000000ardana-opsconsole-8.0+git.1534267103.829be13/ops-console-reconfigure.yml#
# (c) Copyright 2015-2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
- hosts: OPS-WEB
become: yes
roles:
- OPS-WEB
tasks:
- include: roles/OPS-WEB/tasks/configure.yml
- hosts: OPS-WEB
become: yes
roles:
- OPS-WEB
tasks:
- include: roles/OPS-WEB/tasks/_post-configure.yml
- hosts: OPS-WEB
become: yes
roles:
- OPS-WEB
tasks:
- include: roles/OPS-WEB/tasks/start.yml
serial: 1
07070100000007000081A40000000000000000000000015B730EDF00000293000000000000000000000000000000000000004500000000ardana-opsconsole-8.0+git.1534267103.829be13/ops-console-restart.yml#
# (c) Copyright 2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
- include: _ops-console-schedule-restart.yml
- include: ops-console-start.yml
07070100000008000081A40000000000000000000000015B730EDF000002F4000000000000000000000000000000000000004300000000ardana-opsconsole-8.0+git.1534267103.829be13/ops-console-start.yml#
# (c) Copyright 2015 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
- hosts: OPS-WEB
become: yes
roles:
- OPS-WEB
tasks:
- include: roles/OPS-WEB/tasks/start.yml
07070100000009000081A40000000000000000000000015B730EDF0000030F000000000000000000000000000000000000004400000000ardana-opsconsole-8.0+git.1534267103.829be13/ops-console-status.yml#
# (c) Copyright 2015 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
- hosts: OPS-WEB
max_fail_percentage: 0
become: yes
roles:
- OPS-WEB
tasks:
- include: roles/OPS-WEB/tasks/status.yml
0707010000000A000081A40000000000000000000000015B730EDF000002F3000000000000000000000000000000000000004200000000ardana-opsconsole-8.0+git.1534267103.829be13/ops-console-stop.yml#
# (c) Copyright 2015 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
- hosts: OPS-WEB
become: yes
roles:
- OPS-WEB
tasks:
- include: roles/OPS-WEB/tasks/stop.yml
0707010000000B000081A40000000000000000000000015B730EDF000003F8000000000000000000000000000000000000004500000000ardana-opsconsole-8.0+git.1534267103.829be13/ops-console-upgrade.yml#
# (c) Copyright 2015-2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
# Status will fail run if services are not in a good state
- include: ops-console-status.yml
# Run installation task
- hosts: OPS-WEB
become: yes
roles:
- OPS-WEB
tasks:
- include: roles/OPS-WEB/tasks/install.yml
# Configure and start services
- include: ops-console-reconfigure.yml
# Post upgrade status check
- include: ops-console-status.yml
0707010000000C000041ED0000000000000000000000035B730EDF00000000000000000000000000000000000000000000003300000000ardana-opsconsole-8.0+git.1534267103.829be13/roles0707010000000D000041ED0000000000000000000000075B730EDF00000000000000000000000000000000000000000000003B00000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB0707010000000E000041ED0000000000000000000000025B730EDF00000000000000000000000000000000000000000000004400000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/defaults0707010000000F000081A40000000000000000000000015B730EDF00001060000000000000000000000000000000000000004D00000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/defaults/main.yml#
# (c) Copyright 2015-2017 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
# Ops Console Web Configuration
# Configuration file/directory
ops_console_config_dir: /etc/opsconsole-server
ops_console_config: "{{ ops_console_config_dir }}/config.py"
# Log files
ops_console_log_dir: /var/log/ops-console
ops_console_error_log: "{{ ops_console_log_dir }}/error.log"
ops_console_access_log: "{{ ops_console_log_dir }}/access.log"
# Log level
ops_console_loglevel: "{{ ardana_loglevel | default('INFO') }}"
# OS Account
ops_console_os_user: opscon
ops_console_os_group: opscon
ops_console_centralized_log_group: adm
# Keystone configuration
keystone_service_tenant: "{{ KEY_API.vars.keystone_service_tenant }}"
keystone_private_url: "{{ KEY_API.advertises.vips.private[0].url }}"
# urls
opsconsole_url_path: "/api/v1/"
# Virtual environment
ops_console_venv: "{{ 'ops-console-web' | venv_dir }}"
ops_console_site_packages: "{{ ops_console_venv }}/lib/python2.7/site-packages"
# Opscon UI config
kibana_vip_url: "{% if LOG_SVR is defined -%}
{{ LOG_SVR.advertises.vips.admin[0].url }}
{%- endif %}"
# Points to Horizon UI
tenant_console_vip_url: "{% if HZN_WEB is defined -%}
{{ HZN_WEB.advertises.vips.private[0].url }}
{%- endif %}"
# Database configuration
ops_console_schema_path: "{%- if deployer_media_legacy_layout|bool -%}
{{ ops_console_site_packages }}/bll/schema.sql
{%- else -%}
/usr/share/ardana-opsconsole-server/schema.sql
{%- endif -%}"
ca_file: "{{ trusted_ca_bundle }}"
mysql:
host: >
{{ OPS_WEB | item('consumes_FND_MDB.vips.private[0].host',
default=( OPS_WEB | item('consumes_FND_MDB.vips.public[0].host') )) }}
port: 3306
ops_user: "{% if OPS_WEB.consumes_FND_MDB.vars.accounts.operations.username is defined -%}
{{ OPS_WEB.consumes_FND_MDB.vars.accounts.operations.username }}
{%- else -%}
{{ OPS_WEB.consumes_FND_MDB.vars.mysql_user }}
{%- endif %}"
ops_password: "{% if OPS_WEB.consumes_FND_MDB.vars.accounts.operations.password is defined -%}
{{ OPS_WEB.consumes_FND_MDB.vars.accounts.operations.password }}
{%- else -%}
{{ OPS_WEB.consumes_FND_MDB.vars.mysql_password }}
{%- endif %}"
ops_db: "{{ OPS_WEB.consumes_FND_MDB.vars.databases.operations.dbname }}"
use_ssl: "{{ OPS_WEB.consumes_FND_MDB.vips.private[0].use_tls }}"
# detect and set install env
opsconsole_install_env: stdcfg
install_env_version: stdcfg
is_foundation_installed_env: false
# Static Web Server Configuration
ops_console_site_name: ops-console
ops_console_ui_host: "{{ host.bind.OPS_WEB.internal.ip_address }}"
ops_console_ui_port: "{{ host.bind.OPS_WEB.internal.port }}"
ops_console_web_root: '{% if deployer_media_legacy_layout|bool -%}
/var/www/{{ ops_console_site_name }}
{%- else -%}
/usr/share/ardana-opsconsole-ui
{%- endif -%}'
ops_console_wsgi_dir: '{% if deployer_media_legacy_layout|bool -%}
/var/www/{{ ops_console_site_name }}/api
{%- else -%}
/srv/www/{{ ops_console_site_name }}/api
{%- endif -%}'
ops_console_wsgi: "{{ ops_console_wsgi_dir }}/app.wsgi"
ops_console_private_url: "{{ OPS_WEB.advertises.vips.private[0].url }}"
07070100000010000041ED0000000000000000000000025B730EDF00000000000000000000000000000000000000000000004000000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/meta07070100000011000081A40000000000000000000000015B730EDF000002E9000000000000000000000000000000000000004900000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/meta/main.yml#
# (c) Copyright 2015-2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
dependencies:
- {role: monasca-agent, run_mode: Use}
- role: FND-AP2
- role: tls-vars
07070100000012000041ED0000000000000000000000025B730EDF00000000000000000000000000000000000000000000004100000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/tasks07070100000013000081A40000000000000000000000015B730EDF00000417000000000000000000000000000000000000005500000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/tasks/_post-configure.yml#
# (c) Copyright 2015-2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
- name: OPS-WEB | post-configure | Create Ops Console database tables
run_once: yes
no_log: True
command: >
mysql
--host={{ mysql.host }}
--port={{ mysql.port }}
--database={{ mysql.ops_db }}
--user={{ mysql.ops_user }}
{% if mysql.ops_password is defined %}
--password={{ mysql.ops_password }}
{% endif %}
-e "source {{ ops_console_schema_path }}"
07070100000014000081A40000000000000000000000015B730EDF0000031A000000000000000000000000000000000000005700000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/tasks/_schedule_restart.yml#
# (c) Copyright 2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
- name: OPS-WEB | _schedule_restart | Schedule a restart for all services
debug:
msg: "Trigger a change notification in ops-console"
changed_when: true
register: ardana_notify_opsweb_apache_config_changed07070100000015000081A40000000000000000000000015B730EDF00000697000000000000000000000000000000000000005A00000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/tasks/configure-monitoring.yml#
# (c) Copyright 2015-2017 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
- name: OPS-WEB | configure-monitoring | set fact for apache url
set_fact: ops_apache_monitor_url="http://{{ host.bind.OPS_WEB.internal.ip_address }}:{{ host.bind.OPS_WEB.internal.port }}/server-status?auto"
- name: OPS-WEB | configure-monitoring | Monasca - Apache check
monasca_agent_plugin:
name: "apache"
args: >
url={{ ops_apache_monitor_url }}
- name: OPS-WEB | configure-monitoring | Setup Active check against OpsConsole internal VIP
monasca_agent_plugin:
name: "httpcheck"
args: >
url={{ops_console_private_url}}/version.json
match_pattern=.*commit_date.*
dimensions=service:ops-console,component:ops-console-web,monitored_host_type:vip,api_endpoint:private
- name: OPS-WEB | configure-monitoring | Setup Active check against OpsConsole host
monasca_agent_plugin:
name: "httpcheck"
args: >
url=http://{{ ops_console_ui_host }}:{{ ops_console_ui_port }}/version.json
match_pattern=.*commit_date.*
dimensions=service:ops-console,component:ops-console-web
07070100000016000081A40000000000000000000000015B730EDF0000073C000000000000000000000000000000000000004F00000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/tasks/configure.yml#
# (c) Copyright 2015-2017 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
# Configuration
- name: OPS-WEB | configure | Create Configuration Directory
file:
path: "{{ ops_console_config_dir }}"
owner: root
group: root
mode: 0775
state: directory
- name: OPS-WEB | configure | Establish Configuration File
template:
dest: "{{ ops_console_config }}"
src: ops-console.conf.j2
owner: "{{ ops_console_os_user }}"
group: "{{ ops_console_os_group }}"
mode: 0400
register: ardana_notify_opsweb_reload_required_handler
- name: OPS-WEB | configure | configure Ops Console Virtual Host
template:
dest: "{{ apache2_vhost_dir }}/{{ ops_console_site_name }}.vhost"
src: ops-console-apache.conf
owner: root
group: root
mode: 0664
register: ardana_notify_opsweb_apache_config_changed
- name: OPS-WEB | configure | Establish JS config
template:
dest: "{{ ops_console_web_root }}/opscon_config.json"
src: config.json
owner: root
group: root
mode: 0664
register: ardana_notify_opsweb_reload_required
- name: OPS-WEB | configure | Establish WSGI config
template:
dest: "{{ ops_console_wsgi }}"
src: app.wsgi
owner: root
group: root
mode: 0775
register: ardana_notify_opsweb_reload_required
07070100000017000081A40000000000000000000000015B730EDF0000092E000000000000000000000000000000000000005B00000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/tasks/install-server-legacy.yml#
# (c) Copyright 2015-2017 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
# Tasks
- name: OPS-WEB | install | Update venv cache
become: yes
install_package:
cache: update
- name: OPS-WEB | install | install the Ops Console service
install_package:
name: opsconsole-server
service: ops-console-web
state: present
register: ardana_notify_opsweb_reload_required
- name: OPS-WEB | install | Install Transient Web Artifact Project
install_package:
name: ops_console_content
service: ops-console-content
state: present
register: ardana_notify_opsweb_reload_required
- name: OPS-WEB | install | Find archive name
shell: ls {{ 'ops-console-content' | jar_dir }}
register: archive_list
- name: OPS-WEB | install | Extract Ops Console UI Web Files
unarchive:
dest: /var/www
src: "{{ 'ops-console-content' | jar_dir }}/{{ item }}"
copy: no
owner: root
group: root
mode: 0775
with_items: (archive_list.stdout).splitlines()
- name: OPS-WEB | install | Remove Transient Web Artifact Project
install_package:
name: ops_console_content
service: ops-console-content
state: absent
register: ardana_notify_opsweb_reload_required
- name: OPS-WEB | install | Clear old web directory
file:
path: "{{ ops_console_web_root }}"
state: absent
- name: OPS-WEB | install | Rename Web Directory
command: mv /var/www/dist.stdcfg "{{ ops_console_web_root }}"
- name: OPS-WEB | install | Establish Web directory
file:
path: "{{ ops_console_web_root }}"
owner: root
group: root
mode: 0775
state: directory
- name: OPS-WEB | install | Create WSGI directory
file:
path: "{{ ops_console_wsgi_dir }}"
owner: root
group: root
mode: 0775
state: directory
07070100000018000081A40000000000000000000000015B730EDF00000750000000000000000000000000000000000000005700000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/tasks/install-ui-legacy.yml#
# (c) Copyright 2015-2017 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
- name: OPS-WEB | install | Install Transient Web Artifact Project
install_package:
name: ops_console_content
service: ops-console-content
state: present
register: ardana_notify_opsweb_reload_required
- name: OPS-WEB | install | Find archive name
shell: ls {{ 'ops-console-content' | jar_dir }}
register: archive_list
- name: OPS-WEB | install | Extract Ops Console UI Web Files
unarchive:
dest: /var/www
src: "{{ 'ops-console-content' | jar_dir }}/{{ item }}"
copy: no
owner: root
group: root
mode: 0775
with_items: (archive_list.stdout).splitlines()
- name: OPS-WEB | install | Remove Transient Web Artifact Project
install_package:
name: ops_console_content
service: ops-console-content
state: absent
register: ardana_notify_opsweb_reload_required
- name: OPS-WEB | install | Clear old web directory
file:
path: "{{ ops_console_web_root }}"
state: absent
- name: OPS-WEB | install | Rename Web Directory
command: mv /var/www/dist.stdcfg "{{ ops_console_web_root }}"
- name: OPS-WEB | install | Establish Web directory
file:
path: "{{ ops_console_web_root }}"
owner: root
group: root
mode: 0775
state: directory
07070100000019000081A40000000000000000000000015B730EDF00000B87000000000000000000000000000000000000004D00000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/tasks/install.yml#
# (c) Copyright 2015-2017 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
# Tasks
# install wsgi Apache module
- name: OPS-WEB | install | Install dependencies
become: yes
package:
state: present
name: "{{ item }}"
with_items: ops_console_packages
- name: Enable wsgi module in apache
command: a2enmod wsgi
register: ops_console_mod_enable_result
changed_when: '"already enabled" not in ops_console_mod_enable_result.stdout'
- name: OPS-WEB | install | Create BLL Group
group:
name: "{{ ops_console_os_group }}"
state: present
- name: OPS-WEB | install | Create BLL User
user:
name: "{{ ops_console_os_user }}"
group: "{{ ops_console_os_group }}"
createhome: yes
shell: /usr/sbin/nologin
state: present
ignore_errors: yes
- name: OPS-WEB | install | Create logging directory
file:
path: "{{ ops_console_log_dir }}"
owner: "{{ ops_console_os_user }}"
group: "{{ ops_console_os_group }}"
mode: 0775
state: directory
- name: OPS-WEB | install | Create Virtual Host Error Logging File
file:
path: "{{ ops_console_error_log }}"
owner: "{{ ops_console_os_user }}"
group: "{{ ops_console_centralized_log_group }}"
mode: 0640
state: touch
- name: OPS-WEB | install | Create Virtual Host Access Log File
file:
path: "{{ ops_console_access_log }}"
owner: "{{ ops_console_os_user }}"
group: "{{ ops_console_centralized_log_group }}"
mode: 0640
state: touch
- name: OPS-WEB | install | install the Ops Console service (legacy)
include: install-server-legacy.yml
when: deployer_media_legacy_layout|bool
# install mysql-client
- name: OPS-WEB | install | Install dependencies (mysql-client)
become: yes
include: "{{ playbook_dir }}/roles/FND-MDB/tasks/install_client.yml"
- name: OPS-WEB | install | install the Ops Console UI (legacy)
include: install-ui-legacy.yml
when: deployer_media_legacy_layout|bool
- name: OPS-WEB | install | install the Ops Console service and UI (rpm)
become: yes
package:
state: present
name: "{{ item }}"
with_items:
- python-ardana-opsconsole-server
- ardana-opsconsole-ui
when: deployer_media_legacy_layout|bool == false
- name: OPS-WEB | install | Create WSGI directory
file:
path: "{{ ops_console_wsgi_dir }}"
owner: root
group: root
mode: 0775
state: directory
0707010000001A000081A40000000000000000000000015B730EDF000002EC000000000000000000000000000000000000004A00000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/tasks/main.yml#
# (c) Copyright 2017 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
- name: OPS-WEB | main | Set os-specific variables
include_vars: "{{ ansible_os_family | lower }}.yml"
0707010000001B000081A40000000000000000000000015B730EDF00000598000000000000000000000000000000000000004B00000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/tasks/start.yml#
# (c) Copyright 2015-2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
# Start
- name: OPS-WEB | Start | Enable Ops Console virtual host
file:
src: "{{ apache2_vhost_dir }}/{{ ops_console_site_name }}.vhost"
dest: "{{ apache2_vhost_dir }}/{{ ops_console_site_name }}.conf"
state: link
register: ops_console_enable_result
- include: "{{ playbook_dir }}/roles/FND-AP2/tasks/start_reload.yml"
vars:
apache_reload_requested: "{{ (ardana_notify_opsweb_reload_required is defined and ardana_notify_opsweb_reload_required.changed) or ops_console_enable_result.changed }}"
apache_restart_requested: "{{ (ops_console_mod_enable_result.changed) or
(ardana_notify_opsweb_apache_config_changed is defined and
ardana_notify_opsweb_apache_config_changed.changed) }}"
0707010000001C000081A40000000000000000000000015B730EDF000003CE000000000000000000000000000000000000004C00000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/tasks/status.yml#
# (c) Copyright 2015 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
- name: OPS-WEB | Status | Get vhost status
uri:
url: "{{ops_console_private_url}}"
return_content: true
register: ops_web_content
- name: OPS-WEB | Status | Verify status result
fail:
msg: |
{{ ops_console_private_url }} did not respond correctly.
when: ops_web_content.content.find('Operations') == -1
0707010000001D000081A40000000000000000000000015B730EDF000003AB000000000000000000000000000000000000004A00000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/tasks/stop.yml#
# (c) Copyright 2015 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
# Stop
- name: OPS-WEB | Stop | Disable Ops Console virtual host
file:
state: absent
path: "{{ apache2_vhost_dir }}/{{ ops_console_site_name }}.conf"
- name: OPS-WEB | Stop | Reload apache after disabling Ops Console virtual host
service:
name: apache2
state: reloaded
0707010000001E000041ED0000000000000000000000025B730EDF00000000000000000000000000000000000000000000004500000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/templates0707010000001F000081A40000000000000000000000015B730EDF000003B4000000000000000000000000000000000000004E00000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/templates/app.wsgi{#
#
# (c) Copyright 2015-2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
#}
# This file is used to integrate our pecan application into an apache web
# server with mod-wsgi.
#
# For more information, refer to:
# http://pecan.readthedocs.org/en/latest/deployment.html#common-recipes
import os
from pecan.deploy import deploy
application = deploy('{{ ops_console_config }}')
07070100000020000081A40000000000000000000000015B730EDF000004D1000000000000000000000000000000000000005100000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/templates/config.json{#
#
# (c) Copyright 2015-2017 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
#}
{
"bll_url": "{{ opsconsole_url_path }}",
"integerated_logging_url": "{{ kibana_vip_url }}",
"tenant_console_url": "{{ tenant_console_vip_url }}",
"integerated_audit_url": "#/dashboard/file/audit",
"activity_feed_url": "#/dashboard/file/activity",
"default_route": "/general/dashboard_alarms_summary",
"debug_mode": "false",
"console_logging": ["warn", "error", "log", "info", "debug"],
"install_version": "{{ install_env_version }}",
"env": "{{ opsconsole_install_env }}",
"is_foundation_installed": "{{ is_foundation_installed_env }}"
}
07070100000021000081A40000000000000000000000015B730EDF000007CF000000000000000000000000000000000000005D00000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/templates/ops-console-apache.conf{#
#
# (c) Copyright 2015-2017 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
#}
Listen {{ ops_console_ui_host }}:{{ ops_console_ui_port }}
<VirtualHost *:{{ ops_console_ui_port }}>
DocumentRoot {{ ops_console_web_root }}
<Directory {{ ops_console_web_root }}>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
Require all granted
</Directory>
ErrorLog {{ ops_console_error_log }}
LogLevel info
CustomLog {{ ops_console_access_log }} combined
{% if deployer_media_legacy_layout|bool -%}
{% set python_path=' python-path=' + ops_console_site_packages + '/' -%}
{% else -%}
{% set python_path='' -%}
{% endif -%}
WSGIDaemonProcess opsconsole umask=0077 user={{ ops_console_os_user }} group={{ ops_console_os_group }} processes=1 threads=10{{ python_path }}
WSGIScriptAlias /api/ {{ ops_console_wsgi }}/
ErrorDocument 400 "Error 400 Bad Request. Please ensure that your are communicating via HTTPS with a valid request to this server."
<Directory {{ ops_console_wsgi_dir }}>
Options FollowSymLinks
WSGIProcessGroup opsconsole
Order allow,deny
Allow from all
Require all granted
</Directory>
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from {{ ops_console_ui_host }}
</Location>
</VirtualHost>
07070100000022000081A40000000000000000000000015B730EDF00000CB6000000000000000000000000000000000000005900000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/templates/ops-console.conf.j2{#
#
# (c) Copyright 2015-2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017-2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
#}
from bll.hooks import RestHook
import os
http_proxy = ''
https_proxy = http_proxy
no_proxy = 'localhost,127.0.0.1'
env = '{{ opsconsole_install_env }}'
# Pecan Application Configurations
app = {
'root': 'bll.api.controllers.root.RootController',
'modules': ['bll'],
'hooks': [RestHook()],
# DebugMiddleware middleware is not usable in a multi-process environment
'debug': False,
}
logging = {
'root': {'level': '{{ ops_console_loglevel }}', 'handlers': ['file']},
'loggers': {
'bll': {'level': '{{ ops_console_loglevel }}', 'handlers': ['filewithtxn'], 'propagate': False},
'py.warnings': {'handlers': ['file']},
'__force_dict__': True
},
'handlers': {
'file': {
'level': '{{ ops_console_loglevel }}',
'class': 'logging.handlers.RotatingFileHandler',
'filename': '{{ ops_console_error_log }}',
'maxBytes': 1048576,
'backupCount': 5,
'formatter': 'simple',
},
'filewithtxn': {
'level': '{{ ops_console_loglevel }}',
'class': 'logging.handlers.RotatingFileHandler',
'filename': '{{ ops_console_error_log }}',
'maxBytes': 1048576,
'backupCount': 5,
'formatter': 'simpletxn',
},
},
'formatters': {
'simple': {
'format': ('%(asctime)s %(levelname)-5.5s [%(name)-30.30s]'
'[%(threadName)-19.19s] %(message).512s')
},
'simpletxn': {
'format': ('%(asctime)s %(levelname)-5.5s [%(name)-30.30s]'
'[%(threadName)-19.19s] [%(txn_id)-8.8s] %(message).512s')
},
}
}
keystone = {
'private_url': '{{ keystone_private_url }}',
'cacert': '{{ ca_file }}',
'service_tenant': '{{ keystone_service_tenant }}',
}
db = {
'host': '{{ mysql.host }}',
'port': {{ mysql.port }},
'database': '{{ mysql.ops_db }}',
'user': '{{ mysql.ops_user }}',
'password': '{{ mysql.ops_password }}',
{% if mysql.use_ssl | bool %}
'ssl': {'ca': '{{ ca_file}}' },
{% endif %}
}
# TODO: change to_nice_json to to_nice_json(indent=4) when we use a version of
# ansible that supports it.
services = {
'__force_dict__': True,
'nova': {{ service_topology.services.nova |
default({}) | to_nice_json}},
'swift': {{ service_topology.services.swift |
default({}) | to_nice_json}},
'monasca': {{ service_topology.services.monasca |
default({}) | to_nice_json}}
}
07070100000023000041ED0000000000000000000000025B730EDF00000000000000000000000000000000000000000000004000000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/vars07070100000024000081A40000000000000000000000015B730EDF00000327000000000000000000000000000000000000004B00000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/vars/debian.yml#
# (c) Copyright 2017 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
# python-httplib2 is an ansible dependency for the module uri sed in start.yml
ops_console_packages:
- libapache2-mod-wsgi
- python-httplib2
- python-mysqldb
07070100000025000081A40000000000000000000000015B730EDF00000322000000000000000000000000000000000000004900000000ardana-opsconsole-8.0+git.1534267103.829be13/roles/OPS-WEB/vars/suse.yml#
# (c) Copyright 2017 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---
# python-httplib2 is an ansible dependency for the module uri sed in start.yml
ops_console_packages:
- apache2-mod_wsgi
- python-httplib2
- python-mysql
07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000B00000000TRAILER!!!110 blocks