deric / puppet-mesos

Puppet module for managing Mesos nodes
https://forge.puppetlabs.com/deric/mesos
Apache License 2.0
69 stars 61 forks source link

Feature request (mesos-master) - systemd : After / Wants #80

Closed tamama closed 7 years ago

tamama commented 7 years ago

Hi there,

May I kindly request if we can have an option to define After and Wants for mesos-master systemd?

Reason: I want it to start after zookeeper-server.service openvpn-client@.service - the latter is because I want to bind everything to the vpn interface only.

Kind regards, Tamama

deric commented 7 years ago

Implemented in master branch. Something like:

class{'mesos::master':
  service_provider    => 'systemd',
  manage_service_file => true,
  systemd_wants       => 'network.target zookeeper-server.service',
  systemd_after       => 'network.target zookeeper-service.service',
}

should work.

tamama commented 7 years ago

Thank you so much. This works perfectly on my cluster.

Kind regards, Tamama