saltstack / saltstack/salt

RFE: salt.states.service.configured

Open
#36,960 5 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.