summaryrefslogtreecommitdiffstats
path: root/vagrant_support
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-04-25 22:20:13 +0200
committerGitHub <noreply@github.com>2018-04-25 22:20:13 +0200
commit993e754afdf6a94e128633be7261e27cfc384f2c (patch)
treef379e1cbef2de87216ce5054ae9e70e65ff5acf1 /vagrant_support
parent8ad45c8d3660e41fb2c195451a2cc3d3935781e1 (diff)
downloadbugzilla-993e754afdf6a94e128633be7261e27cfc384f2c.tar.gz
bugzilla-993e754afdf6a94e128633be7261e27cfc384f2c.tar.xz
no bug - fix permissions on log files and a few other things (#552)
Diffstat (limited to 'vagrant_support')
-rw-r--r--vagrant_support/apache.yml8
-rw-r--r--vagrant_support/checksetup.yml6
-rw-r--r--vagrant_support/playbook.yml6
3 files changed, 13 insertions, 7 deletions
diff --git a/vagrant_support/apache.yml b/vagrant_support/apache.yml
index c7159371c..5031187e3 100644
--- a/vagrant_support/apache.yml
+++ b/vagrant_support/apache.yml
@@ -10,5 +10,11 @@
service: name=httpd enabled=yes
when: LAZY == 0
+- name: ensure bugzilla.log has right permissions
+ file: path=/vagrant/logs/bugzilla.log state=touch owner=vagrant group=apache mode=0660
+
+- name: ensure bugzilla-json.log has right permissions
+ file: path=/vagrant/logs/bugzilla-json.log state=touch owner=vagrant group=apache mode=0660
+
- name: restart httpd
- service: name=httpd state=restarted
+ service: name=httpd state=restarted \ No newline at end of file
diff --git a/vagrant_support/checksetup.yml b/vagrant_support/checksetup.yml
index 580cc9dd9..455986148 100644
--- a/vagrant_support/checksetup.yml
+++ b/vagrant_support/checksetup.yml
@@ -22,6 +22,12 @@
mode: 0644
when: LAZY == 0
+- name: fix owner of /vagrant/template_cache
+ file: path=/vagrant/template_cache state=directory owner=vagrant group=apache recurse=yes
+
+- name: fix owner of /data
+ file: path=/data state=directory owner=vagrant group=apache recurse=yes
+
- name: run checksetup
become: false
shell: sg apache -c '/usr/local/bin/bmo-checksetup --no-templates'
diff --git a/vagrant_support/playbook.yml b/vagrant_support/playbook.yml
index b394f5592..5041cefcb 100644
--- a/vagrant_support/playbook.yml
+++ b/vagrant_support/playbook.yml
@@ -216,9 +216,3 @@
LAZY: 0
- import_tasks: devtools.yml
- - name: fix owner of /vagrant/template_cache
- file: path=/vagrant/template_cache state=directory owner=vagrant group=apache recurse=yes
-
- - name: fix owner of /data
- file: path=/data state=directory owner=vagrant group=apache recurse=yes
-