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
82e09834
Commit
82e09834
authored
Oct 08, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating for dns name using route53 module
parent
3783b745
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
3 deletions
+40
-3
playbooks/edx-east/edx_provision.yml
+2
-1
playbooks/roles/launch_ec2/tasks/main.yml
+38
-2
No files found.
playbooks/edx-east/edx_provision.yml
View file @
82e09834
...
...
@@ -11,7 +11,7 @@
region
:
"
{{
region
}}"
instance_tags
:
"
{{
instance_tags
}}"
size
:
"
{{
size
}}"
dns_name
:
"
{{
dns_name
}}"
-
name
:
Configure instance(s)
hosts
:
launched
...
...
@@ -19,3 +19,4 @@
gather_facts
:
True
tasks
:
-
debug
:
msg="test"
playbooks/roles/launch_ec2/tasks/main.yml
View file @
82e09834
...
...
@@ -14,14 +14,50 @@
size
:
"
{{
size
}}"
register
:
ec2
-
name
:
launch_instance | Add new instance to host group
-
name
:
launch_ec2 | Add DNS name
local_action
:
module
:
route53
command
:
create
zone
:
sandbox.edx.org
type
:
CNAME
ttyl
:
300
record
:
"
{{
dns_name
}}"
value
:
"
{{
item.public_dns_name
}}"
with_items
:
"
{{
ec2.instances
}}"
-
name
:
launch_ec2 | Add DNS name studio
local_action
:
module
:
route53
command
:
create
zone
:
sandbox.edx.org
type
:
CNAME
ttyl
:
300
record
:
"
studio.{{
dns_name
}}"
value
:
"
{{
item.public_dns_name
}}"
with_items
:
"
{{
ec2.instances
}}"
-
name
:
launch_ec2 | Add DNS name preview
local_action
:
module
:
route53
command
:
create
zone
:
sandbox.edx.org
type
:
CNAME
ttyl
:
300
record
:
"
preview.{{
dns_name
}}"
value
:
"
{{
item.public_dns_name
}}"
with_items
:
"
{{
ec2.instances
}}"
-
name
:
launch_ec2 | Add new instance to host group
local_action
:
>
add_host
hostname={{ item.public_ip }}
groupname=launched
with_items
:
"
{{
ec2.instances
}}"
-
name
:
launch_
instance
| Wait for SSH to come up
-
name
:
launch_
ec2
| Wait for SSH to come up
local_action
:
>
wait_for
host={{ item.public_dns_name }}
...
...
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