Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
793c6828
Commit
793c6828
authored
Aug 07, 2015
by
Max Rothman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OPS-935: Add enhanced networking to cloud migrations
parent
a0bd5f24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
playbooks/edx-east/edx_service.yml
+34
-2
No files found.
playbooks/edx-east/edx_service.yml
View file @
793c6828
...
...
@@ -262,6 +262,7 @@
-
name
:
Add new instances to host group
add_host
:
hostname
:
"
{{
item.1.private_ip
}}"
instance_id
:
"
{{
item.1.id
}}"
groups
:
created_instances_group
#might need ansible_ssh_private_key_file and/or ansible_ssh_user
ansible_ssh_user
:
ubuntu
...
...
@@ -317,4 +318,35 @@
state
:
mounted
fstype
:
"
{{
item.fstype
|
default('ext4')
}}"
opts
:
"
{{
item.options
|
default('defaults')
}}"
with_items
:
volumes
\ No newline at end of file
with_items
:
volumes
#Currently only supported in non-asg mode, when auto_scaling_service==false
#<http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced-networking.html#enable-enhanced-networking>
#Done with local actions to avoid blocking on iteration
-
name
:
Enable enhanced networking
hosts
:
created_instances_group
gather_facts
:
False
tasks
:
-
name
:
Shut down instances
local_action
:
module
:
ec2
instance_ids
:
"
{{
instance_id
}}"
state
:
stopped
region
:
"
{{
aws_region
}}"
wait
:
yes
when
:
enhanced_networking ==
true
-
name
:
Set enhanced networking instance attribute
local_action
:
module
:
shell aws ec2 modify-instance-attribute --instance-id {{ instance_id }} --sriov-net-support simple
when
:
enhanced_networking ==
true
-
name
:
Start instances
local_action
:
module
:
ec2
instance_ids
:
"
{{
instance_id
}}"
state
:
running
region
:
"
{{
aws_region
}}"
wait
:
yes
when
:
enhanced_networking ==
true
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment