Skip to content

Commit

Permalink
Merge pull request #31 from AnsibleShipyard/fix-running-user
Browse files Browse the repository at this point in the history
Fix running user when using systemd.
  • Loading branch information
JasonGiedymin committed Oct 15, 2015
2 parents 8fecd12 + 231d0f2 commit 048536a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions templates/mesos-master.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions templates/mesos-slave.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 048536a

Please sign in to comment.