From 964c089ddc1c9154e86be0d9e424ceb7c1de1981 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 1 Oct 2022 20:11:10 +0200 Subject: [PATCH] updated micromdm state --- states/micromdm/defaults.yaml | 1 + states/micromdm/micromdm.service.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/states/micromdm/defaults.yaml b/states/micromdm/defaults.yaml index 6c4c0c4..49f4fbc 100644 --- a/states/micromdm/defaults.yaml +++ b/states/micromdm/defaults.yaml @@ -8,6 +8,7 @@ micromdm: filerepo: "/var/lib/micromdm/repo" url: "https://mdm.acme.com" tls: "false" + port: 8081 api_key: 1234 command_webhook_url: "https://mdm.acme.com" version: "1.9.0" diff --git a/states/micromdm/micromdm.service.j2 b/states/micromdm/micromdm.service.j2 index 856d42a..f34876b 100644 --- a/states/micromdm/micromdm.service.j2 +++ b/states/micromdm/micromdm.service.j2 @@ -9,7 +9,7 @@ After=network-online.target User={{ micromdm.user.name }} Group={{ micromdm.group.name }} LimitNOFILE=65536 -ExecStart={{ micromdm.install_dir }}/micromdm/micromdm serve --config-path={{ micromdm.config_path }} -server-url={{ micromdm.url }} -api-key={{ micromdm.api_key }} -filerepo={{ micromdm.filerepo }} -tls={{ micromdm.tls }} -command-webhook-url={{ micromdm.command_webhook_url }} +ExecStart={{ micromdm.install_dir }}/micromdm/micromdm serve -http-addr :{{ micromdm.port }} --config-path={{ micromdm.config_path }} -server-url={{ micromdm.url }} -api-key={{ micromdm.api_key }} -filerepo={{ micromdm.filerepo }} -tls={{ micromdm.tls }} -command-webhook-url={{ micromdm.command_webhook_url }} KillMode=control-group Restart=on-failure