Commit f37d1c3b by David Baumgold

Add release option to Vagrant playbooks

Activated using an environment variable
parent cb4d85a0
...@@ -7,12 +7,17 @@ ...@@ -7,12 +7,17 @@
openid_workaround: true openid_workaround: true
devstack: true devstack: true
disable_edx_services: true disable_edx_services: true
edx_platform_version: 'master'
mongo_enable_journal: false mongo_enable_journal: false
EDXAPP_NO_PREREQ_INSTALL: 0 EDXAPP_NO_PREREQ_INSTALL: 0
COMMON_MOTD_TEMPLATE: 'devstack_motd.tail.j2' COMMON_MOTD_TEMPLATE: 'devstack_motd.tail.j2'
COMMON_SSH_PASSWORD_AUTH: "yes" COMMON_SSH_PASSWORD_AUTH: "yes"
ENABLE_LEGACY_ORA: !!null ENABLE_LEGACY_ORA: !!null
# used for releases
edx_platform_version: '{{ OPENEDX_RELEASE | default("master") }}'
ora2_version: '{{ OPENEDX_RELEASE | default("master") }}'
certs_version: '{{ OPENEDX_RELEASE | default("master") }}'
forum_version: '{{ OPENEDX_RELEASE | default("master") }}'
xqueue_version: '{{ OPENEDX_RELEASE | default("master") }}'
vars_files: vars_files:
- "group_vars/all" - "group_vars/all"
roles: roles:
......
...@@ -5,11 +5,16 @@ ...@@ -5,11 +5,16 @@
vars: vars:
migrate_db: 'yes' migrate_db: 'yes'
openid_workaround: true openid_workaround: true
edx_platform_version: 'master'
EDXAPP_LMS_NGINX_PORT: '80' EDXAPP_LMS_NGINX_PORT: '80'
EDX_ANSIBLE_DUMP_VARS: true EDX_ANSIBLE_DUMP_VARS: true
CERTS_DOWNLOAD_URL: 'http://192.168.33.10:18090' CERTS_DOWNLOAD_URL: 'http://192.168.33.10:18090'
CERTS_VERIFY_URL: 'http://192.168.33.10:18090' CERTS_VERIFY_URL: 'http://192.168.33.10:18090'
# used for releases
edx_platform_version: '{{ OPENEDX_RELEASE | default("master") }}'
ora2_version: '{{ OPENEDX_RELEASE | default("master") }}'
certs_version: '{{ OPENEDX_RELEASE | default("master") }}'
forum_version: '{{ OPENEDX_RELEASE | default("master") }}'
xqueue_version: '{{ OPENEDX_RELEASE | default("master") }}'
vars_files: vars_files:
- "group_vars/all" - "group_vars/all"
roles: roles:
......
...@@ -102,8 +102,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| ...@@ -102,8 +102,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
ansible.playbook = "../../../playbooks/vagrant-devstack.yml" ansible.playbook = "../../../playbooks/vagrant-devstack.yml"
ansible.verbose = "vvvv" ansible.verbose = "vvvv"
ansible.extra_vars = {}
if ENV['ENABLE_LEGACY_ORA'] if ENV['ENABLE_LEGACY_ORA']
ansible.extra_vars = { ENABLE_LEGACY_ORA: true } ansible.extra_vars['ENABLE_LEGACY_ORA'] = true
end
if ENV['OPENEDX_RELEASE']
ansible.extra_vars['OPENEDX_RELEASE'] = ENV['OPENEDX_RELEASE']
end end
end end
end end
...@@ -39,9 +39,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| ...@@ -39,9 +39,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provision :ansible do |ansible| config.vm.provision :ansible do |ansible|
# point Vagrant at the location of your playbook you want to run # point Vagrant at the location of your playbook you want to run
ansible.playbook = "../../../playbooks/vagrant-fullstack.yml" ansible.playbook = "../../../playbooks/vagrant-fullstack.yml"
ansible.verbose = "vvvv"
# set extra-vars here instead of in the vagrant play so that # set extra-vars here instead of in the vagrant play so that
# they are written out to /edx/etc/server-vars.yml which can # they are written out to /edx/etc/server-vars.yml which can
# be used later when running ansible locally # be used later when running ansible locally
ansible.verbose = "vvvv" if ENV['OPENEDX_RELEASE']
ansible.extra_vars = { OPENEDX_RELEASE: ENV['OPENEDX_RELEASE']}
end
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment