mirror of https://gitlab.com/tildes/tildes.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
652 B
23 lines
652 B
{% from 'common.jinja2' import app_username %}
|
|
|
|
# Create the base directory for the wiki files and initialize a git repo
|
|
/var/lib/tildes-wiki:
|
|
file.directory:
|
|
- user: {{ app_username }}
|
|
- group: {{ app_username }}
|
|
- mode: 775
|
|
git.present:
|
|
- bare: False
|
|
- user: {{ app_username }}
|
|
|
|
# Create the initial (empty) commit in the new git repo
|
|
wiki-initial-commit:
|
|
cmd.run:
|
|
- names:
|
|
- git config user.name "Tildes"
|
|
- git config user.email "Tildes"
|
|
- git commit --allow-empty -m "Initial commit"
|
|
- cwd: /var/lib/tildes-wiki
|
|
- runas: {{ app_username }}
|
|
- onchanges:
|
|
- file: /var/lib/tildes-wiki
|