Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iaas-ha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OCP-TOOLS
iaas-ha
Commits
7e4d6d38
Commit
7e4d6d38
authored
9 years ago
by
Alessandro Costantini
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev_foreman_network' into dev_foreman
parents
8c3e3e1e
5b2c1ff4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
manifests/profile/neutron/router.pp
+15
-15
15 additions, 15 deletions
manifests/profile/neutron/router.pp
manifests/role/network.pp
+17
-1
17 additions, 1 deletion
manifests/role/network.pp
with
32 additions
and
16 deletions
manifests/profile/neutron/router.pp
+
15
−
15
View file @
7e4d6d38
#Multiple external networks supported
class
iaas::profile::neutron::router
(
$public_interface
=
hiera
(
'iaa
s::public_interface
'
,
undef
)
,
$data_interface
=
hiera
(
'iaas::data
_interface
'
,
undef
)
,
$public_gateway
=
hiera
(
'iaa
s::public_gateway
'
,
undef
)
,
$public_interface
=
$iaas::param
s::public_interface
,
$data_interface
=
$iaas::params::admin
_interface
,
$public_gateway
=
$iaas::param
s::public_gateway
,
$external_device1
=
undef
,
$external_network1
=
hiera
(
'iaas::profile::neutron::external_network1'
,
undef
)
,
$external_gateway1
=
hiera
(
'iaas::profile::neutron::external_gateway1'
,
undef
)
,
$external_device1
=
$iaas::params::external_device1
,
$external_network1
=
undef
,
$external_gateway1
=
undef
,
$external_device2
=
undef
,
$external_network2
=
hiera
(
'iaas::profile::neutron::external_network2'
,
undef
)
,
$external_gateway2
=
hiera
(
'iaas::profile::neutron::external_gateway2'
,
undef
)
,
$external_device2
=
$iaas::params::external_device2
,
$external_network2
=
undef
,
$external_gateway2
=
undef
,
$neutron_password
=
hiera
(
'
iaas::p
rofile
::neutron
::
password
'
,
undef
)
,
$neutron_secret
=
hiera
(
'
iaas::p
rofile
::neutron
::
secret
'
,
undef
)
,
$neutron_password
=
$
iaas::p
arams
::neutron
_
password
,
$neutron_secret
=
$
iaas::p
arams
::neutron
_
secret
,
$region
=
hiera
(
'iaas::region'
,
undef
)
,
$region
=
iaas::params::region
,
#VIP1
$endpoint_main
=
hiera
(
'iaa
s::main_address
'
,
undef
)
,
$endpoint_main
=
$iaas::param
s::main_address
,
#VIP2
$endpoint_admin
=
hiera
(
'iaa
s::admin_address
'
,
undef
)
,
$endpoint_admin
=
$iaas::param
s::admin_address
,
$mtu
=
hiera
(
'iaas::profile::neutron::router::mtu'
,
1438
)
,
$mtu
=
'
1438
'
,
)
{
...
...
This diff is collapsed.
Click to expand it.
manifests/role/network.pp
+
17
−
1
View file @
7e4d6d38
class
iaas::role::network
(
##Network1 - external
$neutron_external_network1
=
'10.10.98.0/24'
,
$neutron_external_gateway1
=
'10.10.98.1'
,
##Network2 - external
$neutron_external_network2
=
'10.10.99.0/24'
,
$neutron_external_gateway2
=
'10.10.99.1'
,
$mtu
=
'1438'
,
){
# Base
class
{
'iaas::profile::base'
:
}
->
class
{
'iaas::profile::neutron::router'
:
}
class
{
'iaas::profile::neutron::router'
:
mtu
=>
$mtu
,
external_network1
=>
$neutron_external_network1
,
external_gateway1
=>
$neutron_external_gateway1
,
external_network2
=>
$neutron_external_network2
,
external_gateway2
=>
$neutron_external_gateway2
,
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment