summaryrefslogtreecommitdiffstats
path: root/vagrant_support/checksetup.yml
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-04-24 21:51:44 +0200
committerDylan William Hardison <dylan@hardison.net>2017-04-24 21:51:44 +0200
commit0d714dcec16d9d8760f6656d9be0b29964d51343 (patch)
treeaf2217eddd3e50715aea0f1edaa399239b62705e /vagrant_support/checksetup.yml
parent356bfe73b9b25c9cdf86dd9e125f411824db74fc (diff)
downloadbugzilla-0d714dcec16d9d8760f6656d9be0b29964d51343.tar.gz
bugzilla-0d714dcec16d9d8760f6656d9be0b29964d51343.tar.xz
fix some recurring vagrant issues with perms, and copy .git into vm
Diffstat (limited to 'vagrant_support/checksetup.yml')
-rw-r--r--vagrant_support/checksetup.yml33
1 files changed, 14 insertions, 19 deletions
diff --git a/vagrant_support/checksetup.yml b/vagrant_support/checksetup.yml
index 5bac17662..6b54ef18d 100644
--- a/vagrant_support/checksetup.yml
+++ b/vagrant_support/checksetup.yml
@@ -1,8 +1,14 @@
---
-- name: bmo reconfiguration script
+- name: bmo checksetup script
template:
- src: bmo-reconfigure.j2
- dest: /usr/local/bin/bmo-reconfigure
+ src: bmo-checksetup.j2
+ dest: /usr/local/bin/bmo-checksetup
+ mode: 0755
+
+- name: bmo generate data script
+ template:
+ src: bmo-generate-data.j2
+ dest: /usr/local/bin/bmo-generate-data
mode: 0755
- name: bmo checksetup answers
@@ -13,22 +19,11 @@
group: vagrant
mode: 0644
-- 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: run checksetup
+ become: false
+ shell: sg apache -c '/usr/local/bin/bmo-checksetup'
-- name: configure bmo
+- name: generate data
become: false
- shell: sg apache -c '/usr/local/bin/bmo-reconfigure'
- when: bmo_configured|failed
+ shell: sg apache -c '/usr/local/bin/bmo-generate-data'
-- name: check bmo config
- shell: /usr/local/bin/bmo-configured
- when: bmo_configured|failed