Install an exe as windows service using puppet

366 Views Asked by At

I want to install an exe as windows service using a custom puppet module. The exe path i can put mannually, now can anyone help me with what should i code in the puppet manifest file.

I'm actually new to puppet so can anyone tell me the script for installing this exe as admin user.

Thank you.

1

There are 1 best solutions below

0
Werner On

By far the recommended way will be to wrap the exe in a Nuget package. You can find some help here

Then, you can install the Nuget package via the package resource in Puppet.

If you do need to do it via say the exec resource, then @16c7x's statement is correct. Create exec resources with metadata to ensure it is idempotent. It is messy and not best practice though.