diff --git a/tasks/database_root.yml b/tasks/database_root.yml index b20e9bc..acaf77b 100644 --- a/tasks/database_root.yml +++ b/tasks/database_root.yml @@ -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) diff --git a/tasks/influxdb.yml b/tasks/influxdb.yml index 1a2c65a..b72e9c2 100644 --- a/tasks/influxdb.yml +++ b/tasks/influxdb.yml @@ -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 diff --git a/tasks/mysql.yml b/tasks/mysql.yml index 8b57785..26ca3c1 100644 --- a/tasks/mysql.yml +++ b/tasks/mysql.yml @@ -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 diff --git a/tasks/postgres.yml b/tasks/postgres.yml index fe0b82d..f2da93a 100644 --- a/tasks/postgres.yml +++ b/tasks/postgres.yml @@ -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 diff --git a/tasks/vertica.yml b/tasks/vertica.yml index 76123c5..fa2cf67 100644 --- a/tasks/vertica.yml +++ b/tasks/vertica.yml @@ -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 @@ -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 diff --git a/tasks/winchester.yml b/tasks/winchester.yml index fc8331d..d511ddf 100644 --- a/tasks/winchester.yml +++ b/tasks/winchester.yml @@ -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