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
4dd2d885
Commit
4dd2d885
authored
Mar 13, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #873 from edx/feanil/update_deployer_play
Feanil/update deployer play
parents
a8e3c1b4
892d7426
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
168 deletions
+18
-168
playbooks/edx-east/deployer.yml
+5
-4
playbooks/edx-east/edx_dev2.yml
+0
-72
playbooks/edx-east/edx_feanilsandbox.yml
+0
-79
playbooks/roles/jenkins_admin/templates/edx/var/jenkins/jobs/build-ami/config.xml.j2
+13
-13
No files found.
playbooks/edx-east/deployer.yml
View file @
4dd2d885
# ansible-playbook -c ssh -vvvv --user=ubuntu -i ec2.py deployer.yml -e "@
gh_users.yml" -e "@/path/to/secure/ansible/vars/hotg.yml" -e "@/path/to/configuration-secure/ansible/vars/common/commo
n.yml" --limit="tag_aws_cloudformation_stack-name_<admin_stack_name>"
# ansible-playbook -c ssh -vvvv --user=ubuntu -i ec2.py deployer.yml -e "@
/path/to/secure/ansible/vars/edx_admi
n.yml" --limit="tag_aws_cloudformation_stack-name_<admin_stack_name>"
# You will need to create a gh_users.yml that contains the github names of users that should have login access to the machines.
# You will need to create a gh_users.yml that contains the github names of users that should have login access to the machines.
# Setup user login on the bastion
# Setup user login on the bastion
-
name
:
Configure Bastion
-
name
:
Configure Bastion
hosts
:
tag_
role
_bastion
hosts
:
tag_
play
_bastion
sudo
:
True
sudo
:
True
gather_facts
:
False
gather_facts
:
False
roles
:
roles
:
-
user
-
user
# Configure an admin instance with jenkins and asgard.
# Configure an admin instance with jenkins and asgard.
-
name
:
Configure instance(s)
-
name
:
Configure instance(s)
hosts
:
tag_
role
_admin
hosts
:
tag_
play
_admin
sudo
:
True
sudo
:
True
gather_facts
:
True
gather_facts
:
True
roles
:
roles
:
-
common
-
common
-
jenkins_
master
-
jenkins_
admin
-
hotg
-
hotg
-
newrelic
playbooks/edx-east/edx_dev2.yml
deleted
100644 → 0
View file @
a8e3c1b4
---
-
hosts
:
tag_aws_cloudformation_stack-name_dev2:&tag_group_bastion
sudo
:
True
vars_files
:
-
"
{{
secure_dir
}}/vars/dev/dev2.yml"
-
"
{{
secure_dir
}}/vars/common/common.yml"
-
"
{{
secure_dir
}}/vars/users.yml"
roles
:
-
common
-
hosts
:
tag_aws_cloudformation_stack-name_dev2:&tag_group_edxapp
sudo
:
True
vars_files
:
-
"
{{
secure_dir
}}/vars/dev/dev2.yml"
-
"
{{
secure_dir
}}/vars/common/common.yml"
-
"
{{
secure_dir
}}/vars/users.yml"
roles
:
-
datadog
-
role
:
nginx
nginx_sites
:
-
lms
-
cms
-
lms-preview
nginx_default_sites
:
-
lms
-
role
:
'
edxapp'
EDXAPP_LMS_NGINX_PORT
:
80
EDXAPP_CMS_NGINX_PORT
:
80
edxapp_lms_env
:
'
lms.envs.load_test'
edx_platform_version
:
'
sarina/install-datadog'
-
hosts
:
tag_aws_cloudformation_stack-name_dev2:&tag_group_worker
sudo
:
True
vars_files
:
-
"
{{
secure_dir
}}/vars/dev/dev2.yml"
-
"
{{
secure_dir
}}/vars/common/common.yml"
-
"
{{
secure_dir
}}/vars/users.yml"
roles
:
-
datadog
-
role
:
nginx
nginx_sites
:
-
lms
-
cms
-
lms-preview
nginx_default_sites
:
-
lms
-
role
:
'
edxapp'
edxapp_lms_env
:
'
lms.envs.load_test'
celery_worker
:
True
edx_platform_version
:
'
sarina/install-datadog'
#- hosts: tag_aws_cloudformation_stack-name_dev2:&tag_group_xserver
# sudo: True
# vars_files:
# - "{{ secure_dir }}/vars/dev/dev2.yml"
# - "{{ secure_dir }}/vars/users.yml"
# roles:
# - nginx
# - xserver
#- hosts: tag_aws_cloudformation_stack-name_dev2:&tag_group_rabbitmq
# serial: 1
# sudo: True
# vars_files:
# - "{{ secure_dir }}/vars/dev/dev2.yml"
# - "{{ secure_dir }}/vars/users.yml"
# roles:
# - rabbitmq
#- hosts: tag_aws_cloudformation_stack-name_dev2:&tag_group_xqueue
# sudo: True
# vars_files:
# - "{{ secure_dir }}/vars/dev/dev2.yml"
# - "{{ secure_dir }}/vars/users.yml"
# roles:
# - nginx
# - xqueue
playbooks/edx-east/edx_feanilsandbox.yml
deleted
100644 → 0
View file @
a8e3c1b4
---
-
hosts
:
tag_aws_cloudformation_stack-name_feanilsandbox:&tag_role_edxapp
sudo
:
True
vars_files
:
-
"
{{
secure_dir
}}/vars/dev/feanilsandbox.yml"
-
"
{{
secure_dir
}}/vars/common/common.yml"
-
"
{{
secure_dir
}}/vars/users.yml"
roles
:
-
datadog
-
role
:
nginx
nginx_sites
:
-
lms
-
cms
-
lms-preview
nginx_default_sites
:
-
lms
-
role
:
'
edxapp'
edxapp_lms_env
:
'
lms.envs.load_test'
edx_platform_version
:
'
release'
-
splunkforwarder
-
hosts
:
tag_aws_cloudformation_stack-name_feanilsandbox:&tag_role_worker
sudo
:
True
vars_files
:
-
"
{{
secure_dir
}}/vars/dev/feanilsandbox.yml"
-
"
{{
secure_dir
}}/vars/common/common.yml"
-
"
{{
secure_dir
}}/vars/users.yml"
roles
:
-
datadog
-
role
:
nginx
nginx_sites
:
-
lms
-
cms
-
lms-preview
nginx_default_sites
:
-
lms
-
role
:
'
edxapp'
edxapp_lms_env
:
'
lms.envs.load_test'
celery_worker
:
True
edx_platform_version
:
'
release'
-
splunkforwarder
-
hosts
:
tag_aws_cloudformation_stack-name_feanilsandbox:&tag_role_xserver
sudo
:
True
vars_files
:
-
"
{{
secure_dir
}}/vars/dev/feanilsandbox.yml"
-
"
{{
secure_dir
}}/vars/users.yml"
roles
:
-
role
:
nginx
nginx_sites
:
-
xserver
-
xserver
-
splunkforwarder
-
hosts
:
tag_aws_cloudformation_stack-name_feanilsandbox:&tag_role_rabbitmq
serial
:
1
sudo
:
True
vars_files
:
-
"
{{
secure_dir
}}/vars/dev/feanilsandbox.yml"
-
"
{{
secure_dir
}}/vars/users.yml"
roles
:
-
rabbitmq
-
splunkforwarder
-
hosts
:
tag_aws_cloudformation_stack-name_feanilsandbox:&tag_role_xqueue
sudo
:
True
vars_files
:
-
"
{{
secure_dir
}}/vars/dev/feanilsandbox.yml"
-
"
{{
secure_dir
}}/vars/users.yml"
roles
:
-
role
:
nginx
nginx_sites
:
-
xqueue
-
xqueue
-
splunkforwarder
-
hosts
:
tag_aws_cloudformation_stack-name_feanilsandbox:&tag_role_mongo
sudo
:
True
vars_files
:
-
"
{{
secure_dir
}}/vars/dev/feanilsandbox.yml"
-
"
{{
secure_dir
}}/vars/users.yml"
roles
:
-
role
:
'
mongo'
mongo_clustered
:
true
playbooks/roles/jenkins_admin/templates/edx/var/jenkins/jobs/build-ami/config.xml.j2
View file @
4dd2d885
...
@@ -155,43 +155,43 @@
...
@@ -155,43 +155,43 @@
<hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>
#!/bin/bash -x
<command>
#!/bin/bash -x
if [[(
"
$play
"
==
""
)]]; then
if [[(
"
\
$play
"
==
""
)]]; then
echo
"
No Play Specified. Nothing to Do.
"
echo
"
No Play Specified. Nothing to Do.
"
exit 0
exit 0
fi
fi
if [ ! -d $WORKSPACE/virtualenv ]; then
if [ ! -d
\
$WORKSPACE/virtualenv ]; then
virtualenv --system-site-packages $WORKSPACE/virtualenv
virtualenv --system-site-packages
\
$WORKSPACE/virtualenv
fi
fi
export PYTHONUNBUFFERED=1
export PYTHONUNBUFFERED=1
export PIP_DOWNLOAD_CACHE=$WORKSPACE/pip-cache
export PIP_DOWNLOAD_CACHE=
\
$WORKSPACE/pip-cache
. $WORKSPACE/virtualenv/bin/activate
.
\
$WORKSPACE/virtualenv/bin/activate
cd configuration
cd configuration
pip install -r requirements.txt
pip install -r requirements.txt
cd util/vpc-tools/
cd util/vpc-tools/
echo
"
$refs
"
>
/var/tmp/
$BUILD_ID-refs.yml
echo
"
\$refs
"
>
/var/tmp/\
$BUILD_ID-refs.yml
cat /var/tmp/$BUILD_ID-refs.yml
cat /var/tmp/
\
$BUILD_ID-refs.yml
echo
"
$vars
"
>
/var/tmp/
$BUILD_ID-extra-vars.yml
echo
"
\$vars
"
>
/var/tmp/\
$BUILD_ID-extra-vars.yml
cat /var/tmp/$BUILD_ID-extra-vars.yml
cat /var/tmp/
\
$BUILD_ID-extra-vars.yml
python -u abbey.py -p
$play -t c1.medium -d $deployment -e $environment -i {{jenkins_home}}/.ssh/id_rsa -b $base_ami --vars /var/tmp/$BUILD_ID-extra-vars.yml --refs /var/tmp/$BUILD_ID-refs.yml -j $release_id --mongo-uri $mongo_uri --mongo-deployment-collection $deployment --mongo-db devops --configuration-version $configuration --configuration-secure-version
$configuration_secure -k {{JENKINS_ADMIN_EC2_KEY}} --configuration-secure-repo
"
{{JENKINS_ADMIN_CONFIGURATION_SECURE_REPO}}
"
</command>
python -u abbey.py -p
\$play -t c1.medium -d \$deployment -e \$environment -i {{jenkins_home}}/.ssh/id_rsa -b \$base_ami --vars /var/tmp/\$BUILD_ID-extra-vars.yml --refs /var/tmp/\$BUILD_ID-refs.yml -j \$release_id --mongo-uri \$mongo_uri --mongo-deployment-collection \$deployment --mongo-db devops --configuration-version \$configuration --configuration-secure-version \
$configuration_secure -k {{JENKINS_ADMIN_EC2_KEY}} --configuration-secure-repo
"
{{JENKINS_ADMIN_CONFIGURATION_SECURE_REPO}}
"
</command>
</hudson.tasks.Shell>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>
#!/bin/bash -x
<command>
#!/bin/bash -x
if [[(
"
$play
"
==
""
)]]; then
if [[(
"
\
$play
"
==
""
)]]; then
echo
"
No Play Specified. Nothing to Do.
"
echo
"
No Play Specified. Nothing to Do.
"
exit 0
exit 0
fi
fi
rm /var/tmp/$BUILD_ID-extra-vars.yml
rm /var/tmp/
\
$BUILD_ID-extra-vars.yml
rm /var/tmp/$BUILD_ID-refs.yml
</command>
rm /var/tmp/
\
$BUILD_ID-refs.yml
</command>
</hudson.tasks.Shell>
</hudson.tasks.Shell>
</builders>
</builders>
<publishers/>
<publishers/>
...
...
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