<commit_before>---
# Copyright 2016 IBM Corp.
#
# All Rights Reserved.
#
# 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: Configure Swift proxy is_metal value
  replace:
    dest: '/etc/openstack_deploy/env.d/swift.yml'
    regexp: 'SWIFT_PROXY_IS_METAL_VALUE'
    replace: "{{ 'swift-minimum-hardware' not in reference_architecture }}"

- name: HA Proxy config for Swift standalone with separate internal and external IPs
  copy:
    src: swift_haproxy_diff_floaters.yml
    dest: /etc/openstack_deploy/user_swift_haproxy.yml
  when:
    - "{{ 'swift' in reference_architecture }}"
    - "{{ 'private-compute-cloud' not in reference_architecture }}"
    - "{{ internal_floating_ipaddr != external_floating_ipaddr }}"

- name: HA Proxy config for Swift standalone
  copy:
    src: swift_haproxy_equal_floaters.yml
    dest: /etc/openstack_deploy/user_swift_haproxy.yml
  when:
    - "{{ 'swift' in reference_architecture }}"
    - "{{ 'private-compute-cloud' not in reference_architecture }}"
    - "{{ internal_floating_ipaddr == external_floating_ipaddr }}"

- name: Remove files from /etc/openstack_deploy/env.d
  file: path="/etc/openstack_deploy/env.d/{{ item }}" state=absent
  with_items: swift_minimum_exclude_services
  when:
    - "'swift' in {{ reference_architecture }}"
    - "'private-compute-cloud' not in {{ reference_architecture }}"<commit_msg>Fix Swift standalone exclude services<commit_after>---
# Copyright 2016 IBM Corp.
#
# All Rights Reserved.
#
# 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: Configure Swift proxy is_metal value
  replace:
    dest: '/etc/openstack_deploy/env.d/swift.yml'
    regexp: 'SWIFT_PROXY_IS_METAL_VALUE'
    replace: "{{ 'swift-minimum-hardware' not in reference_architecture }}"

- name: HA Proxy config for Swift standalone with separate internal and external IPs
  copy:
    src: swift_haproxy_diff_floaters.yml
    dest: /etc/openstack_deploy/user_swift_haproxy.yml
  when:
    - "{{ 'swift' in reference_architecture }}"
    - "{{ 'private-compute-cloud' not in reference_architecture }}"
    - "{{ internal_floating_ipaddr != external_floating_ipaddr }}"

- name: HA Proxy config for Swift standalone
  copy:
    src: swift_haproxy_equal_floaters.yml
    dest: /etc/openstack_deploy/user_swift_haproxy.yml
  when:
    - "{{ 'swift' in reference_architecture }}"
    - "{{ 'private-compute-cloud' not in reference_architecture }}"
    - "{{ internal_floating_ipaddr == external_floating_ipaddr }}"

- name: Remove files from /etc/openstack_deploy/env.d
  file: path="/etc/openstack_deploy/env.d/{{ item }}" state=absent
  with_items: swift_minimum_exclude_services
  when:
    - "{{ 'swift' in reference_architecture }}"
    - "{{ 'private-compute-cloud' not in reference_architecture }}"
{'fraction_non_alphanumeric': 0.10383386581469649, 'fraction_numerical': 0.004259850905218318, 'mean_word_length': 4.125511596180082, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6880780', 'n_tokens_mistral': 1229, 'n_tokens_neox': 1140, 'n_words': 346}