Skip to content

Commit

Permalink
Update readme with all possible variables.
Browse files Browse the repository at this point in the history
Update tags.
[skip ci]
  • Loading branch information
noplanman committed Jan 7, 2017
1 parent ce62eb9 commit c8017d5
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 11 deletions.
38 changes: 33 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ lutim_user: www-data
lutim_group: www-data
```

Set if Lutim should be kept up to date. (default: no)

```
lutim_keep_updated: no
```

There are a few mandatory and many optional values. Check all possible variables in `defaults/main.yml`.

```
Expand All @@ -30,21 +36,43 @@ lutim_working_dir: "/var/www/example.com"
lutim_listen: "http://127.0.0.1:8080"
lutim_contact: "admin@example.com"
lutim_secrets: ["array", "of", "random", "secrets"]
# Optional
lutim_theme: "default"
lutim_hosted_by: 'My super hoster <img src="http://hoster.example.com" alt="Hoster logo">'
lutim_broadcast_message: "Maintenance"
lutim_proxy: no
lutim_url_length: 8
lutim_crypto_key_length: 8
lutim_provis_step: 5
lutim_provisioning: 100
lutim_anti_flood_delay: 5
lutim_tweet_card_via: "@framasky"
lutim_max_file_size: 10485760
lutim_piwik_img: ""
lutim_hosted_by: ""
lutim_broadcast_message: ""
lutim_allowed_domains: []
lutim_default_delay: 0
lutim_max_delay: 0
lutim_always_encrypt: no
lutim_token_length: 24
lutim_prefix: "/"
lutim_db_path: "lutim.db"
lutim_thumbnail_size: 100
lutim_stats_day_num: 365
lutim_keep_ip_during: 365
lutim_max_total_size: 10*1024*1024*1024
lutim_policy_when_full: "warn"
lutim_delete_no_longer_viewed_files: 90
```

## Role Tags

Each part of the setup has a tag.

```
lutim.install
lutim.site
lutim.service
lutim:install
lutim:site
lutim:service
```

## Dependencies
Expand Down
6 changes: 3 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---

- include: install.yml
tags: lutim.install
tags: lutim:install
- include: site.yml
tags: lutim.site
tags: lutim:site
- include: service-{{ ansible_service_mgr }}.yml
tags: lutim.service
tags: lutim:service
2 changes: 1 addition & 1 deletion tasks/service-systemd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- name: Lutim | Copy systemd service config
template:
src: lib/systemd/system/lutim.service.j2
dest: "/lib/systemd/system/lutim.service"
dest: /lib/systemd/system/lutim.service
owner: root
group: root
mode: 0644
Expand Down
2 changes: 1 addition & 1 deletion tasks/service-sysvinit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- name: Lutim | Copy sysvinit service config
template:
src: etc/default/lutim.j2
dest: "/etc/default/lutim"
dest: /etc/default/lutim
owner: root
group: root
mode: 0644
Expand Down
2 changes: 1 addition & 1 deletion tasks/service-upstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- name: Lutim | Copy upstart service config
template:
src: etc/default/lutim.j2
dest: "/etc/default/lutim"
dest: /etc/default/lutim
owner: root
group: root
mode: 0644
Expand Down

0 comments on commit c8017d5

Please sign in to comment.