Use pipservice invocation directly from puppet nodefiles to install the custom app into /opt/$name to be run as and owned by root:root.
Code Block | ||||
---|---|---|---|---|
| ||||
pipservice: testapp: tag: 'master' |
Alternatively, use a module to install a pipservice.
Code Block | ||||
---|---|---|---|---|
| ||||
pipservice { 'testapp': tag => 'master', } |
Your app will be installed into /opt/testapp (or whatever name you pick) and enabled as a systemd service.
For syslog output, use asfpy's syslog.Printer class:
Code Block | ||
---|---|---|
| ||
import asfpy.syslog print = asfpy.syslog.Printer(stdout=True, identity='TestApp') # stdout flag will print to stdout AND syslog, if set. print("This will hit stdout AND syslog!") |
...