Skip to content

Commit a83e814

Browse files
committed
Move collect diretories into SITE home
Signed-off-by: Xavi Hernandez <[email protected]>
1 parent 71a7a3f commit a83e814

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

playbooks/roles/local.defaults/templates/config.yml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ config:
103103
{%- endfor +%}
104104
{%- endfor +%}
105105

106-
statedir: "{{ misc.host.statedir }}/sit_statedump"
107-
configdir: "{{ misc.host.configdir }}"
106+
statedir: "{{ home }}/statedump"
107+
configdir: "{{ home }}/config"

settings.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ os_info:
1313
distro: centos
1414
version: 9
1515

16-
misc:
17-
host:
18-
statedir: "/tmp"
19-
configdir: "/tmp/config"
20-
2116
paths:
2217
samba:
2318
etc: /etc/samba

site

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ function cmd_create() {
8989
cp "${SITE_ROOT}/requirements.txt" "${SITE_HOME}"
9090
cp "${SITE_ROOT}/settings.yml" "${SITE_HOME}"
9191

92+
mkdir "${SITE_HOME}/statedump"
93+
mkdir "${SITE_HOME}/config"
94+
9295
run pip install --upgrade -r requirements.txt
9396
}
9497

0 commit comments

Comments
 (0)