Merge "Removing openstack_environment.yml. It is no longer useful."
This commit is contained in:
commit
d5668c84b6
@ -74,13 +74,8 @@ The variables in ``my_project/custom_stuff/playbooks/ansible.cfg`` would use
|
|||||||
env.d
|
env.d
|
||||||
-----
|
-----
|
||||||
|
|
||||||
The OpenStack-Ansible default environment, including container and host
|
|
||||||
group mappings, resides in ``/etc/openstack_deploy/openstack_environment.yml``.
|
|
||||||
|
|
||||||
The ``/etc/openstack_deploy/env.d`` directory sources all YAML files into the
|
The ``/etc/openstack_deploy/env.d`` directory sources all YAML files into the
|
||||||
deployed environment, allowing a deployer to define additional group mappings
|
deployed environment, allowing a deployer to define additional group mappings.
|
||||||
without having to edit the ``openstack_environment.yml`` file, which is
|
|
||||||
controlled by the OpenStack-Ansible project itself.
|
|
||||||
|
|
||||||
conf.d
|
conf.d
|
||||||
------
|
------
|
||||||
|
@ -40,9 +40,8 @@ not specified, the default is ``/etc/openstack_deploy/``.
|
|||||||
|
|
||||||
.. note:: In all versions prior to Mitaka, this argument was ``--file``.
|
.. note:: In all versions prior to Mitaka, this argument was ``--file``.
|
||||||
|
|
||||||
Within the specified directory, the following files must be present:
|
The following file must be present in the configuration directory:
|
||||||
|
|
||||||
* ``openstack_environment.yml``
|
|
||||||
* ``openstack_user_config.yml``
|
* ``openstack_user_config.yml``
|
||||||
|
|
||||||
Additionally, the configuration or environment could be spread between two
|
Additionally, the configuration or environment could be spread between two
|
||||||
|
@ -12,9 +12,6 @@ Appendix A. Configuration files
|
|||||||
`user_secrets.yml
|
`user_secrets.yml
|
||||||
<https://raw.githubusercontent.com/openstack/openstack-ansible/master/etc/openstack_deploy/user_secrets.yml>`_
|
<https://raw.githubusercontent.com/openstack/openstack-ansible/master/etc/openstack_deploy/user_secrets.yml>`_
|
||||||
|
|
||||||
`openstack_environment.yml
|
|
||||||
<https://raw.githubusercontent.com/openstack/openstack-ansible/master/etc/openstack_deploy/openstack_environment.yml>`_
|
|
||||||
|
|
||||||
`swift.yml
|
`swift.yml
|
||||||
<https://raw.githubusercontent.com/openstack/openstack-ansible/master/etc/openstack_deploy/conf.d/swift.yml.example>`_
|
<https://raw.githubusercontent.com/openstack/openstack-ansible/master/etc/openstack_deploy/conf.d/swift.yml.example>`_
|
||||||
|
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
---
|
|
||||||
# Copyright 2014, 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.
|
|
||||||
|
|
||||||
component_skel: {}
|
|
||||||
|
|
||||||
container_skel: {}
|
|
||||||
|
|
||||||
physical_skel: {}
|
|
@ -165,7 +165,7 @@
|
|||||||
#
|
#
|
||||||
# Option: group_binds (required, string)
|
# Option: group_binds (required, string)
|
||||||
# List of one or more Ansible groups that contain this
|
# List of one or more Ansible groups that contain this
|
||||||
# network. For more information, see the openstack_environment.yml file.
|
# network. For more information, see the env.d YAML files.
|
||||||
#
|
#
|
||||||
# Option: net_name (optional, string)
|
# Option: net_name (optional, string)
|
||||||
# Name of network for 'flat' or 'vlan' types. Only valid for these
|
# Name of network for 'flat' or 'vlan' types. Only valid for these
|
||||||
|
@ -928,12 +928,7 @@ def main():
|
|||||||
'\nor \n%s/conf.d directory' % (config_path, config_path)
|
'\nor \n%s/conf.d directory' % (config_path, config_path)
|
||||||
)
|
)
|
||||||
|
|
||||||
# Get the contents of the system environment YAML
|
environment = dict()
|
||||||
environment_file = os.path.join(config_path, 'openstack_environment.yml')
|
|
||||||
|
|
||||||
# Load existing openstack environment YAML
|
|
||||||
with open(environment_file, 'rb') as f:
|
|
||||||
environment = yaml.safe_load(f.read())
|
|
||||||
|
|
||||||
# Load all YAML files found in the env.d directory
|
# Load all YAML files found in the env.d directory
|
||||||
env_plugins = os.path.join(config_path, 'env.d')
|
env_plugins = os.path.join(config_path, 'env.d')
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- The deployment configuration file ``openstack_environment.yml`` has been
|
||||||
|
removed and is no longer used in the dynamic inventory generation
|
||||||
|
process. This file was previously rendered functionally irrelevant to the
|
||||||
|
inventory generation process in the Liberty release.
|
@ -102,15 +102,6 @@
|
|||||||
tags:
|
tags:
|
||||||
- deploy-openstack-user-config
|
- deploy-openstack-user-config
|
||||||
|
|
||||||
- name: Deploy openstack_environment
|
|
||||||
config_template:
|
|
||||||
src: "../etc/openstack_deploy/openstack_environment.yml"
|
|
||||||
dest: "/etc/openstack_deploy/openstack_environment.yml"
|
|
||||||
config_overrides: "{{ openstack_environment_overrides | default({}) }}"
|
|
||||||
config_type: "yaml"
|
|
||||||
tags:
|
|
||||||
- deploy-openstack-environment
|
|
||||||
|
|
||||||
- name: Deploy user_secrets file
|
- name: Deploy user_secrets file
|
||||||
config_template:
|
config_template:
|
||||||
src: "../etc/openstack_deploy/user_secrets.yml"
|
src: "../etc/openstack_deploy/user_secrets.yml"
|
||||||
|
Loading…
Reference in New Issue
Block a user