Execution
Date
08 Dec 2025 13:39:11 +0000
Duration
00:00:54.41
Controller
np02e11c14dcea4
User
root
Versions
Ansible
2.18.6
ara
1.7.4 / 1.7.4
Python
3.12.11
Summary
1
Hosts
156
Tasks
156
Results
1
Plays
23
Files
0
Records
File: /home/zuul/src/opendev.org/openstack/openstack-ansible/tests/roles/bootstrap-host/defaults/main.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 | --- # 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. ## AIO user-space configuration options # Scenario used to bootstrap the host bootstrap_host_scenario: "{{ lookup('env', 'SCENARIO') | default('aio_lxc', true) }}" # # Action used (deploy, upgrade, ...) bootstrap_host_action: "{{ lookup('env', 'ACTION') | default('deploy', true) }}" # # Boolean option to implement OpenStack-Ansible configuration for an AIO # Switch to false for a multi-node configuration bootstrap_host_aio_config: true # # Path to the location of the bootstrapping configuration files bootstrap_host_aio_config_path: "{{ playbook_dir }}/../etc/openstack_deploy" # # Path to the location of the scripts the bootstrap scripts use bootstrap_host_aio_script_path: "{{ playbook_dir }}/../scripts" # # The user space configuration file names to use bootstrap_host_user_variables_filename: "user_variables.yml" bootstrap_host_user_secrets_filename: "user_secrets.yml" # # Paths to configuration file targets that should be created by the bootstrap bootstrap_host_target_config_paths: - /etc/openstack_deploy - /etc/openstack_deploy/conf.d - /etc/openstack_deploy/env.d # The user variables template to use bootstrap_user_variables_template: user_variables.aio.yml.j2 ## Loopback volumes # Sparse loopback disks are used for the containers if there is no secondary # disk available to partition for btrfs. They are also used for Ceph, Cinder, # Swift and Nova (instance storage). # The size of the loopback volumes can be customized here (in gigabytes). # # Boolean option to deploy the loopback disk for Swap bootstrap_host_loopback_swap: false # Size of the Swap loopback disk in gigabytes (GB). bootstrap_host_loopback_swap_size: 4096 # # Boolean option to deploy the loopback disk for Cinder bootstrap_host_loopback_cinder: "{{ 'cinder' in bootstrap_host_scenarios_expanded }}" # Size of the Cinder loopback disk in gigabytes (GB). bootstrap_host_loopback_cinder_size: 1024 # # Boolean option to deploy the loopback disk for Swift bootstrap_host_loopback_swift: "{{ 'swift' in bootstrap_host_scenarios_expanded }}" # Size of the Swift loopback disk in gigabytes (GB). bootstrap_host_loopback_swift_size: 1024 # # Boolean option to deploy the loopback disk for Nova bootstrap_host_loopback_nova: "{{ 'nova' in bootstrap_host_scenarios_expanded }}" # Size of the Nova loopback disk in gigabytes (GB). bootstrap_host_loopback_nova_size: 1024 # # Boolean option to deploy the loopback disk for Manila bootstrap_host_loopback_manila: "{{ 'manila' in bootstrap_host_scenarios_expanded }}" # Size of the Manila loopback disk in gigabytes (GB). bootstrap_host_loopback_manila_size: 1024 # # Boolean option to deploy the loopback disk for btrfs bootstrap_host_loopback_btrfs: true # Size of the btrfs loopback disk in gigabytes (GB). bootstrap_host_loopback_btrfs_size: 1024 # # Boolean option to deploy the loopback disk for zfs bootstrap_host_loopback_zfs: true # Size of the zfs loopback disk in gigabytes (GB). bootstrap_host_loopback_zfs_size: 1024 # # Boolean option to deploy the loopback disk for nfs bootstrap_host_nfs: "{{ 'nfs' in bootstrap_host_scenarios_expanded }}" # Size of the nfs loopback disk in gigabytes (GB). bootstrap_host_loopback_nfs_size: 1024 # # Boolean option to deploy the OSD loopback disks and cluster UUID for Ceph bootstrap_host_ceph: "{{ 'ceph' in bootstrap_host_scenarios_expanded }}" # Size of the Ceph OSD loopbacks bootstrap_host_loopback_ceph_size: 1024 # Ceph OSDs to create on the AIO host ceph_osd_images: - 'ceph1' - 'ceph2' - 'ceph3' ## Network configuration # Default network IP ranges mgmt_network: "172.29.236.0/22" vxlan_network: "172.29.240.0/22" storage_network: "172.29.244.0/22" vlan_network: "172.29.248.0/22" bmaas_network: "172.29.228.0/22" dbaas_network: "172.29.252.0/22" lbaas_network: "172.29.232.0/22" squid_network: "172.29.200.200/32" # # NICs bootstrap_host_public_interface: "{{ ansible_facts['default_ipv4']['interface'] }}" # Specify the public IP address for the host. # By default the address will be set to the ipv4 address of the # host's network interface that has the default route on it. bootstrap_host_public_address: "{{ ansible_facts[bootstrap_host_public_interface | replace('-', '_')]['ipv4']['address'] }}" bootstrap_host_management_address: "{{ mgmt_network | ansible.utils.nthhost('100') }}" bootstrap_host_internal_address: "{{ mgmt_network | ansible.utils.nthhost('101') }}" # # Utility paths bootstrap_host_network_utils: apt: iptables: /sbin/iptables ethtool: /sbin/ethtool ip: /sbin/ip dnf: iptables: /usr/sbin/iptables ethtool: /usr/sbin/ethtool ip: /usr/sbin/ip # bootstrap_host_iptables_path: "{{ bootstrap_host_network_utils[ansible_facts['pkg_mgr']]['iptables'] }}" bootstrap_host_ethtool_path: "{{ bootstrap_host_network_utils[ansible_facts['pkg_mgr']]['ethtool'] }}" bootstrap_host_ip_path: "{{ bootstrap_host_network_utils[ansible_facts['pkg_mgr']]['ip'] }}" ## Extra storage # An AIO may optionally be built using a second storage device. If a # secondary disk device to use is not specified, then the AIO will be # built on any existing disk partitions. # # WARNING: The data on a secondary storage device specified here will # be destroyed and repartitioned. # # Enable detection for the secondary data disk # This does not run by default, but gate-check-commit and the OSA gate jobs # enable this because it is needed for RAX nodepool instances bootstrap_host_data_disk_device_detect: "{{ lookup('env', 'BOOTSTRAP_HOST_DETECT_DATA_DISK') | default(False, True) }}" # Specify the secondary disk device to use. When the data disk is in use, no NOT # set the full path to the device. IE: "/dev/xvde" should be "xvde". bootstrap_host_data_disk_device: null # Specify the default filesystem type bootstrap_host_data_disk_fs_type: ext4 # # Boolean value to force the repartitioning of the secondary device. bootstrap_host_data_disk_device_force: false # # If the storage capacity on this device is greater than or equal to this # size (in GB), the bootstrap process will use it. # If metal, we don't need that much storage space. bootstrap_host_data_disk_min_size: "{{ (bootstrap_host_scenario is search('metal')) | ternary(10, 50) }}" # # Set the data disk formats table. If the backing store is set to lvm the option # the partition will not actually be formatted however for parted, ext2 is used. bootstrap_host_data_disk2_formats: zfs: zfs btrfs: btrfs xfs: xfs dir: ext4 lvm: ext2 overlayfs: ext4 bootstrap_host_format_options: btrfs: '--metadata single --data single --mixed' xfs: '-K -d agcount=64 -l size=128m' ext4: '-O dir_index' # # Set the data disk mount options. bootstrap_host_data_mount_options: zfs: "defaults" btrfs: "noatime,nodiratime,compress=lzo,commit=120,space_cache=v2" xfs: "noatime,nodiratime,logbufs=8,logbsize=256k" ext4: "noatime,nobh,barrier=0,data=writeback" dir: "defaults" lvm: "defaults" swap: "%%" bootstrap_host_data_disk2_fs: "{{ bootstrap_host_data_disk2_formats[_lxc_container_backing_store] }}" bootstrap_host_data_disk2_fs_mount_options: "{{ bootstrap_host_data_mount_options[bootstrap_host_data_disk2_fs] }}" bootstrap_host_data_disk2_path: '/var/lib/lxc' ### Optional Settings ### # Set the install method for the deployment. Options are ['source', 'distro'] bootstrap_host_install_method: "{{ lookup('env', 'INSTALL_METHOD') | default('source', true) }}" # step-ca step_ca_user: step step_ca_group: step step_ca_config_dir: "/etc/step-ca" step_ca_binary: /usr/bin/step-ca # CA Info step_ca_name: "My Certificate Authority" # Name used in a self generated intermediate step_ca_dns_name: - '127.0.0.1' step_ca_listen_address: ":8889" # server bind address/port ## TLS Cert Info step_ca_cert_expiry: "48" # default number of hours till expiry step_ca_cert_org_unit: "My Team" # Organisational Unit Name in Cert step_ca_cert_organisation: "My Organisation" # Organisation Name in Cert step_ca_cert_country: "My Country" # Country Name in Cert step_ca_intermediate_password: "changeme" |