<commit_before>---
# Copyright 2015, Rackspace US, Inc.
# 
# 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.

#: Defines that the role will be deployed on a host machine
is_metal: true

debug: false
gnocchi_fatal_deprecations: false

#: Set this to false to disable API service through Apache + mod_wsgi
gnocchi_use_mod_wsgi: true

#: Set this to enable or disable installing in a venv
gnocchi_venv_enabled: true

#: Name of the virtual env to deploy into
gnocchi_venv_tag: untagged
gnocchi_venv_bin: "/openstack/venvs/gnocchi-{{ gnocchi_venv_tag }}/bin"
gnocchi_venv_pkgs: "/openstack/venvs/gnocchi-{{ gnocchi_venv_tag }}/lib/python2.7/site-packages"

#: The bin path defaults to the venv path however if installation in a
#  venv is disabled the bin path will be dynamically set based on the
#  system path used when the installing.
gnocchi_bin: "{{ gnocchi_venv_bin }}"

#: Set the etc dir path where gnocchi is installed.
#  This is used for role access to the db migrations.
#  Example:
#  gnocchi_etc_dir: "/usr/local/etc/gnocchi"
gnocchi_venv_etc_dir: "{{ gnocchi_bin | dirname }}/etc/gnocchi"
gnocchi_non_venv_etc_dir: "/usr/local/etc/gnocchi"
gnocchi_etc_dir: "{{ (gnocchi_venv_enabled | bool) | ternary(gnocchi_venv_etc_dir, gnocchi_non_venv_etc_dir) }}"

#: Location to retrieve the pre-built virtuelenv for gnocchi (optional)
gnocchi_venv_download_url: http://127.0.0.1/venvs/untagged/ubuntu/gnocchi.tgz

#: Index DB info
gnocchi_galera_database: gnocchi
gnocchi_galera_user: gnocchi
gnocchi_galera_address: "{{ galera_address }}"
gnocchi_db_sync_options: "--create-legacy-resource-types"

#: Storage info
gnocchi_storage_driver: swift
gnocchi_coordination_url: "file://var/lib/gnocchi/locks"

#: Default Archive Policies
gnocchi_archive_policies:
  - name: "low"
    definition:
      - { granularity: "5m", points: 12 }
      - { granularity: "1h", points: 24 }
      - { granularity: "1d", points: 30 }
  - name: "medium"
    definition:
      - { granularity: "60s", points: 60 }
      - { granularity: "1h", points: 168 }
      - { granularity: "1d", points: 365 }
  - name: "high"
    definition:
      - { granularity: "1s", points: 86400 }
      - { granularity: "1m", points: 43200 }
      - { granularity: "1h", points: 8760 }

gnocchi_archive_policy_rules:
  - { name: "default", archive_policy_name: "low", metric_pattern: "*" }

#: System info
gnocchi_system_user_name: gnocchi<commit_msg>Neutralize the db sync options for now, premature<commit_after>---
# Copyright 2015, Rackspace US, Inc.
# 
# 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.

#: Defines that the role will be deployed on a host machine
is_metal: true

debug: false
gnocchi_fatal_deprecations: false

#: Set this to false to disable API service through Apache + mod_wsgi
gnocchi_use_mod_wsgi: true

#: Set this to enable or disable installing in a venv
gnocchi_venv_enabled: true

#: Name of the virtual env to deploy into
gnocchi_venv_tag: untagged
gnocchi_venv_bin: "/openstack/venvs/gnocchi-{{ gnocchi_venv_tag }}/bin"
gnocchi_venv_pkgs: "/openstack/venvs/gnocchi-{{ gnocchi_venv_tag }}/lib/python2.7/site-packages"

#: The bin path defaults to the venv path however if installation in a
#  venv is disabled the bin path will be dynamically set based on the
#  system path used when the installing.
gnocchi_bin: "{{ gnocchi_venv_bin }}"

#: Set the etc dir path where gnocchi is installed.
#  This is used for role access to the db migrations.
#  Example:
#  gnocchi_etc_dir: "/usr/local/etc/gnocchi"
gnocchi_venv_etc_dir: "{{ gnocchi_bin | dirname }}/etc/gnocchi"
gnocchi_non_venv_etc_dir: "/usr/local/etc/gnocchi"
gnocchi_etc_dir: "{{ (gnocchi_venv_enabled | bool) | ternary(gnocchi_venv_etc_dir, gnocchi_non_venv_etc_dir) }}"

#: Location to retrieve the pre-built virtuelenv for gnocchi (optional)
gnocchi_venv_download_url: http://127.0.0.1/venvs/untagged/ubuntu/gnocchi.tgz

#: Index DB info
gnocchi_galera_database: gnocchi
gnocchi_galera_user: gnocchi
gnocchi_galera_address: "{{ galera_address }}"
gnocchi_db_sync_options: "" 
# TODO(stevelle) switch to "--create-legacy-resource-types" when applicable

#: Storage info
gnocchi_storage_driver: swift
gnocchi_coordination_url: "file://var/lib/gnocchi/locks"

#: Default Archive Policies
gnocchi_archive_policies:
  - name: "low"
    definition:
      - { granularity: "5m", points: 12 }
      - { granularity: "1h", points: 24 }
      - { granularity: "1d", points: 30 }
  - name: "medium"
    definition:
      - { granularity: "60s", points: 60 }
      - { granularity: "1h", points: 168 }
      - { granularity: "1d", points: 365 }
  - name: "high"
    definition:
      - { granularity: "1s", points: 86400 }
      - { granularity: "1m", points: 43200 }
      - { granularity: "1h", points: 8760 }

gnocchi_archive_policy_rules:
  - { name: "default", archive_policy_name: "low", metric_pattern: "*" }

#: System info
gnocchi_system_user_name: gnocchi
{'fraction_non_alphanumeric': 0.10408543820986609, 'fraction_numerical': 0.0183081878284455, 'mean_word_length': 4.334538878842676, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5170410', 'n_tokens_mistral': 2135, 'n_tokens_neox': 2001, 'n_words': 607}