반응형
openstack-ansible을 통해 OpenStack을 구축할 때 사용되는 variable sample 들
---
debug: false
####################
# Global
openstack_service_publicuri_proto: http
haproxy_keepalived_external_vip_cidr: "1.2.3.4/32"
haproxy_keepalived_internal_vip_cidr: "172.29.236.0/22"
haproxy_keepalived_external_interface: ens2
haproxy_keepalived_internal_interface: br-mgmt
####################
# Haproxy Configuration
haproxy_rise: 3
haproxy_fall: 3
haproxy_interval: 2000
haproxy_ssl: False
haproxy_stats_enabled: true
haproxy_stats_bind_address: 0.0.0.0
haproxy_stats_port: 9000
haproxy_username: admin
haproxy_stats_password: admin1234
haproxy_stats_refresh_interval: 10
haproxy_extra_services:
- service:
haproxy_service_name: swift
haproxy_backend_nodes: "{{ groups['ceph-rgw'] | default([]) }}"
haproxy_ssl: "{{ haproxy_ssl }}"
haproxy_port: 8080
haproxy_balance_type: http
haproxy_backend_options:
- "httpchk GET / HTTP/1.0\\r\\nUser-agent:\\ osa-haproxy-healthcheck"
haproxy_service_enabled: "{{ groups['ceph-rgw'] is defined and groups['ceph-rgw'] | length > 0 }}"
####################
# Galera
galera_innodb_buffer_pool_size: 1024M
galera_max_connections: 2048
####################
# RabbitMQ
rabbitmq_use_ssl: false
####################
# Ceph
generate_fsid: false
fsid: 2d5732d2-cba3-4f3c-816e-8b86b6508a0d
copy_admin_key: True
## ceph-ansible settings
## See https://github.com/ceph/ceph-ansible/tree/master/group_vars for
## additional configuration options availble.
devices:
- /dev/sdb
ceph mons:
- 10.74.11.229
public_network: "{{ cidr_networks.stor_service }}"
cluster_network: "{{ cidr_networks.stor_cluster }}"
monitor_address_block: "{{ cidr_networks.stor_service }}"
osd_scenario: collocated
journal_size: 10240 # size in MB
# Uncomment only when test environment
osd_pool_default_size: 1
osd_pool_default_pg_num: 8
osd_pool_default_pgp_num: 8
cephfs_pools:
- { name: "{{ cephfs_data }}", pgs: "{{ osd_pool_default_pg_num }}", size: "{{ osd_pool_default_size }}" }
- { name: "{{ cephfs_metadata }}", pgs: "{{ osd_pool_default_pg_num }}", size: "{{ osd_pool_default_size }}" }
# ceph-ansible automatically creates pools & keys for OpenStack services
openstack_config: true
cinder_ceph_client: cinder
glance_ceph_client: glance
glance_default_store: rbd
glance_rbd_store_pool: images
nova_libvirt_images_rbd_pool: vms
gnocchi_ceph_client: gnocchi
manila_ceph_client: manila
cinder_backends:
RBD:
volume_driver: cinder.volume.drivers.rbd.RBDDriver
rbd_pool: volumes
rbd_ceph_conf: /etc/ceph/ceph.conf
rbd_store_chunk_size: 8
volume_backend_name: rbddriver
rbd_user: "{{ cinder_ceph_client }}"
rbd_secret_uuid: "{{ cinder_ceph_client_uuid }}"
report_discard_supported: true
# Rados Gateway
radosgw_frontend_type: civetweb
radosgw_civetweb_port: 8080
radosgw_civetweb_num_threads: 2
radosgw_civetweb_options: "num_threads={{ radosgw_civetweb_num_threads }}"
radosgw_address_block: "{{ cidr_networks.stor_service }}"
####################
# Cinder backup
cinder_service_backup_program_enabled: True
cinder_service_backup_driver: cinder.backup.drivers.ceph
cinder_service_backup_ceph_user: cinder-backup
cinder_service_backup_ceph_pool: backups
####################
# Horizon
horizon_images_upload_mode: legacy
horizon_keystone_multidomain_support: False
horizon_can_set_password: True
horizon_enable_ipv6: False
horizon_enable_ssl: False
horizon_enable_cinder_backup: True
####################
# Nova
nova_rabbitmq_userid: nova
nova_libvirt_inject_password: True
nova_designate_enabled: True
nova_notifications_designate: notifications_designate
nova_ceilometer_enabled: True
nova_console_type: spice (또는 novnc)
nova_force_config_drive: True
####################
# Ceilometer
glance_rabbitmq_telemetry_userid: glance
glance_rabbitmq_telemetry_password: "{{ glance_rabbitmq_password }}"
glance_rabbitmq_telemetry_host_group: "{{ rabbitmq_host_group }}"
glance_rabbitmq_telemetry_port: 5672
glance_rabbitmq_telemetry_vhost: /glance
nova_rabbitmq_telemetry_userid: nova
nova_rabbitmq_telemetry_password: "{{ nova_rabbitmq_password }}"
nova_rabbitmq_telemetry_host_group: "{{ rabbitmq_host_group }}"
nova_rabbitmq_telemetry_port: 5672
nova_rabbitmq_telemetry_vhost: /nova
cinder_rabbitmq_telemetry_userid: cinder
cinder_rabbitmq_telemetry_password: "{{ cinder_rabbitmq_password }}"
cinder_rabbitmq_telemetry_host_group: "{{ rabbitmq_host_group }}"
cinder_rabbitmq_telemetry_port: 5672
cinder_rabbitmq_telemetry_vhost: /cinder
neutron_rabbitmq_telemetry_userid: neutron
neutron_rabbitmq_telemetry_password: "{{ neutron_rabbitmq_password }}"
neutron_rabbitmq_telemetry_host_group: "{{ rabbitmq_host_group }}"
neutron_rabbitmq_telemetry_port: 5672
neutron_rabbitmq_telemetry_vhost: /neutron
heat_rabbitmq_telemetry_userid: heat
heat_rabbitmq_telemetry_password: "{{ heat_rabbitmq_password }}"
heat_rabbitmq_telemetry_host_group: "{{ rabbitmq_host_group }}"
heat_rabbitmq_telemetry_port: 5672
heat_rabbitmq_telemetry_vhost: /heat
keystone_rabbitmq_telemetry_userid: keystone
keystone_rabbitmq_telemetry_password: "{{ keystone_rabbitmq_password }}"
keystone_rabbitmq_telemetry_host_group: "{{ rabbitmq_host_group }}"
keystone_rabbitmq_telemetry_port: 5672
keystone_rabbitmq_telemetry_vhost: /keystone
swift_rabbitmq_telemetry_userid: swift
swift_rabbitmq_telemetry_password: "{{ swift_rabbitmq_password }}"
swift_rabbitmq_telemetry_host_group: "{{ rabbitmq_host_group }}"
swift_rabbitmq_telemetry_port: 5672
swift_rabbitmq_telemetry_vhost: /swift
sahara_rabbitmq_telemetry_userid: sahara
sahara_rabbitmq_telemetry_password: "{{ sahara_rabbitmq_password }}"
sahara_rabbitmq_telemetry_host_group: "{{ rabbitmq_host_group }}"
sahara_rabbitmq_telemetry_port: 5672
sahara_rabbitmq_telemetry_vhost: /sahara
####################
# Gnocchi
gnocchi_storage_driver: ceph
####################
# Max number of processes and threads for all software
galera_wsrep_slave_threads_max: 2
keystone_wsgi_processes_max: 2
aodh_wsgi_processes_max: 2
barbican_wsgi_processes_max: 2
cinder_wsgi_processes_max: 2
glance_api_threads_max: 2
glance_wsgi_processes_max: 2
gnocchi_wsgi_processes_max: 2
heat_api_threads_max: 2
heat_wsgi_processes_max: 2
horizon_wsgi_threads_max: 2
ironic_wsgi_processes_max: 2
neutron_api_threads_max: 2
nova_wsgi_processes_max: 2
nova_api_threads_max: 2
octavia_wsgi_processes_max: 2
sahara_wsgi_processes_max: 2
trove_wsgi_processes_max: 2
repo_nginx_threads_max: 2
####################
# for Open vSwitch Environment
openstack_host_specific_kernel_modules:
- name: "openvswitch"
pattern: "CONFIG_OPENVSWITCH"
group: "network_hosts"
neutron_plugin_type: ml2.ovs
neutron_l2_population: true
neutron_ml2_drivers_type: "flat,vlan,vxlan"
neutron_local_ip: "{{ ansible_all_ipv4_addresses | ipaddr(cidr_networks.tunnel) }}"
neutron_provider_networks:
network_types: "vxlan"
network_flat_networks: "vlan"
network_vlan_ranges: "vlan:101:200"
network_mappings: "vlan:br-vlan"
network_vxlan_ranges: "100001:999999"
neutron_vxlan_enabled: true
neutron_ml2_conf_ini_overrides:
securitygroup:
firewall_driver: iptables_hybrid
neutron_openvswitch_agent_ini_overrides:
securitygroup:
firewall_driver: iptables_hybrid
728x90
'Cloud > OpenStack' 카테고리의 다른 글
neutron - 여러 network 할당시 순서 정보 불일치 (0) | 2021.08.17 |
---|---|
Neutron allowed address pair 기능 (0) | 2021.07.05 |