Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lifailon/pipeline-service-manager

Jenkins pipeline for service manage
https://github.com/lifailon/pipeline-service-manager

ansible-playbook devops groovy jenkins-pipeline job pipeline powershell service service-manager systemctl windows windows-service

Last synced: 4 days ago
JSON representation

Jenkins pipeline for service manage

Awesome Lists containing this project

README

        

## Pipeline Service Manager

Jenkins pipeline for service management to Windows and Linux system.

**Stack:**
- **Jenkins** (tested v2.416).
- Service Control Manager (use **GitHub**).
- **Ansible** (tested v2.10.8). Use module win_shell (from the collection ansible.windows) and shell.
- Executable code: **PowerShell/systemctl**.

## Scheme of work

```mermaid
flowchart TD
classDef class_color fill:#68F1F7, stroke:#000, stroke-width:1px
1[Jenkins Pipeline]:::class_color
2[SCM: GitHub]:::class_color
3[Jenkinsfile.Groovy passes parameters]:::class_color
4[Playbook takes variables]:::class_color
5[PowerShell/systemctl]:::class_color
1--Connect-->2--Read-->3--Run Ansible-->4--Use module win_shell/shell-->5
5--Output to Job-->1
```

## Job stages

![Image alt](https://github.com/Lifailon/Pipeline-Service-Manager/blob/rsa/Screen/Stage-View.jpg)

## Parameters

- **ServiceName**. For Windows systems the default is Fildcard format. For Linux use formate *name* (not supported for StartType mode).
- **System**: Windows/Linux.
- **State**: Start/Stop/Restart.
- **StartType**: Enabled mode - for system Linux. Automatic/Manual mode - for system Windows. Delayed Start mode - supported only to PowerShell 7.

![Image alt](https://github.com/Lifailon/Pipeline-Service-Manager/blob/rsa/Screen/Build-Parameters.jpg)

## Output


### Settings Git

Use the current **public repository** for your pipeline. Hosts list and variables for playbook are used on the local Ansible server.

![Image alt](https://github.com/Lifailon/Pipeline-Service-Manager/blob/rsa/Screen/Settings-Git.jpg)