Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Add inverted / negative condition for X-Fleet options #1368

Open
kayrus opened this issue Oct 6, 2015 · 2 comments
Open

Add inverted / negative condition for X-Fleet options #1368

kayrus opened this issue Oct 6, 2015 · 2 comments

Comments

@kayrus
Copy link
Contributor

kayrus commented Oct 6, 2015

Like it is done in systemd

With ConditionPathExists= a file existence condition is checked before a unit is started. If the specified absolute path name does not exist, the condition will fail. If the absolute path name passed to ConditionPathExists= is prefixed with an exclamation mark ("!"), the test is negated, and the unit is only started if the path does not exist.
  • MachineID=!id - run globally, but not on MachineID
  • MachineMetadata=!metadata - run globally, but not on machine with specified metadata

Or probably implement additional options (like Conflicts!=MachineOf):

  • ConflictsMachineID
  • ConflictsMachineMetadata
@pmoust
Copy link

pmoust commented Feb 18, 2016

Very interested in this.

@brandonkruse
Copy link

This would be great functionality

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants