Installation fails if the root user requires a TTY to invoke sudo commands

Description

https://github.com/cloudify-cosmo/cloudify-manager/blob/4.3m5/packaging/riemann/files/usr/lib/systemd/system/cloudify-riemann.service

The Riemann service uses sudo in order to impersonate. If the OS requires a TTY for sudo commands, the Riemann service will fail to start.

We need to either:

  • Validate that the root user doesn't require tty; or

  • (Preferred approach) Use the User and Group keywords in the service definition, and move the PostStart elsewhere (Riemann needs to run as the riemann user, and the post-start needs to run as cfyuser).

Assignee

Isaac Shabtay

Reporter

Isaac Shabtay

Labels

None

Bug Type

None

Target Version

None

Severity

None

Sprint

None

Fix versions

Affects versions

Configure