RFE: salt.states.service.configured
Open
@twangboy is already working on this.
Since Aug 21, 2023.
Feature
Platform
State-Module
- Dominant language
- Python
- Stars
- 15.7k
- Forks
- 5.6k
- Avg merge
- 2d 44m
- Merged PRs (30d)
- 80
Description
Description of Issue/Question
Their needs to be a state to configure a service, which check to see if the service is configured as expected and if not changes it. i.e. salt.states.service.configured which supports windows, systemd, solaris. i.e. the platforms which do do use init.d/rc.d
It needs to accept a list of params which are common across platforms, and also a extra platform specific items.
Steps to Reproduce Issue
Windows Example
module.run:
- name: service.create
- m_name: ServiceName
- bin_path: d:{{environmentbase}}\apptier\service\bin\WindowsService.exe
- display_name: TestService
- start_type: auto
- description: Windows Service for {{environment}} Instance"
This errors if already exists. i.e. trying to do something which should be implemented in a state.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.