mirror of
https://github.com/YunoHost-Apps/nomad_ynh.git
synced 2024-09-03 19:55:53 +02:00
specific driver-lxc config file
This commit is contained in:
parent
b818f49906
commit
818e7e1fde
4 changed files with 15 additions and 8 deletions
|
@ -39,11 +39,3 @@ client {
|
||||||
# determined dynamically.
|
# determined dynamically.
|
||||||
network_speed = 100
|
network_speed = 100
|
||||||
}
|
}
|
||||||
|
|
||||||
plugin "nomad-driver-lxc" {
|
|
||||||
config {
|
|
||||||
enabled = true
|
|
||||||
volumes_enabled = true
|
|
||||||
lxc_path = "/var/lib/lxc"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
7
conf/driver-lxc.hcl
Normal file
7
conf/driver-lxc.hcl
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
plugin "nomad-driver-lxc" {
|
||||||
|
config {
|
||||||
|
enabled = true
|
||||||
|
volumes_enabled = true
|
||||||
|
lxc_path = "/var/lib/lxc"
|
||||||
|
}
|
||||||
|
}
|
|
@ -186,6 +186,10 @@ then
|
||||||
chmod 400 "$config_path/client.hcl"
|
chmod 400 "$config_path/client.hcl"
|
||||||
chown $app:$app "$config_path/client.hcl"
|
chown $app:$app "$config_path/client.hcl"
|
||||||
|
|
||||||
|
ynh_add_config --template="../conf/driver-lxc.hcl" --destination="$config_path/driver-lxc.hcl"
|
||||||
|
chmod 400 "$config_path/driver-lxc.hcl"
|
||||||
|
chown $app:$app "$config_path/driver-lxc.hcl"
|
||||||
|
|
||||||
ynh_add_config --template="../conf/dnsmasq-lxd" --destination="/etc/dnsmasq.d/lxd"
|
ynh_add_config --template="../conf/dnsmasq-lxd" --destination="/etc/dnsmasq.d/lxd"
|
||||||
systemctl restart dnsmasq
|
systemctl restart dnsmasq
|
||||||
|
|
||||||
|
|
|
@ -149,6 +149,10 @@ then
|
||||||
ynh_add_config --template="../conf/client.hcl" --destination="$config_path/client.hcl"
|
ynh_add_config --template="../conf/client.hcl" --destination="$config_path/client.hcl"
|
||||||
chmod 400 "$config_path/client.hcl"
|
chmod 400 "$config_path/client.hcl"
|
||||||
chown $app:$app "$config_path/client.hcl"
|
chown $app:$app "$config_path/client.hcl"
|
||||||
|
|
||||||
|
ynh_add_config --template="../conf/driver-lxc.hcl" --destination="$config_path/driver-lxc.hcl"
|
||||||
|
chmod 400 "$config_path/driver-lxc.hcl"
|
||||||
|
chown $app:$app "$config_path/driver-lxc.hcl"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue