Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GAP Ansible Collection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
GÉANT Orchestration and Automation Team
GAP
GAP Ansible Collection
Merge requests
!200
FW role finishing
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
FW role finishing
feature/nat-697-sbp
into
develop
Overview
0
Commits
46
Pipelines
3
Changes
74
Merged
Aleksandr Kurbatov
requested to merge
feature/nat-697-sbp
into
develop
7 months ago
Overview
0
Commits
46
Pipelines
3
Changes
74
Expand
Added
deploy_fw
for testing. It will kick off if
is_standalone_run
var is set to
true
in role vars.
Protocol-lists: SROS name limit to 32 chars.
General cleanup
0
0
Merge request reports
Compare
develop
version 2
5140f474
7 months ago
version 1
9e064950
7 months ago
develop (base)
and
latest version
latest version
c626afe4
46 commits,
7 months ago
version 2
5140f474
45 commits,
7 months ago
version 1
9e064950
42 commits,
7 months ago
74 files
+
2132
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
74
Search (e.g. *.vue) (Ctrl+P)
geant/gap_ansible/playbooks/l3_core_service.yaml
0 → 100644
+
118
−
0
Options
-
name
:
Manage GEANT IP instance
hosts
:
all
gather_facts
:
false
tasks
:
-
name
:
Generate an ID for this run
ansible.builtin.set_fact
:
opid
:
"
{{
lookup('community.general.random_string',
length=18,
special=false)
}}"
-
name
:
Print the ID
ansible.builtin.debug
:
msg
:
"
{{
opid
}}"
-
name
:
Create a folder for all compiled output
ansible.builtin.file
:
path
:
"
/var/tmp/ansible_run_{{
opid
}}"
state
:
directory
mode
:
'
0755'
delegate_to
:
localhost
-
name
:
Import group_vars/all
ansible.builtin.include_vars
:
dir
:
/opt/ansible_inventory/group_vars/all
-
name
:
Import standard variables for "{{ subscription.product.product_type }}/{{ subscription.l3_core_service_type | replace(' ', '_') }}"
ansible.builtin.include_vars
:
dir
:
/opt/ansible_inventory/geant_services/{{ subscription.product.product_type }}/{{ subscription.l3_core_service_type | replace(' ', '_') }}
-
name
:
Import partner specific variables for "{{ partner_name | upper }}"
ansible.builtin.include_vars
:
dir
:
/opt/ansible_inventory/geant_partners/{{ partner_name | upper }}
-
name
:
Compile SBP-related config
when
:
object == 'sbp'
block
:
-
name
:
Include Filter role
ansible.builtin.include_role
:
name
:
fw_filters
loop
:
"
{{
subscription.l3_core_service.ap_list
}}"
loop_control
:
loop_var
:
ap
-
name
:
Include SBP role
ansible.builtin.include_role
:
name
:
sbp
loop
:
"
{{
subscription.l3_core_service.ap_list
}}"
loop_control
:
loop_var
:
ap
# - name: Compile SBP config
# block:
# - name: Include SBP role
# ansible.builtin.include_role:
# name: sbp
# loop:
# "{{ subscription.l3_core_service.ap_list }}"
# loop_control:
# loop_var: ap
#
-
name
:
Compile BGP-related config
when
:
object == "bgp"
block
:
-
name
:
Include Prefix-list role
ansible.builtin.include_role
:
name
:
prefix_lists
loop
:
"
{{
subscription.l3_core_service.ap_list
}}"
loop_control
:
loop_var
:
ap
-
name
:
Include BGP policies
ansible.builtin.include_role
:
name
:
policy_options
loop
:
"
{{
subscription.l3_core_service.ap_list
}}"
loop_control
:
loop_var
:
ap
-
name
:
Include BGP session
ansible.builtin.include_role
:
name
:
bgp_config
loop
:
"
{{
subscription.l3_core_service.ap_list
}}"
loop_control
:
loop_var
:
ap
# - name: Compile BGP policies
# block:
# - name: Include BGP policies
# ansible.builtin.include_role:
# name: policy_options
# loop:
# "{{ subscription.l3_core_service.ap_list }}"
# loop_control:
# loop_var: ap
#
# - name: Compile BGP sesssions config
# block:
# - name: Include BGP session
# ansible.builtin.include_role:
# name: bgp_config
# loop:
# "{{ subscription.l3_core_service.ap_list }}"
# loop_control:
# loop_var: ap
-
name
:
Deploy
# when: verb == deploy
block
:
-
name
:
Include deployment role
ansible.builtin.include_role
:
name
:
deploy_service_config
loop
:
"
{{
subscription.l3_core_service.ap_list
}}"
loop_control
:
loop_var
:
ap
Loading