Skip to content

Commit

Permalink
adding in documentation for use of stack type/provider (puppetlabs#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
davejrt authored and florindragos committed Feb 25, 2019
1 parent 4ba9cfe commit 16764c3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ To use the CE packages, add the following code to the manifest file:
```puppet
class { 'docker':
use_upstream_package_source => false,
repo_opt => '',
repo_opt => '',
}
```

Expand Down Expand Up @@ -641,7 +641,7 @@ Please note you should supply your master docker-compose file as the first eleme

If you are using a v3.2 compose file or above on a Docker Swarm cluster, use the `docker::stack` class. Include the file resource before you run the stack command.

NOTE: this define will be deprecated in a future release in favor of the [docker type](#types)
NOTE: this define will be deprecated in a future release in favor of the [docker stack type](#types)

To deploy the stack, add the following code to the manifest file:

Expand Down Expand Up @@ -669,6 +669,14 @@ docker::stack { 'yourapp':
}
```

To use use the equivalent type and provier, use the following in your manfiest file. For more information on specific parameters see the documentation for [here](#Types)
```puppet
docker_stack { 'test':
compose_files => ['/tmp/docker-compose.yml'],
ensure => present,
}
```

To remove the stack, set `ensure => absent`.

### Swarm mode
Expand Down

0 comments on commit 16764c3

Please sign in to comment.