Skip to content

Commit 029e178

Browse files
committed
Fix sqlite permissions
The sqlite permissions should be the same as the graphite/apache process.
1 parent 3ea98a1 commit 029e178

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ansible.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[defaults]
2+
allow_world_readable_tmpfiles=True

roles/graphite/tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
when: ansible_os_family == 'Debian'
1717

1818

19-
- name: Create PIP requirements file
19+
- name: Create PIP requirements file
2020
copy: src=opt/graphite/requirements.txt dest=/tmp/requirements.txt
2121

2222

@@ -68,9 +68,9 @@
6868

6969

7070
- name: Setup sqlitedb
71-
command: /usr/bin/python manage.py syncdb --noinput chdir=/opt/graphite/webapp/graphite
72-
creates=/opt/graphite/storage/graphite.db
71+
command: /usr/bin/python manage.py syncdb --noinput chdir=/opt/graphite/webapp/graphite creates=/opt/graphite/storage/graphite.db
7372
register: sqlite_setup
73+
become_user: "{{ apache_user }}"
7474

7575

7676
- name: Wait for sqlitedb to be setup

0 commit comments

Comments
 (0)