Add puppet installation instructions
- Dominant language
- Python
- Stars
- 826
- Forks
- 79
- PR merge metrics
- No merged PRs in 30d
Description
Alongisde k8s, systemd etc - add instructions for Puppet.
I already started hacking something in the past, but didn't complete it:
```
class gprofiler(
# path gProfiler will run from
String $gprofiler_path = "/tmp/gprofiler",
# can be overriden to add extra arguments to gProfiler's execution, such as --no-perf.
# kept empty by default.
String gprofiler_args = "",
# token from the Performance Studio
String gprofiler_token,
# indicate service name for the profiled workload
String gprofiler_service,
) {
exec { 'Download & run gProfiler':
command => "wget https://github.com/Granulate/gprofiler/releases/latest/download/gprofiler_`uname -m` -O ${gprofiler_path}; chmod o+x ${gprofiler_path}; TMPDIR=`dirname ${gprofiler_path}` setsid ${gprofiler_path} -cu --token="${gprofiler_token}" --service-name="${gprofiler_service}" ${gprofiler_args} > /dev/null 2>&1 &",
unless => "pgrep `basename ${gprofiler_path}`"
}
}
```
Contributor guide
Assessment
This issue has not been assessed yet.