0235eb47aa
These were deprecated[1] during the past cycle so can be removed now.
[1] 91c9bc3f33
Change-Id: Ib1d2a70a8e40680ebb582cbf4e59a0c018c21447
55 lines
1.3 KiB
Puppet
55 lines
1.3 KiB
Puppet
#
|
|
# This manifest is intended to demonstrate how to provision the
|
|
# resources necessary to boot a vm with network connectivity provided
|
|
# by neutron.
|
|
#
|
|
# Note that a neutron_router resource must declare a dependency on the
|
|
# first subnet of the gateway network. Other dependencies for the
|
|
# resources used in this example can be automatically determined.
|
|
#
|
|
|
|
keystone_tenant { 'admin':
|
|
ensure => present,
|
|
}
|
|
|
|
neutron_network { 'public':
|
|
ensure => present,
|
|
router_external => 'True',
|
|
project_name => 'admin',
|
|
}
|
|
|
|
neutron_subnet { 'public_subnet':
|
|
ensure => 'present',
|
|
cidr => '172.24.4.224/28',
|
|
network_name => 'public',
|
|
project_name => 'admin',
|
|
}
|
|
|
|
keystone_tenant { 'demo':
|
|
ensure => present,
|
|
}
|
|
|
|
neutron_network { 'private':
|
|
ensure => present,
|
|
project_name => 'demo',
|
|
}
|
|
|
|
neutron_subnet { 'private_subnet':
|
|
ensure => present,
|
|
cidr => '10.0.0.0/24',
|
|
network_name => 'private',
|
|
project_name => 'demo',
|
|
}
|
|
|
|
# Tenant-private router - assumes network namespace isolation
|
|
neutron_router { 'demo_router':
|
|
ensure => present,
|
|
project_name => 'demo',
|
|
gateway_network_name => 'public',
|
|
require => Neutron_subnet['public_subnet'],
|
|
}
|
|
|
|
neutron_router_interface { 'demo_router:private_subnet':
|
|
ensure => present,
|
|
}
|