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
e4b8b7ae
Commit
e4b8b7ae
authored
Nov 24, 2015
by
Edward Zarecor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rebase conflict resolution
parent
a38d87ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
0 deletions
+55
-0
playbooks/roles/common_vars/defaults/main.yml
+1
-0
playbooks/roles/edx_service/defaults/main.yml
+24
-0
playbooks/roles/edx_service/tasks/main.yml
+30
-0
No files found.
playbooks/roles/common_vars/defaults/main.yml
View file @
e4b8b7ae
...
...
@@ -30,6 +30,7 @@ common_directories:
-
path
:
"
{{
COMMON_APP_DIR
}}"
-
path
:
"
{{
COMMON_BIN_DIR
}}"
-
path
:
"
{{
COMMON_CFG_DIR
}}"
-
path
:
"
{{
COMMON_CFG_DIR
}}/inventory.d"
-
path
:
"
{{
COMMON_LOG_DIR
}}"
owner
:
"
{{
common_log_user
}}"
group
:
"
{{
common_log_user
}}"
...
...
playbooks/roles/edx_service/defaults/main.yml
View file @
e4b8b7ae
...
...
@@ -16,6 +16,30 @@
#
edx_service_name
:
edx_service
edx_service_inventory
:
meta
:
configured_at
:
"
{{
ansible_date_time.iso8601_micro
}}"
configured_by
:
"
{{
ansible_user_id
}}"
service
:
edx_service_name
:
"
{{
edx_service_name
}}"
edx_service_home
:
"
{{
edx_service_home
}}"
edx_service_repos
:
"
{{
service_src_repos.function_output
}}"
edx_service_packages
:
"
{{
edx_service_packages
}}"
ansible
:
ansible_distribution
:
"
{{
ansible_distribution
}}"
ansible_distribution_release
:
"
{{
ansible_distribution_release
}}"
ansible_distribution_version
:
"
{{
ansible_distribution_version
}}"
ansible_product_version
:
"
{{
ansible_product_version
}}"
ansible_python_version
:
"
{{
ansible_python_version
}}"
ansible_selinux
:
"
{{
ansible_selinux
}}"
ansible_swapfree_mb
:
"
{{
ansible_swapfree_mb
}}"
ansible_system
:
"
{{
ansible_system
}}"
ansible_userspace_architecture
:
"
{{
ansible_userspace_architecture
}}"
ansible_userspace_bits
:
"
{{
ansible_userspace_bits
}}"
ansible_virtualization_role
:
"
{{
ansible_virtualization_role
}}"
ansible_virtualization_type
:
"
{{
ansible_virtualization_type
}}"
#
# OS packages
#
...
...
playbooks/roles/edx_service/tasks/main.yml
View file @
e4b8b7ae
...
...
@@ -183,6 +183,36 @@
-
install
-
install:code
-
name
:
build repo urls for inventory
debug
:
msg={{ item.PROTOCOL }}://{{ [ item.DOMAIN, item.REPO] | join("/") }}@{{ item.VERSION }}
with_items
:
edx_service_repos
register
:
output
tags
:
-
install
-
install:code
# Late bound variable referenced in defaults/main.yml
-
name
:
transform registered dicts to list of repos
util_map
:
function
:
zip_to_list
input
:
"
{{
output.results
}}"
args
:
[
'
msg'
]
register
:
service_src_repos
tags
:
-
install
-
install:code
-
name
:
write out inventory
template
:
>
src=edx/etc/inventory.d/inventory.yml.j2
dest={{ COMMON_CFG_DIR }}/inventory.d/{{ edx_service_name }}.yml
mode=0644
tags
:
-
deploy
-
install
-
install:code
when
:
edx_service_inventory is defined
-
name
:
get instance information
action
:
ec2_facts
tags
:
...
...
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