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
OpenEdx
configuration
Commits
a3f92eca
Commit
a3f92eca
authored
Aug 06, 2015
by
Max Rothman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deal with disks with no fs and make the ec2_lookup failsafe work
parent
a6aa82ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
playbooks/edx-east/edx_service.yml
+10
-11
No files found.
playbooks/edx-east/edx_service.yml
View file @
a3f92eca
...
...
@@ -225,20 +225,19 @@
with_items
:
metric_alarms
when
:
auto_scaling_service
-
name
:
See if instances already exist
local_action
:
module
:
"
ec2_lookup"
region
:
"
{{
aws_region
}}"
tags
:
"
{{
asg_instance_tags
}}"
register
:
potential_existing_instances
-
name
:
Transform tags to the format ec2 module expects
-
name
:
Transform tags into dict format for the modules that expect it
util_map
:
function
:
zip_to_dict
input
:
"
{{
asg_instance_tags
}}"
args
:
[
'
key'
,
'
value'
]
register
:
reformatted_asg_instance_tags
-
name
:
See if instances already exist
ec2_lookup
:
region
:
"
{{
aws_region
}}"
tags
:
"
{{
reformatted_asg_instance_tags.function_output
}}"
register
:
potential_existing_instances
#This task will create the number of instances requested (create_instances parameter).
# By default, it will create instances equaling the number of subnets specified.
#Modulo logic explained: The subnet specified will be the instance number modulo the number of subnets,
...
...
@@ -290,13 +289,13 @@
-
name
:
Gather facts
setup
:
-
name
:
Unmount
disks mounted to the wrong place
-
name
:
Unmount
all specified disks that are currently mounted
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
state
:
absent
when
:
item[1].device_name == item[0].device
with_nested
:
-
ansible_mounts
-
volumes
...
...
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