Skip to content

Commit 16764c3

Browse files
davejrtflorindragos
authored andcommitted
adding in documentation for use of stack type/provider (#443)
1 parent 4ba9cfe commit 16764c3

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ To use the CE packages, add the following code to the manifest file:
111111
```puppet
112112
class { 'docker':
113113
use_upstream_package_source => false,
114-
repo_opt => '',
114+
repo_opt => '',
115115
}
116116
```
117117

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

642642
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.
643643

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

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

@@ -669,6 +669,14 @@ docker::stack { 'yourapp':
669669
}
670670
```
671671

672+
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)
673+
```puppet
674+
docker_stack { 'test':
675+
compose_files => ['/tmp/docker-compose.yml'],
676+
ensure => present,
677+
}
678+
```
679+
672680
To remove the stack, set `ensure => absent`.
673681

674682
### Swarm mode

0 commit comments

Comments
 (0)