]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1597524 - vagrant up failed, saying table 'bugs_bmo.profiles' doesn't exist
authordklawren <dklawren@users.noreply.github.com>
Wed, 4 Dec 2019 19:02:26 +0000 (14:02 -0500)
committerGitHub <noreply@github.com>
Wed, 4 Dec 2019 19:02:26 +0000 (14:02 -0500)
vagrant_support/apache.yml
vagrant_support/checksetup_answers.j2
vagrant_support/devtools.yml
vagrant_support/jobqueue.yml
vagrant_support/playbook.yml

index 2d65965ab342896e1f9aef422ba36466e3143e84..90cfa9c6bcab7751442c9c51961f11feff66d315 100644 (file)
@@ -10,6 +10,9 @@
   service: name=httpd enabled=no
   when: LAZY == 0
 
+- name: create logs directory
+  file: path=/vagrant/logs state=directory owner=vagrant group=apache mode=770
+
 - name: ensure bugzilla.log has right permissions
   file: path=/vagrant/logs/bugzilla.log state=touch owner=vagrant group=apache mode=0660
 
index 75505e7518d767965451f968bbea44587b79e244..0322ad129ee0ff9f13fe2b8909d0c61cfd745c85 100644 (file)
@@ -6,6 +6,7 @@ $answer{'ADMIN_REALNAME'}       = 'Vagrant User';
 $answer{'NO_PAUSE'}             = 1;
 $answer{'size_limit'}           = 750000;
 $answer{'bugzilla_version'}     = '1';
+$answer{'canonical_urlbase'}    = "http://{{WEB_HOSTNAME}}/";
 $answer{'create_htaccess'}      = '1';
 $answer{'db_check'}             = 1;
 $answer{'db_driver'}            = 'mysql';
index 0034c9371d7e2d0d848a5da875cae687b5b38a5a..c3829fca68c99e30b90d0c443fc1dc4c67f9678b 100644 (file)
 - name: copy re.pl
   copy: src=re.pl dest=/usr/local/bin/re.pl mode=0755
 
-- name: copy start_morbo
+- name: fix start_morbo perms
+  file: path=/vagrant/scripts/start_morbo mode=0755
+
+- name: link start_morbo
   file: path=/usr/local/bin/start_morbo src=/vagrant/scripts/start_morbo state=link force=true
 
 - name: copy use-nytprof
index aeec65cbc7c8e23e9ac6cb5e5da7881ec3b76bd0..886f4e3ef8a43c5bc72139c4582f5d0f6eaa008e 100644 (file)
@@ -1,3 +1,8 @@
+- name: fix jobqueue perms
+  file:
+    path: /vagrant/jobqueue.pl
+    mode: 0750
+
 - name: install job queue
   command: /vagrant/jobqueue.pl install chdir=/vagrant creates=/etc/init.d/bugzilla-queue
 
@@ -9,13 +14,8 @@
       BUGZILLA=/vagrant
       USER=vagrant
 
-- name: fix jobqueue perms
-  file:
-    path: /vagrant/jobqueue.pl
-    mode: 0750
-
 - name: enable jobqueue
   service: name=bugzilla-queue enabled=yes
 
 - name: restart jobqueue
-  service: name=bugzilla-queue state=restarted
+  command: service bugzilla-queue restart
index cb97512f013994b59fa44251b75f3cfd6d427315..2de67b77be4c96abd7507f16126808a7b9ca01b4 100644 (file)
@@ -20,7 +20,7 @@
         - python2-ndg_httpsclient
 
     - name: link sphinx
-      command: ln -s /usr/bin/sphinx-1.0-{{ item }} /usr/bin/sphinx-{{ item }} creates=/usr/bin/sphinx-{{ item }}
+      file: src=/usr/bin/sphinx-1.0-{{ item }} dest=/usr/bin/sphinx-{{ item }} state=link force=true
       with_items:
         - autogen
         - build
       shell: |-
         mysqladmin -u root create bugs_bmo
         mysql -u root -e 'GRANT ALL ON bugs_bmo.* TO bugs@"{{WEB_IP}}" IDENTIFIED BY "bugs"'
-      when: bugs_bmo|failed
+      when: bugs_bmo is failed
 
 - hosts: web
   become: true