Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
OrchestrationAPI
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor 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
Marius Raes
OrchestrationAPI
Commits
4bb4b210
Commit
4bb4b210
authored
3 years ago
by
Anders Slaaen
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of
https://git.gvk.idi.ntnu.no/mariurae/orchestrationapi
parents
56e204b1
c2dd9275
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/orchestrationLogic/HEAT/lb.yaml
+17
-14
17 additions, 14 deletions
source/orchestrationLogic/HEAT/lb.yaml
source/orchestrationLogic/HEAT/rdp_lb_member.yaml
+1
-1
1 addition, 1 deletion
source/orchestrationLogic/HEAT/rdp_lb_member.yaml
with
18 additions
and
15 deletions
source/orchestrationLogic/HEAT/lb.yaml
+
17
−
14
View file @
4bb4b210
# The code below is for the load balancer, it includes load balancing for
# rdp and sftp. The documentation for openstack resource types were used
# to know what resources and properties were necassary for the balancnig
# logic
heat_template_version
:
2018-08-31
parameters
:
project_name
:
project_name
:
# Name of the project
type
:
string
description
:
Navn på prosjektet
default
:
Prosjekt_X
heat_network_subnet
:
heat_network_subnet
:
# The network the balancer should be part of.
type
:
string
resources
:
rdp_balancer
:
rdp_balancer
:
# The acutal load balancer
type
:
OS::Octavia::LoadBalancer
properties
:
name
:
list_join
:
[
'
-'
,
[
{
get_param
:
project_name
},
'
RDP_LB'
]
]
vip_subnet
:
{
get_param
:
heat_network_subnet
}
list_join
:
[
'
-'
,
[
{
get_param
:
project_name
},
'
RDP_LB'
]
]
# Name of the load balancer combined with project name
vip_subnet
:
{
get_param
:
heat_network_subnet
}
# Assigning load balancer to subnet
rdp_listener
:
rdp_listener
:
# Listener
type
:
OS::Octavia::Listener
properties
:
loadbalancer
:
{
get_resource
:
rdp_balancer
}
protocol
:
TCP
protocol_port
:
3389
sftp_listener
:
sftp_listener
:
#Listener for sftp
type
:
OS::Octavia::Listener
properties
:
loadbalancer
:
{
get_resource
:
rdp_balancer
}
protocol
:
TCP
protocol_port
:
22
rdp_pool
:
rdp_pool
:
# Pool for rdp
type
:
OS::Octavia::Pool
properties
:
lb_algorithm
:
ROUND_ROBIN
...
...
@@ -39,7 +42,7 @@ resources:
listener
:
{
get_resource
:
rdp_listener
}
session_persistence
:
{
"
type"
:
SOURCE_IP
}
sftp_poolmember
:
sftp_poolmember
:
# File server is made pool member
type
:
OS::Octavia::PoolMember
properties
:
address
:
"
192.168.0.2"
...
...
@@ -47,7 +50,7 @@ resources:
subnet
:
{
get_param
:
heat_network_subnet
}
pool
:
{
get_resource
:
sftp_pool
}
sftp_pool
:
sftp_pool
:
# Pool for sftp
type
:
OS::Octavia::Pool
properties
:
lb_algorithm
:
ROUND_ROBIN
...
...
@@ -55,7 +58,7 @@ resources:
listener
:
{
get_resource
:
sftp_listener
}
session_persistence
:
{
"
type"
:
SOURCE_IP
}
health_monitor
:
health_monitor
:
# Health monitor for the load balancer
type
:
OS::Octavia::HealthMonitor
properties
:
delay
:
5
...
...
@@ -64,12 +67,12 @@ resources:
type
:
TCP
pool
:
{
get_resource
:
rdp_pool
}
lb_floating
:
lb_floating
:
# Floating IP for accessing load balancer
type
:
OS::Neutron::FloatingIP
properties
:
floating_network
:
ntnu-internal
lb_floating_association
:
lb_floating_association
:
# Associates the address to the load balancer
type
:
OS::Neutron::FloatingIPAssociation
properties
:
floatingip_id
:
{
get_resource
:
lb_floating
}
...
...
This diff is collapsed.
Click to expand it.
source/orchestrationLogic/HEAT/rdp_lb_member.yaml
+
1
−
1
View file @
4bb4b210
...
...
@@ -43,7 +43,7 @@ resources:
params
:
<RDPMembers>
:
{
get_param
:
RDP_members
}
poolmember
:
poolmember
:
# The virtual workstation made a pool member
type
:
OS::Octavia::PoolMember
properties
:
address
:
{
get_attr
:
[
server
,
first_address
]
}
...
...
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