add setup config
This commit is contained in:
parent
d50d4847e3
commit
daef550d31
|
@ -0,0 +1 @@
|
|||
*egg*
|
|
@ -0,0 +1,46 @@
|
|||
Role Name
|
||||
=========
|
||||
|
||||
An Ansible role to copy configuration files to the undercloud prior to deployment.
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
This playbook expects that the undercloud has been installed and setup using one of the roles relevant to baremetal overcloud deployments.
|
||||
|
||||
Role Variables
|
||||
--------------
|
||||
|
||||
**Note:** Make sure to include all environment file and options from your [initial Overcloud creation](https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/7/html/Director_Installation_and_Usage/sect-Scaling_the_Overcloud.html).
|
||||
|
||||
- working_dir: <'/home/stack'> -- working directory for the role. Assumes stackrc file is present at this location
|
||||
- baremetal_instackenv: <"{{ working_dir }}/instackenv.json"> -- location of instackenv.json to copy over
|
||||
- baremetal_network_environment: <"{{ working_dir }}/network-isolation.yml"> -- location of network-environment file to copy over
|
||||
- undercloud_type: <virtual> -- can be overwritten with values like 'baremetal' or 'ovb'
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
This playbook does not deploy the overcloud. After this playbook runs, call https://github.com/redhat-openstack/ansible-role-tripleo-overcloud.
|
||||
|
||||
Example Playbook
|
||||
----------------
|
||||
|
||||
1. Sample playbook to call the role
|
||||
|
||||
- name: Copy configuration files
|
||||
hosts: virthost
|
||||
gather_facts: no
|
||||
roles:
|
||||
- ansible-role-tripleo-overcloud-prep-config
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
Apache 2.0
|
||||
|
||||
Author Information
|
||||
------------------
|
||||
|
||||
RDO-CI Team
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
overcloud_prep_network_script: overcloud-prep-network.sh.j2
|
||||
overcloud_prep_network_log: "{{ working_dir }}/overcloud_prep_network.log"
|
||||
etwork_environment_file: network-environment.yaml.j2
|
||||
network_environment_file: network-environment.yaml.j2
|
||||
|
||||
undercloud_network_cidr: 192.0.2.0/24
|
||||
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
[metadata]
|
||||
name = ansible-role-tripleo-overcloud-prep-network
|
||||
summary = ansible-role-tripleo-overcloud-prep-network - An ansible role for setting up and customizing network isolation on the undercloud for an overcloud deployment.
|
||||
description-file =
|
||||
README.md
|
||||
author = RDO-CI Team
|
||||
author-email = whayutin@redhat.com
|
||||
home-page = https://github.com/redhat-openstack/ansible-role-tripleo-overcloud-prep-network
|
||||
classifier =
|
||||
License :: OSI Approved :: Apache Software License
|
||||
Development Status :: 4 - Beta
|
||||
Intended Audience :: Developers
|
||||
Intended Audience :: System Administrators
|
||||
Intended Audience :: Information Technology
|
||||
Topic :: Utilities
|
||||
|
||||
[global]
|
||||
setup-hooks =
|
||||
pbr.hooks.setup_hook
|
||||
|
||||
[files]
|
||||
data_files =
|
||||
usr/local/share/ansible/roles/overcloud-prep-network/defaults = defaults/*
|
||||
usr/local/share/ansible/roles/overcloud-prep-network/meta = meta/*
|
||||
usr/local/share/ansible/roles/overcloud-prep-network/tasks = tasks/*
|
||||
usr/local/share/ansible/roles/overcloud-prep-network/templates = templates/*
|
||||
|
||||
[wheel]
|
||||
universal = 1
|
||||
|
||||
[pbr]
|
||||
skip_authors = True
|
||||
skip_changelog = True
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
# Copyright Red Hat, Inc. 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.
|
||||
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['pbr'],
|
||||
pbr=True)
|
|
@ -2,6 +2,6 @@
|
|||
tags:
|
||||
- undercloud-scripts
|
||||
|
||||
- include: post-install.yml
|
||||
- include: overcloud-prep-network.yml
|
||||
tags:
|
||||
- overcloud-prep-network.yml
|
||||
- undercloud-post-install
|
||||
|
|
Loading…
Reference in New Issue