diff --git a/Vagrantfile b/Vagrantfile index 97d720d..5a31fc3 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -40,7 +40,7 @@ TOX_ENVLIST = ENV.fetch('TOX_ENVLIST', '') TOX_EXTRA_ARGS = ENV.fetch('TOX_EXTRA_ARGS', '--notest') # Allow to switch configuration -DEVSTACK_CONF_NAME = ENV.fetch('DEVSTACK_CONF_NAME', 'ovn-octavia') +DEVSTACK_CONF_NAME = ENV.fetch('DEVSTACK_CONF_NAME', 'designate') DEVSTACK_LOCAL_CONF_FILE = ENV.fetch( 'DEVSTACK_LOCAL_CONF_FILE', diff --git a/playbooks/vagrant/designate/local.conf b/playbooks/vagrant/designate/local.conf new file mode 100644 index 0000000..1da17ca --- /dev/null +++ b/playbooks/vagrant/designate/local.conf @@ -0,0 +1,123 @@ +[[local|localrc]] +ADMIN_PASSWORD=secret +DATABASE_PASSWORD=$ADMIN_PASSWORD +KEYSTONE_ADMIN_ENDPOINT=true +RABBIT_PASSWORD=$ADMIN_PASSWORD +SERVICE_PASSWORD=$ADMIN_PASSWORD + +LOGFILE=/opt/stack/devstack/stack.log +VERBOSE=True +LOG_COLOR=True +MULTI_HOST="0" + +# Enable required services ---------------------------------------------------- +enable_service key +enable_service mysql +enable_service placement-api +enable_service placement-client +enable_service rabbit + +# Disable unrequired services ------------------------------------------------- +disable_service horizon +disable_service s-account +disable_service s-container +disable_service s-object +disable_service s-proxy +disable_service tempest +disable_service tls-proxy + +# Configure Nova -------------------------------------------------------------- +enable_service n-api +enable_service n-api-meta +enable_service n-cond +enable_service n-cpu +enable_service n-crt +enable_service n-sch +enable_service n-sproxy + +# Configure Neutron ----------------------------------------------------------- +enable_plugin neutron https://opendev.org/openstack/neutron.git +enable_service neutron +enable_service neutron-segments +enable_service ovn-controller +enable_service ovn-northd +enable_service ovs-vswitchd +enable_service ovsdb-server +enable_service q-dns +enable_service q-log +enable_service q-ovn-metadata-agent +enable_service q-port-forwarding +enable_service q-qos +enable_service q-svc +enable_service q-trunk + +# Disable Neutron agents not used with OVN. +disable_service q-agt +disable_service q-l3 +disable_service q-dhcp +disable_service q-meta + +HOST_IP=192.168.33.10 +IP_VERSION=4 + +# ENABLE_CHASSIS_AS_GW=true +ENABLE_TLS=false +KEYSTONE_ADMIN_ENDPOINT=true +ML2_L3_PLUGIN=ovn-router,trunk +OVN_BUILD_MODULES=false +OVN_DBS_LOG_LEVEL=dbg +OVN_IGMP_SNOOPING_ENABLE=true +OVN_L3_CREATE_PUBLIC_NETWORK=true +# PHYSICAL_NETWORK=public +# PUBLIC_INTERFACE=eth0 +Q_AGENT=ovn +Q_ML2_PLUGIN_MECHANISM_DRIVERS=ovn,logger +Q_ML2_PLUGIN_TYPE_DRIVERS=local,flat,vlan,geneve +Q_ML2_TENANT_NETWORK_TYPE=geneve +Q_USE_PROVIDERNET_FOR_PUBLIC=true + +# Whether or not to build custom openvswitch kernel modules from the ovs git +# tree. This is disabled by default. This is required unless your distro kernel +# includes ovs+conntrack support. This support was first released in Linux 4.3, +# and will likely be backported by some distros. +# NOTE(mjozefcz): We need to compile the module for Ubuntu Bionic, because default +# shipped kernel module doesn't openflow meter action support. +OVN_BUILD_MODULES=False + + +# Configure Horizon ----------------------------------------------------------- +disable_service horizon + +# Configure Glance ------------------------------------------------------------ +enable_service g-api + +GLANCE_ENABLE_QUOTAS="False" + +# Configure Cinder ------------------------------------------------------------ +enable_service c-api +disable_service c-bak +enable_service c-sch +enable_service c-vol + + +# Configure Heat -------------------------------------------------------------- +enable_plugin heat https://opendev.org/openstack/heat.git + +# Configure Tobiko ------------------------------------------------------------ +enable_plugin devstack-plugin-tobiko https://opendev.org/x/devstack-plugin-tobiko.git + +TOBIKO_NEUTRON_IPV4_DNS_NAMESERVERS=1.1.1.1,8.8.8.8 + +# Configure designate -------------------------------------------------------- +enable_plugin designate https://opendev.org/openstack/designate.git +enable_service designate +enable_service designate-central +enable_service designate-api +enable_service designate-worker +enable_service designate-producer +enable_service designate-mdns + + +[[post-config|$NOVA_CONF]] +[scheduler] +discover_hosts_in_cells_interval = 2