Compare commits
4 commits
3d771daae7
...
f490ba26d0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f490ba26d0 | ||
|
|
8894e4dd23 | ||
|
|
abc8263e02 | ||
|
|
8bd6ffbc7a |
3 changed files with 12 additions and 2 deletions
|
|
@ -27,7 +27,6 @@ class Dect:
|
|||
return next(self.fp.extensions.extensions_by_type("temp")).num
|
||||
|
||||
def load_temp_extensions(self):
|
||||
current_temp_extension = 0
|
||||
used_temp_extensions = self.c.find_users(lambda u: u.num.startswith(self.temp_num_prefix))
|
||||
for u in used_temp_extensions:
|
||||
temp_num = u.num
|
||||
|
|
|
|||
|
|
@ -44,11 +44,17 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
systemd.services.kea-dhcp4-server.serviceConfig = {
|
||||
Restart = "on-failure";
|
||||
RestartSec = 3;
|
||||
};
|
||||
|
||||
services.kea.dhcp4 = {
|
||||
enable = true;
|
||||
settings = {
|
||||
interfaces-config = {
|
||||
interfaces = [ cfg.interface ];
|
||||
service-sockets-require-all = true;
|
||||
};
|
||||
option-def = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ in {
|
|||
User = "fieldpoc";
|
||||
Group = "fieldpoc";
|
||||
RuntimeDirectory = "fieldpoc";
|
||||
RuntimeDirectoryMode = "0755";
|
||||
RuntimeDirectoryMode = "0750";
|
||||
ConfigurationDirectory = "fieldpoc";
|
||||
StateDirectory = "fieldpoc";
|
||||
StateDirectoryMode = "0700";
|
||||
|
|
@ -98,6 +98,11 @@ in {
|
|||
CREATE ROLE fieldpoc WITH LOGIN PASSWORD 'fieldpoc' CREATEDB;
|
||||
CREATE DATABASE fieldpoc;
|
||||
GRANT ALL PRIVILEGES ON DATABASE fieldpoc TO fieldpoc;
|
||||
|
||||
\connect fieldpoc
|
||||
GRANT USAGE, CREATE ON SCHEMA public TO fieldpoc;
|
||||
|
||||
\connect postgres
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue