summaryrefslogtreecommitdiffstats
path: root/vagrant_support/checksetup.yml
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-04-14 19:05:03 +0200
committerDylan William Hardison <dylan@hardison.net>2017-04-14 19:10:20 +0200
commit4a130afba58836ebb2f70a31c88588ea46017009 (patch)
tree200816c2c7525e76228559e6b0ee81dc46980c14 /vagrant_support/checksetup.yml
parent480bbf368b485a6a0317b9356ce90b75201b3efa (diff)
downloadbugzilla-4a130afba58836ebb2f70a31c88588ea46017009.tar.gz
bugzilla-4a130afba58836ebb2f70a31c88588ea46017009.tar.xz
Bug 1328874 - Add Vagrantfile for production-like development VMs
Diffstat (limited to 'vagrant_support/checksetup.yml')
-rw-r--r--vagrant_support/checksetup.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/vagrant_support/checksetup.yml b/vagrant_support/checksetup.yml
new file mode 100644
index 000000000..658863914
--- /dev/null
+++ b/vagrant_support/checksetup.yml
@@ -0,0 +1,32 @@
+---
+- name: bmo reconfiguration script
+ template:
+ src: bmo-reconfigure.j2
+ dest: /usr/local/bin/bmo-reconfigure
+ mode: 0755
+
+- name: bmo checksetup answers
+ template:
+ src: checksetup_answers.j2
+ dest: /home/vagrant/checksetup_answers.txt
+ mode: 644
+
+- name: copy bmo config checker script
+ copy:
+ src: bmo-configured
+ dest: /usr/local/bin/bmo-configured
+ mode: 0755
+
+- name: 'check bmo config (failure is okay)'
+ shell: /usr/local/bin/bmo-configured
+ register: bmo_configured
+ ignore_errors: true
+
+- name: configure bmo
+ become: false
+ shell: sg apache -c '/usr/local/bin/bmo-reconfigure'
+ when: bmo_configured|failed
+
+- name: check bmo config
+ shell: /usr/local/bin/bmo-configured
+ when: bmo_configured|failed