diff --git a/defaults/main.yml b/defaults/main.yml index 74b352d..20004da 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -16,6 +16,8 @@ mesos_quorum: "1" zookeeper_client_port: "2181" zookeeper_hostnames: "{{ mesos_hostname }}:{{ zookeeper_client_port }}" mesos_zookeeper_masters: "zk://{{ zookeeper_hostnames }}/mesos" +mesos_owner: root +mesos_group: root # Containerizer mesos_containerizers: "mesos" diff --git a/templates/mesos-master.service.j2 b/templates/mesos-master.service.j2 index bf4565d..daa2277 100644 --- a/templates/mesos-master.service.j2 +++ b/templates/mesos-master.service.j2 @@ -5,8 +5,8 @@ Description=mesos master [Service] Type=simple -User=mesos -Group=mesos +User={{ mesos_owner }} +Group={{ mesos_group }} ExecStart=/usr/bin/mesos-init-wrapper master TimeoutSec=300 diff --git a/templates/mesos-slave.service.j2 b/templates/mesos-slave.service.j2 index ba31d6e..0d23c33 100644 --- a/templates/mesos-slave.service.j2 +++ b/templates/mesos-slave.service.j2 @@ -5,8 +5,8 @@ Description=mesos slave [Service] Type=simple -User=mesos -Group=mesos +User={{ mesos_owner }} +Group={{ mesos_group }} ExecStart=/usr/bin/mesos-init-wrapper slave TimeoutSec=300