Skip to content

Commit

Permalink
move example folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Peterka committed Dec 10, 2023
1 parent f311806 commit 744f130
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 0 deletions.
7 changes: 7 additions & 0 deletions example-role/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Example role

Once you will need to add your own software into Lokal then you will
appreciate this folder. There is quite detailed [documentation](https://docs.lokal.network/) but it
is missing details on how to add your own roles.


9 changes: 9 additions & 0 deletions example-role/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version_yourapp: "13"

# Security does not matter much here because all connections
# to the database are blocked from outside. To get a security
# breach, you would need to install the security thread yourself
mysql_user_yourapp: "your_app"
mysql_password_yourapp: "your_app"
mysql_database_yourapp: "your_app"

7 changes: 7 additions & 0 deletions example-role/files/your-static-file.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This is just an example of a static file - can be a binary or anything
else that will get copied to the remote server and bound in a folder
into the docker container. Thus it will be accessible on predefined
path. This file will be copied with the {{ansible_user}} user and
priviledges. It will be mounted in the docker with {{uid}}:{{gid}}
permissions which are usually 1000:1000. We aim to run all containers
unpriviledged.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions example-role/templates/service.conf.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This is an example config file for your example services
# It can have any format because you use jinja2 templates

# Available variables are composed from following files:
# - roles/lokal/defaults/main.yml
# - roles/<your-service>/defaults/main.yml
# - hosts/<your-host-file>.yml

HOST: {{domain}}

MY_COSTOM_VARIABLE: 5
HELLO: "world"
Empty file.
Empty file.

0 comments on commit 744f130

Please sign in to comment.