---
name: "cdist-type__docker_swarm"
section: "7"
platform: "linux"
package: "cdist"
version: "7.0.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cdist-type__docker_swarm"
---

# cdist-type\_\_docker\_swarm(7)

Manage Swarm

## NAME

cdist-type\_\_docker\_swarm - Manage Swarm

## DESCRIPTION

This type can initialize Docker swarm mode. For more information about swarm mode, see *Swarm mode overview*.

## OPTIONAL PARAMETERS

- **state**

  'present' or 'absent', defaults to 'present' where:

  - **present**

    Swarm is initialized

  - **absent**

    Swarm is left

## EXAMPLES

```
# Initializes a swarm
__docker_swarm
# Leaves a swarm
__docker_swarm --state absent
```

## AUTHORS

Ľubomír Kučera \<lubomir.kucera.jr at gmail.com\>

## COPYING

Copyright (C) 2018 Ľubomír Kučera. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

## COPYRIGHT

ungleich GmbH 2021
