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
70dd3a62
Commit
70dd3a62
authored
Aug 04, 2015
by
Max Rothman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OPS-752: Allow cloud migrations to manage disk layouts
Includes mounting ephemeral disks
parent
51a2dc5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
playbooks/edx-east/edx_service.yml
+48
-0
No files found.
playbooks/edx-east/edx_service.yml
View file @
70dd3a62
...
...
@@ -248,4 +248,51 @@
volumes
:
"
{{
service_config.volumes
}}"
with_sequence
:
count={{create_instances|default(created_service.subnets.results|length) }}
when
:
not auto_scaling_service and potential_existing_instances.instances|length == 0
register
:
created_instances
-
name
:
Add new instances to host group
add_host
:
hostname
:
"
{{
item.1.public_ip
}}"
groups
:
created_instances
#might need ansible_ssh_private_key_file and/or ansible_ssh_user
volumes
:
"
{{
service_config.volumes
}}"
with_subelements
:
-
created_instances.results
-
instances
when
:
not auto_scaling_service and potential_existing_instances.instances|length == 0
-
name
:
Configure launched instances
hosts
:
created_instances
gather_facts
:
False
become
:
True
tasks
:
#Wait in this play so it can multiplex across all launched hosts
-
name
:
Wait for hosts to be ready
become
:
False
local_action
:
module
:
wait_for
host
:
"
{{
inventory_hostname
}}"
port
:
22
-
name
:
Gather facts
setup
:
-
name
:
Unmount disks mounted to the wrong place
mount
:
name
:
"
{{
item[0].mount
}}"
src
:
"
{{
item[0].device
}}"
fstype
:
"
{{
item[0].fstype
}}"
state
:
unmounted
when
:
item[1].device_name == item[0].device and item[1].mount != item[0].mount
with_nested
:
-
ansible_mounts
-
volumes
-
name
:
Mount ephemeral disks
mount
:
fstype
:
ext4
name
:
"
{{
item.mount
}}"
src
:
"
{{
item.device_name
}}"
state
:
mounted
with_items
:
volumes
\ 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