Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8395659
docker_stack.rb
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
825 B
Subscribers
None
docker_stack.rb
View Options
# frozen_string_literal: true
Puppet
::
Type
.
newtype
(
:docker_stack
)
do
@doc
=
'A type representing a Docker Stack'
ensurable
newparam
(
:bundle_file
)
do
desc
'Path to a Distributed Application Bundle file.'
validate
do
|
value
|
raise
_
(
'bundle files should be a string'
)
unless
value
.
is_a?
String
end
end
newparam
(
:compose_files
,
array_matching
:
:all
)
do
desc
'An array of Docker Compose Files paths.'
validate
do
|
value
|
raise
_
(
'compose files should be an array'
)
unless
value
.
is_a?
Array
end
end
newparam
(
:up_args
)
do
desc
'Arguments to be passed directly to docker stack deploy.'
validate
do
|
value
|
raise
_
(
'up_args should be a String'
)
unless
value
.
is_a?
String
end
end
newparam
(
:name
)
do
isnamevar
desc
'The name of the stack'
end
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jun 4 2025, 7:42 PM (10 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3399340
Attached To
R205 puppet-puppetlabs-docker
Event Timeline
Log In to Comment