init olm role
This commit is contained in:
25
ansible/roles/olm/tasks/templates/config.json.j2
Normal file
25
ansible/roles/olm/tasks/templates/config.json.j2
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"endpoint": "{{ olm_endpoint }}",
|
||||
"id": "{{ olm_id }}",
|
||||
"secret": "{{ olm_secret }}",
|
||||
"org": "",
|
||||
"userToken": "",
|
||||
"mtu": 1280,
|
||||
"dns": "8.8.8.8",
|
||||
"upstreamDNS": [
|
||||
"192.168.1.2"
|
||||
],
|
||||
"interface": "olm",
|
||||
"logLevel": "{{ olm_loglevel }}",
|
||||
"enableApi": false,
|
||||
"httpAddr": "",
|
||||
"socketPath": "/var/run/olm.sock",
|
||||
"pingInterval": "3s",
|
||||
"pingTimeout": "5s",
|
||||
"disableHolepunch": false,
|
||||
"tlsClientCert": "",
|
||||
"overrideDNS": {{ olm_override_dns }},
|
||||
"tunnelDNS": {{ olm_tunnel_dns }},
|
||||
"disableRelay": false,
|
||||
"Version": "1.4.0"
|
||||
}
|
||||
12
ansible/roles/olm/tasks/templates/olm.service.j2
Normal file
12
ansible/roles/olm/tasks/templates/olm.service.j2
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Olm
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/olm
|
||||
Restart=always
|
||||
User=root
|
||||
Environment="CONFIG_FILE={{ olm_config_path }}/config.json"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user