diff --git a/hiera/group/infracloud.yaml b/hiera/group/infracloud.yaml index a4d0dd52ec..1690d8cc5d 100644 --- a/hiera/group/infracloud.yaml +++ b/hiera/group/infracloud.yaml @@ -2856,3 +2856,11 @@ ironic_inventory: rabbitmq::package_gpg_key: 'https://www.rabbitmq.com/rabbitmq-release-signing-key.asc' rabbitmq::repo::apt::key: '0A9AF2115F4687BD29803A206B73A36E6026DFCA' bridge_name: br-vlan2551 +vlan: '2551' +gateway_ip: '15.184.64.1' +default_network_interface: 'eth2' +network_interface: 'eth2' +ipv4_nameserver: '8.8.8.8' +ipv4_subnet_mask: '255.255.224.0' +dhcp_pool_start: '10.10.16.144' +dhcp_pool_end: '10.10.16.190' diff --git a/manifests/site.pp b/manifests/site.pp index 585772b3c8..1c2029bc5e 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -1428,17 +1428,21 @@ node /^baremetal\d{2}\.vanilla\.ic\.openstack\.org$/ { } class { '::openstack_project::infracloud::baremetal': - # NOTE(pabelanger): hiera should be updated to reflect our new region - # names. - ironic_inventory => hiera('ironic_inventory', {}), - ironic_db_password => hiera('ironic_db_password'), - mysql_password => hiera('bifrost_mysql_password'), - ipmi_passwords => hiera('ipmi_passwords'), - ssh_private_key => hiera('bifrost_vanilla_ssh_private_key'), - ssh_public_key => hiera('bifrost_vanilla_ssh_public_key'), - bridge_name => hiera('bridge_name'), - vlan => 2551, - gateway_ip => '15.184.64.1', + ironic_inventory => hiera('ironic_inventory', {}), + ironic_db_password => hiera('ironic_db_password'), + mysql_password => hiera('bifrost_mysql_password'), + ipmi_passwords => hiera('ipmi_passwords'), + ssh_private_key => hiera('bifrost_vanilla_ssh_private_key'), + ssh_public_key => hiera('bifrost_vanilla_ssh_public_key'), + bridge_name => hiera('bridge_name'), + vlan => hiera('vlan'), + gateway_ip => hiera('gateway_ip'), + default_network_interface => hiera('default_network_interface'), + dhcp_pool_start => hiera('dhcp_pool_start'), + dhcp_pool_end => hiera('dhcp_pool_end'), + network_interface => hiera('network_interface'), + ipv4_nameserver => hiera('ipv4_nameserver'), + ipv4_subnet_mask => hiera('ipv4_subnet_mask'), } } diff --git a/modules/openstack_project/manifests/infracloud/baremetal.pp b/modules/openstack_project/manifests/infracloud/baremetal.pp index 9b0f8f0f01..fb74a8d5b8 100644 --- a/modules/openstack_project/manifests/infracloud/baremetal.pp +++ b/modules/openstack_project/manifests/infracloud/baremetal.pp @@ -10,17 +10,29 @@ class openstack_project::infracloud::baremetal ( $bridge_name, $vlan, $gateway_ip, + $default_network_interface, + $dhcp_pool_start, + $dhcp_pool_end, + $network_interface, + $ipv4_nameserver, + $ipv4_subnet_mask, ) { class { '::infracloud::bifrost': - bridge_name => $bridge_name, - ironic_inventory => $ironic_inventory, - ironic_db_password => $ironic_db_password, - mysql_password => $mysql_password, - ipmi_passwords => $ipmi_passwords, - ssh_private_key => $ssh_private_key, - ssh_public_key => $ssh_public_key, - vlan => $vlan, - gateway_ip => $gateway_ip, + bridge_name => $bridge_name, + ironic_inventory => $ironic_inventory, + ironic_db_password => $ironic_db_password, + mysql_password => $mysql_password, + ipmi_passwords => $ipmi_passwords, + ssh_private_key => $ssh_private_key, + ssh_public_key => $ssh_public_key, + vlan => $vlan, + gateway_ip => $gateway_ip, + default_network_interface => $default_network_interface, + dhcp_pool_start => $dhcp_pool_start, + dhcp_pool_end => $dhcp_pool_end, + network_interface => $network_interface, + ipv4_nameserver => $ipv4_nameserver, + ipv4_subnet_mask => $ipv4_subnet_mask, } realize (