From fac8b6b936e6a04c87e8e14113a80f3ab4b14bdc Mon Sep 17 00:00:00 2001 From: Tim Goodaire Date: Tue, 24 May 2016 11:40:14 -0400 Subject: [PATCH] Rename runtime_dir to data_dir --- postgres/defaults.yaml | 2 +- postgres/init.sls | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/postgres/defaults.yaml b/postgres/defaults.yaml index 3c64ece..703a38e 100644 --- a/postgres/defaults.yaml +++ b/postgres/defaults.yaml @@ -7,7 +7,7 @@ postgres: python: python-psycopg2 service: postgresql conf_dir: /var/lib/pgsql/data - runtime_dir: /var/lib/pgsql/data + data_dir: /var/lib/pgsql/data create_cluster: False init_db: False version: 9.1 diff --git a/postgres/init.sls b/postgres/init.sls index 97d99fa..b98441a 100644 --- a/postgres/init.sls +++ b/postgres/init.sls @@ -32,8 +32,8 @@ postgresql-initdb: cmd.run: - cwd: / - user: {{ postgres.initdb_user }} - - name: {{ postgres.commands.initdb }} {{ postgres.initdb_args }} -D {{ postgres.runtime_dir }} - - unless: test -f {{ postgres.runtime_dir }}/PG_VERSION + - name: {{ postgres.commands.initdb }} {{ postgres.initdb_args }} -D {{ postgres.data_dir }} + - unless: test -f {{ postgres.data_dir }}/PG_VERSION - env: LC_ALL: C.UTF-8 {% endif %}