Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mode arguments to be octal not decimal numbers #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tasks/database_root.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
- name: Create database root dir
file: path={{ database_root_dir }} state=directory mode=755 recurse=yes
file: path={{ database_root_dir }} state=directory mode=0755 recurse=yes
when: mysql_schema_enabled or winchester_schema_enabled or postgres_schema_enabled or (migration_pack | length > 0)
2 changes: 1 addition & 1 deletion tasks/influxdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# parsing I could never get it to escape the json correctly

- name: Write out the influxdb setup script
template: dest=/opt/influxdb/influxdb_setup.py owner=root group=root mode=750 src=influxdb_setup.py.j2
template: dest=/opt/influxdb/influxdb_setup.py owner=root group=root mode=0750 src=influxdb_setup.py.j2

- name: Run the influxdb setup script
command: /opt/influxdb/influxdb_setup.py
Expand Down
2 changes: 1 addition & 1 deletion tasks/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ©Copyright 2015 Hewlett-Packard Development Company, L.P.

- name: Copy mysql schema to host
template: dest={{monasca_schema_file}} owner=root group=root mode=640 src=mon_mysql.sql.j2
template: dest={{monasca_schema_file}} owner=root group=root mode=0640 src=mon_mysql.sql.j2
register: copy_result

- name: Apply mysql schema to db
Expand Down
2 changes: 1 addition & 1 deletion tasks/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
encoding="{{ postgres_encoding }}"

- name: Copy postgres schema to host
template: dest={{monasca_schema_file}} owner=postgres group=postgres mode=640 src=mon_postgres.sql.j2
template: dest={{monasca_schema_file}} owner=postgres group=postgres mode=0640 src=mon_postgres.sql.j2
register: copy_result

- name: Apply postgres schema to db
Expand Down
6 changes: 3 additions & 3 deletions tasks/vertica.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
when: create_database|failed

- name: Copy over vertica sql files
copy: src={{ item }} dest=/var/vertica/{{ item }} mode=660
copy: src={{ item }} dest=/var/vertica/{{ item }} mode=0660
with_items:
- mon_alarms_schema.sql
- mon_metrics_schema.sql
register: sql_file_status

- name: Copy over template vertica sql files
template: src={{ item }}.j2 dest=/var/vertica/{{ item }} mode=660
template: src={{ item }}.j2 dest=/var/vertica/{{ item }} mode=0660
with_items:
- mon_users_and_limits.sql
register: sql_template_status
Expand All @@ -40,6 +40,6 @@
when: sql_file_status|changed or sql_template_status|changed

- name: Create cron job to clean up old partitions
template: src=vertica-cleanup.j2 dest=/etc/cron.daily/vertica-cleanup mode=750
template: src=vertica-cleanup.j2 dest=/etc/cron.daily/vertica-cleanup mode=0750

# TODO: ENABLE SSL
2 changes: 1 addition & 1 deletion tasks/winchester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ©Copyright 2015 Hewlett-Packard Development Company, L.P.

- name: Copy winchester schema to host
template: dest={{winchester_schema_file}} owner=root group=root mode=640 src=winchester.sql.j2
template: dest={{winchester_schema_file}} owner=root group=root mode=0640 src=winchester.sql.j2
register: copy_result

- name: Apply winchester schema to mysql db
Expand Down