Use group vars to reduce redundancy in host vars
This is essentially a noop that establishes a healthy DRY pattern of group var definitions in the pxe_server subgroups. Change-Id: Ie458f0684f720879c21ca639320814ef12d5dc4e
This commit is contained in:
parent
18dfdd8895
commit
0f5555328d
26
multi-node-aio/playbooks/group_vars/cinder_hosts.yml
Normal file
26
multi-node-aio/playbooks/group_vars/cinder_hosts.yml
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
# Copyright 2017, 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 witing, 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.
|
||||
|
||||
ansible_os_family: "{{ images[default_vm_image]['image_type'] }}"
|
||||
|
||||
server_domain_name: 'openstack.local'
|
||||
server_vm: true
|
||||
server_vm_ram: '{{ cinder_vm_server_ram | default(2048) }}'
|
||||
server_vm_vcpus: '{{ cinder_vm_server_vcpus | default(2) }}'
|
||||
server_vm_primary_network: 'dhcp'
|
||||
server_image: "{{ default_vm_image }}"
|
||||
server_default_interface: 'eth0'
|
||||
server_preseed_ks: 'vm'
|
||||
server_extra_options: ''
|
26
multi-node-aio/playbooks/group_vars/compute_hosts.yml
Normal file
26
multi-node-aio/playbooks/group_vars/compute_hosts.yml
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
# Copyright 2017, 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 witing, 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.
|
||||
|
||||
ansible_os_family: "{{ images[default_vm_image]['image_type'] }}"
|
||||
|
||||
server_domain_name: 'openstack.local'
|
||||
server_vm: true
|
||||
server_vm_ram: '{{ compute_vm_server_ram | default(8192) }}'
|
||||
server_vm_vcpus: '{{ compute_vm_server_vcpus | default(4) }}'
|
||||
server_vm_primary_network: 'dhcp'
|
||||
server_image: "{{ default_vm_image }}"
|
||||
server_default_interface: 'eth0'
|
||||
server_preseed_ks: 'vm-compute'
|
||||
server_extra_options: ''
|
26
multi-node-aio/playbooks/group_vars/infra_hosts.yml
Normal file
26
multi-node-aio/playbooks/group_vars/infra_hosts.yml
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
# Copyright 2017, 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 witing, 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.
|
||||
|
||||
ansible_os_family: "{{ images[default_vm_image]['image_type'] }}"
|
||||
|
||||
server_domain_name: 'openstack.local' # str - required, domain name of server
|
||||
server_vm: true # bool - not required, used to specify a host is to become a VM
|
||||
server_vm_ram: '{{ infra_vm_server_ram | default(8192) }}' # int - not required, used to specify ram when provisioning a VM
|
||||
server_vm_vcpus: '{{ infra_vm_server_vcpus | default(4) }}' # int - not required, used to specify vcpus when provisioning a VM
|
||||
server_vm_primary_network: 'dhcp' # str - not required, primary network used to kick the VM
|
||||
server_image: "{{ default_vm_image }}" # str - required, image name
|
||||
server_default_interface: 'eth0' # str - required, default interface
|
||||
server_preseed_ks: 'vm' # str - required, name of preseed/kickstart file
|
||||
server_extra_options: '' # str - not required, added kernel options
|
26
multi-node-aio/playbooks/group_vars/loadbalancer_hosts.yml
Normal file
26
multi-node-aio/playbooks/group_vars/loadbalancer_hosts.yml
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
# Copyright 2017, 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 witing, 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.
|
||||
|
||||
ansible_os_family: "{{ images[default_vm_image]['image_type'] }}"
|
||||
|
||||
server_domain_name: 'openstack.local'
|
||||
server_vm: true
|
||||
server_vm_ram: '{{ loadbalancer_vm_server_ram | default(1024) }}'
|
||||
server_vm_vcpus: '{{ loadbalancer_vm_server_vcpus | default(1) }}'
|
||||
server_vm_primary_network: 'dhcp'
|
||||
server_image: "{{ default_vm_image }}"
|
||||
server_default_interface: 'eth0'
|
||||
server_preseed_ks: 'vm'
|
||||
server_extra_options: ''
|
26
multi-node-aio/playbooks/group_vars/log_hosts.yml
Normal file
26
multi-node-aio/playbooks/group_vars/log_hosts.yml
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
# Copyright 2017, 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 witing, 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.
|
||||
|
||||
ansible_os_family: "{{ images[default_vm_image]['image_type'] }}"
|
||||
|
||||
server_domain_name: 'openstack.local'
|
||||
server_vm: true
|
||||
server_vm_ram: '{{ logging_vm_server_ram | default(1024) }}'
|
||||
server_vm_vcpus: '{{ logging_vm_server_vcpus | default(2) }}'
|
||||
server_vm_primary_network: 'dhcp'
|
||||
server_image: "{{ default_vm_image }}"
|
||||
server_default_interface: 'eth0'
|
||||
server_preseed_ks: 'vm'
|
||||
server_extra_options: ''
|
26
multi-node-aio/playbooks/group_vars/swift_hosts.yml
Normal file
26
multi-node-aio/playbooks/group_vars/swift_hosts.yml
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
# Copyright 2017, 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 witing, 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.
|
||||
|
||||
ansible_os_family: "{{ images[default_vm_image]['image_type'] }}"
|
||||
|
||||
server_domain_name: 'openstack.local'
|
||||
server_vm: true
|
||||
server_vm_ram: '{{ swift_vm_server_ram | default(1024) }}'
|
||||
server_vm_vcpus: '{{ swift_vm_server_vcpus | default(2) }}'
|
||||
server_vm_primary_network: 'dhcp'
|
||||
server_image: "{{ default_vm_image }}"
|
||||
server_default_interface: 'eth0'
|
||||
server_preseed_ks: 'vm'
|
||||
server_extra_options: ''
|
@ -13,20 +13,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ansible_os_family: "{{ images[default_vm_image]['image_type'] }}"
|
||||
|
||||
server_hostname: 'cinder1'
|
||||
server_domain_name: 'openstack.local'
|
||||
server_vm: true
|
||||
server_vm_ram: '{{ cinder_vm_server_ram | default(2048) }}'
|
||||
server_vm_vcpus: '{{ cinder_vm_server_vcpus | default(2) }}'
|
||||
server_vm_fixed_addr: '10.0.2.130'
|
||||
server_vm_primary_network: 'dhcp'
|
||||
server_image: "{{ default_vm_image }}"
|
||||
server_default_interface: 'eth0'
|
||||
server_mac_address: '52:54:00:bd:80:07'
|
||||
server_preseed_ks: 'vm'
|
||||
server_extra_options: ''
|
||||
|
||||
server_networks:
|
||||
dhcp:
|
||||
|
@ -13,20 +13,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ansible_os_family: "{{ images[default_vm_image]['image_type'] }}"
|
||||
|
||||
server_hostname: 'cinder2'
|
||||
server_domain_name: 'openstack.local'
|
||||
server_vm: true
|
||||
server_vm_ram: '{{ cinder_vm_server_ram | default(2048) }}'
|
||||
server_vm_vcpus: '{{ cinder_vm_server_vcpus | default(2) }}'
|
||||
server_vm_fixed_addr: '10.0.2.131'
|
||||
server_vm_primary_network: 'dhcp'
|
||||
server_image: "{{ default_vm_image }}"
|
||||
server_default_interface: 'eth0'
|
||||
server_mac_address: '52:54:00:bd:80:08'
|
||||
server_preseed_ks: 'vm'
|
||||
server_extra_options: ''
|
||||
|
||||
server_networks:
|
||||
dhcp:
|
||||
|
@ -13,20 +13,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ansible_os_family: "{{ images[default_vm_image]['image_type'] }}"
|
||||
|
||||
server_hostname: 'compute1'
|
||||
server_domain_name: 'openstack.local'
|
||||
server_vm: true
|
||||
server_vm_ram: '{{ compute_vm_server_ram | default(8192) }}'
|
||||
server_vm_vcpus: '{{ compute_vm_server_vcpus | default(4) }}'
|
||||
server_vm_fixed_addr: '10.0.2.120'
|
||||
server_vm_primary_network: 'dhcp'
|
||||
server_image: "{{ default_vm_image }}"
|
||||
server_default_interface: 'eth0'
|
||||
server_mac_address: '52:54:00:bd:80:05'
|
||||
server_preseed_ks: 'vm-compute'
|
||||
server_extra_options: ''
|
||||
|
||||
server_networks:
|
||||
dhcp:
|
||||
|
@ -13,20 +13,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ansible_os_family: "{{ images[default_vm_image]['image_type'] }}"
|
||||
|
||||
server_hostname: 'compute2'
|
||||
server_domain_name: 'openstack.local'
|
||||
server_vm: true
|
||||
server_vm_ram: '{{ compute_vm_server_ram | default(8192) }}'
|
||||
server_vm_vcpus: '{{ compute_vm_server_vcpus | default(4) }}'
|
||||
server_vm_fixed_addr: '10.0.2.121'
|
||||
server_vm_primary_network: 'dhcp'
|
||||
server_image: "{{ default_vm_image }}"
|
||||
server_default_interface: 'eth0'
|
||||
server_mac_address: '52:54:00:bd:80:06'
|
||||
server_preseed_ks: 'vm-compute'
|
||||
server_extra_options: ''
|
||||
|
||||
server_networks:
|
||||
dhcp:
|
||||
|
@ -13,20 +13,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ansible_os_family: "{{ images[default_vm_image]['image_type'] }}"
|
||||
|
||||
server_hostname: 'infra1' # str - required, hostname of server
|
||||
server_domain_name: 'openstack.local' # str - required, domain name of server
|
||||
server_vm: true # bool - not required, used to specify a host is to become a VM
|
||||
server_vm_ram: '{{ infra_vm_server_ram | default(8192) }}' # int - not required, used to specify ram when provisioning a VM
|
||||
server_vm_vcpus: '{{ infra_vm_server_vcpus | default(4) }}' # int - not required, used to specify vcpus when provisioning a VM
|
||||
server_vm_fixed_addr: '10.0.2.100' # str - not required, used to specify fixed address when using internal DHCPD
|
||||
server_vm_primary_network: 'dhcp' # str - not required, primary network used to kick the VM
|
||||
server_image: "{{ default_vm_image }}" # str - required, image name
|
||||
server_default_interface: 'eth0' # str - required, default interface
|
||||
server_mac_address: '52:54:00:bd:80:00' # str - required, mac address of default interface
|
||||
server_preseed_ks: 'vm' # str - required, name of preseed/kickstart file
|
||||
server_extra_options: '' # str - not required, added kernel options
|
||||
|
||||
server_networks: # dict - required, hash of networks, can be empty, key is used to name the networks.
|
||||
dhcp:
|
||||
|
@ -13,20 +13,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ansible_os_family: "{{ images[default_vm_image]['image_type'] }}"
|
||||
|
||||
server_hostname: 'infra2'
|
||||
server_domain_name: 'openstack.local'
|
||||
server_vm: true
|
||||
server_vm_ram: '{{ infra_vm_server_ram | default(8192) }}'
|
||||
server_vm_vcpus: '{{ infra_vm_server_vcpus | default(4) }}'
|
||||
server_vm_fixed_addr: '10.0.2.101'
|
||||
server_vm_primary_network: 'dhcp'
|
||||
server_image: "{{ default_vm_image }}"
|
||||
server_default_interface: 'eth0'
|
||||
server_mac_address: '52:54:00:bd:80:01'
|
||||
server_preseed_ks: 'vm'
|
||||
server_extra_options: ''
|
||||
|
||||
server_networks:
|
||||
dhcp:
|
||||
|
@ -13,20 +13,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ansible_os_family: "{{ images[default_vm_image]['image_type'] }}"
|
||||
|
||||
server_hostname: 'infra3'
|
||||
server_domain_name: 'openstack.local'
|
||||
server_vm: true
|
||||
server_vm_ram: '{{ infra_vm_server_ram | default(8192) }}'
|
||||
server_vm_vcpus: '{{ infra_vm_server_vcpus | default(4) }}'
|
||||
server_vm_fixed_addr: '10.0.2.102'
|
||||
server_vm_primary_network: 'dhcp'
|
||||
server_image: "{{ default_vm_image }}"
|
||||
server_default_interface: 'eth0'
|
||||
server_mac_address: '52:54:00:bd:80:02'
|
||||
server_preseed_ks: 'vm'
|
||||
server_extra_options: ''
|
||||
|
||||
server_networks:
|
||||
dhcp:
|
||||
|
@ -13,20 +13,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ansible_os_family: "{{ images[default_vm_image]['image_type'] }}"
|
||||
|
||||
server_hostname: 'loadbalancer1'
|
||||
server_domain_name: 'openstack.local'
|
||||
server_vm: true
|
||||
server_vm_ram: '{{ loadbalancer_vm_server_ram | default(1024) }}'
|
||||
server_vm_vcpus: '{{ loadbalancer_vm_server_vcpus | default(1) }}'
|
||||
server_vm_fixed_addr: '10.0.2.150'
|
||||
server_vm_primary_network: 'dhcp'
|
||||
server_image: "{{ default_vm_image }}"
|
||||
server_default_interface: 'eth0'
|
||||
server_mac_address: '52:54:00:bd:80:12'
|
||||
server_preseed_ks: 'vm'
|
||||
server_extra_options: ''
|
||||
|
||||
server_networks:
|
||||
dhcp:
|
||||
|
@ -13,20 +13,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ansible_os_family: "{{ images[default_vm_image]['image_type'] }}"
|
||||
|
||||
server_hostname: 'logging1'
|
||||
server_domain_name: 'openstack.local'
|
||||
server_vm: true
|
||||
server_vm_ram: '{{ logging_vm_server_ram | default(1024) }}'
|
||||
server_vm_vcpus: '{{ logging_vm_server_vcpus | default(2) }}'
|
||||
server_vm_fixed_addr: '10.0.2.110'
|
||||
server_vm_primary_network: 'dhcp'
|
||||
server_image: "{{ default_vm_image }}"
|
||||
server_default_interface: 'eth0'
|
||||
server_mac_address: '52:54:00:bd:80:03'
|
||||
server_preseed_ks: 'vm'
|
||||
server_extra_options: ''
|
||||
|
||||
server_networks:
|
||||
dhcp:
|
||||
|
@ -13,20 +13,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ansible_os_family: "{{ images[default_vm_image]['image_type'] }}"
|
||||
|
||||
server_hostname: 'swift1'
|
||||
server_domain_name: 'openstack.local'
|
||||
server_vm: true
|
||||
server_vm_ram: '{{ swift_vm_server_ram | default(1024) }}'
|
||||
server_vm_vcpus: '{{ swift_vm_server_vcpus | default(2) }}'
|
||||
server_vm_fixed_addr: '10.0.2.140'
|
||||
server_vm_primary_network: 'dhcp'
|
||||
server_image: "{{ default_vm_image }}"
|
||||
server_default_interface: 'eth0'
|
||||
server_mac_address: '52:54:00:bd:80:09'
|
||||
server_preseed_ks: 'vm'
|
||||
server_extra_options: ''
|
||||
|
||||
server_networks:
|
||||
dhcp:
|
||||
|
@ -13,20 +13,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ansible_os_family: "{{ images[default_vm_image]['image_type'] }}"
|
||||
|
||||
server_hostname: 'swift2'
|
||||
server_domain_name: 'openstack.local'
|
||||
server_vm: true
|
||||
server_vm_ram: '{{ swift_vm_server_ram | default(1024) }}'
|
||||
server_vm_vcpus: '{{ swift_vm_server_vcpus | default(2) }}'
|
||||
server_vm_fixed_addr: '10.0.2.141'
|
||||
server_vm_primary_network: 'dhcp'
|
||||
server_image: "{{ default_vm_image }}"
|
||||
server_default_interface: 'eth0'
|
||||
server_mac_address: '52:54:00:bd:80:10'
|
||||
server_preseed_ks: 'vm'
|
||||
server_extra_options: ''
|
||||
|
||||
server_networks:
|
||||
dhcp:
|
||||
|
@ -13,20 +13,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ansible_os_family: "{{ images[default_vm_image]['image_type'] }}"
|
||||
|
||||
server_hostname: 'swift3'
|
||||
server_domain_name: 'openstack.local'
|
||||
server_vm: true
|
||||
server_vm_ram: '{{ swift_vm_server_ram | default(1024) }}'
|
||||
server_vm_vcpus: '{{ swift_vm_server_vcpus | default(2) }}'
|
||||
server_vm_fixed_addr: '10.0.2.142'
|
||||
server_vm_primary_network: 'dhcp'
|
||||
server_image: "{{ default_vm_image }}"
|
||||
server_default_interface: 'eth0'
|
||||
server_mac_address: '52:54:00:bd:80:11'
|
||||
server_preseed_ks: 'vm'
|
||||
server_extra_options: ''
|
||||
|
||||
server_networks:
|
||||
dhcp:
|
||||
|
Loading…
Reference in New Issue
Block a user