Classes
docker
:docker::compose
:docker::config
: == Class: docker::configdocker::images
: docker::imagesdocker::install
:docker::machine
: == Class: docker::machine Class to install Docker Machine using the recommended curl command. === Parameters [ensure] Whether to instadocker::networks
: docker::networksdocker::params
: == Class: docker::params Default parameter values for the docker moduledocker::plugins
: docker::pluginsdocker::registry_auth
: docker::registry_authdocker::repos
: == Class: docker::reposdocker::run_instance
: docker::run_instancedocker::service
: == Class: docker::service Class to manage the docker service daemon === Parameters [tcp_bind] Which tcp port, if any, to bind the dockedocker::swarms
: docker::swarmsdocker::systemd_reload
: == Class: docker::systemd_reload For systems that have systemddocker::volumes
: docker::volumes
Defined types
docker::exec
: A define which executes a command inside a container.docker::image
: == Class: docker Module to install an up-to-date version of a Docker image from the registry === Parameters [ensure] Whether you want tdocker::plugin
:docker::registry
: == Class: docker Module to configure private docker registries from which to pull Docker images If the registry does not require authenticatdocker::run
: == Define: docker:run A define which manages a running docker container. == Parameters [restart] Sets a restart policy on the docker rundocker::secrets
: == Define: docker::secretsdocker::services
:docker::stack
:docker::swarm
:docker::system_user
: == Define: docker::system_user Define to manage docker group users === Parameters [create_user] Boolean to cotrol whether the user shoudocker::windows_account
: == Define: docker::windows_account Define the Windows account that owns the docker services
Resource types
docker_compose
: A type representing a Docker Compose filedocker_network
: Type representing a Docker networkdocker_stack
: A type representing a Docker Stackdocker_volume
: A type representing a Docker volume
Functions
docker::sanitised_name
: == Function: docker::sanitised_name Function to sanitise container name. === Parameters [name] Name to sanitisedocker_exec_flags
: Transforms a hash into a string of docker exec flagsdocker_plugin_enable_flags
: Transforms a hash into a string of docker plugin remove flagsdocker_plugin_install_flags
: Transforms a hash into a string of docker plugin install flagsdocker_plugin_remove_flags
: Transforms a hash into a string of docker plugin remove flagsdocker_run_flags
: Transforms a hash into a string of docker flagsdocker_secrets_flags
: Transforms a hash into a string of docker swarm init flagsdocker_service_flags
: Transforms a hash into a string of docker swarm init flagsdocker_stack_flags
: Transforms a hash into a string of docker stack flagsdocker_swarm_init_flags
: Transforms a hash into a string of docker swarm init flagsdocker_swarm_join_flags
: Transforms a hash into a string of docker swarm init flags
Tasks
node_ls
: List nodes in the swarmnode_rm
: Update a nodenode_update
: Update a nodeservice_scale
: Scale one replicated serviceswarm_init
: Initializes a swarmswarm_join
: Join a swarmswarm_leave
: Leave a swarmswarm_token
: Gets the swarm token from the masterswarm_update
: Updates an existing service.
The docker class.
The following parameters are available in the docker
class.
Data type: Optional[String]
Default value: $docker::params::version
Data type: String
Default value: $docker::params::ensure
Data type: Variant[Array[String], Hash]
Default value: $docker::params::prerequired_packages
Data type: Array
Default value: $docker::params::dependent_packages
Data type: String
Default value: $docker::params::docker_ce_start_command
Data type: Optional[String]
Default value: $docker::params::docker_ce_package_name
Data type: Optional[String]
Default value: $docker::params::package_ce_source_location
Data type: Optional[String]
Default value: $docker::params::package_ce_key_source
Data type: Optional[String]
Default value: $docker::params::package_ce_key_id
Data type: Optional[String]
Default value: $docker::params::package_ce_release
Data type: Optional[String]
Default value: $docker::params::package_source_location
Data type: Optional[String]
Default value: $docker::params::package_key_source
Data type: Optional[Boolean]
Default value: $docker::params::package_key_check_source
Data type: Optional[String]
Default value: $docker::params::package_key_id
Data type: Optional[String]
Default value: $docker::params::package_release
Data type: String
Default value: $docker::params::docker_engine_start_command
Data type: String
Default value: $docker::params::docker_engine_package_name
Data type: String
Default value: $docker::params::docker_ce_channel
Data type: Optional[Boolean]
Default value: $docker::params::docker_ee
Data type: Optional[String]
Default value: $docker::params::package_ee_package_name
Data type: Optional[String]
Default value: $docker::params::package_ee_source_location
Data type: Optional[String]
Default value: $docker::params::package_ee_key_source
Data type: Optional[String]
Default value: $docker::params::package_ee_key_id
Data type: Optional[String]
Default value: $docker::params::package_ee_repos
Data type: Optional[String]
Default value: $docker::params::package_ee_release
Data type: Variant[String,Array[String],Undef]
Default value: $docker::params::tcp_bind
Data type: Boolean
Default value: $docker::params::tls_enable
Data type: Boolean
Default value: $docker::params::tls_verify
Data type: Optional[String]
Default value: $docker::params::tls_cacert
Data type: Optional[String]
Default value: $docker::params::tls_cert
Data type: Optional[String]
Default value: $docker::params::tls_key
Data type: Boolean
Default value: $docker::params::ip_forward
Data type: Boolean
Default value: $docker::params::ip_masq
Data type: Optional[Boolean]
Default value: $docker::params::ipv6
Data type: Optional[String]
Default value: $docker::params::ipv6_cidr
Data type: Optional[String]
Default value: $docker::params::default_gateway_ipv6
Data type: Optional[String]
Default value: $docker::params::bip
Data type: Optional[String]
Default value: $docker::params::mtu
Data type: Boolean
Default value: $docker::params::iptables
Data type: Optional[Boolean]
Default value: $docker::params::icc
Data type: String
Default value: $docker::params::socket_bind
Data type: Optional[String]
Default value: $docker::params::fixed_cidr
Data type: Optional[String]
Default value: $docker::params::bridge
Data type: Optional[String]
Default value: $docker::params::default_gateway
Data type: Optional[String]
Default value: $docker::params::log_level
Data type: Optional[String]
Default value: $docker::params::log_driver
Data type: Array
Default value: $docker::params::log_opt
Data type: Optional[Boolean]
Default value: $docker::params::selinux_enabled
Data type: Optional[Boolean]
Default value: $docker::params::use_upstream_package_source
Data type: Optional[Boolean]
Default value: $docker::params::pin_upstream_package_source
Data type: Optional[Integer]
Default value: $docker::params::apt_source_pin_level
Data type: Optional[String]
Default value: $docker::params::package_release
Data type: String
Default value: $docker::params::service_state
Data type: Boolean
Default value: $docker::params::service_enable
Data type: Boolean
Default value: $docker::params::manage_service
Data type: Optional[String]
Default value: $docker::params::root_dir
Data type: Optional[Boolean]
Default value: $docker::params::tmp_dir_config
Data type: Optional[String]
Default value: $docker::params::tmp_dir
Data type: Variant[String,Array,Undef]
Default value: $docker::params::dns
Data type: Variant[String,Array,Undef]
Default value: $docker::params::dns_search
Data type: Variant[String,Boolean,Undef]
Default value: $docker::params::socket_group
Data type: Array
Default value: $docker::params::labels
Data type: Variant[String,Array,Undef]
Default value: undef
Data type: Variant[String,Array,Undef]
Default value: undef
Data type: Optional[String]
Default value: $docker::params::proxy
Data type: Optional[String]
Default value: $docker::params::no_proxy
Data type: Optional[String]
Default value: $docker::params::storage_driver
Data type: Optional[String]
Default value: $docker::params::dm_basesize
Data type: Optional[String]
Default value: $docker::params::dm_fs
Data type: Optional[String]
Default value: $docker::params::dm_mkfsarg
Data type: Optional[String]
Default value: $docker::params::dm_mountopt
Data type: Optional[String]
Default value: $docker::params::dm_blocksize
Data type: Optional[String]
Default value: $docker::params::dm_loopdatasize
Data type: Optional[String]
Default value: $docker::params::dm_loopmetadatasize
Data type: Optional[String]
Default value: $docker::params::dm_datadev
Data type: Optional[String]
Default value: $docker::params::dm_metadatadev
Data type: Optional[String]
Default value: $docker::params::dm_thinpooldev
Data type: Optional[Boolean]
Default value: $docker::params::dm_use_deferred_removal
Data type: Optional[Boolean]
Default value: $docker::params::dm_use_deferred_deletion
Data type: Optional[Boolean]
Default value: $docker::params::dm_blkdiscard
Data type: Optional[Boolean]
Default value: $docker::params::dm_override_udev_sync_check
Data type: Boolean
Default value: $docker::params::overlay2_override_kernel_check
Data type: Optional[String]
Default value: $docker::params::execdriver
Data type: Boolean
Default value: $docker::params::manage_package
Data type: Optional[String]
Default value: $docker::params::package_source
Data type: Optional[String]
Default value: $docker::params::service_name
Data type: Array
Default value: []
Data type: String
Default value: $docker::params::docker_group
Data type: Array
Default value: []
Data type: Variant[String,Hash,Undef]
Default value: $docker::params::repo_opt
Data type: Optional[String]
Default value: $docker::params::os_lc
Data type: Optional[String]
Default value: $docker::params::storage_devs
Data type: Optional[String]
Default value: $docker::params::storage_vg
Data type: Optional[String]
Default value: $docker::params::storage_root_size
Data type: Optional[String]
Default value: $docker::params::storage_data_size
Data type: Optional[String]
Default value: $docker::params::storage_min_data_size
Data type: Optional[String]
Default value: $docker::params::storage_chunk_size
Data type: Optional[Boolean]
Default value: $docker::params::storage_growpart
Data type: Optional[String]
Default value: $docker::params::storage_auto_extend_pool
Data type: Optional[String]
Default value: $docker::params::storage_pool_autoextend_threshold
Data type: Optional[String]
Default value: $docker::params::storage_pool_autoextend_percent
Data type: Variant[String,Boolean,Undef]
Default value: $docker::params::storage_config
Data type: Optional[String]
Default value: $docker::params::storage_config_template
Data type: Optional[String]
Default value: $docker::params::storage_setup_file
Data type: Optional[String]
Default value: $docker::params::service_provider
Data type: Variant[String,Boolean,Undef]
Default value: $docker::params::service_config
Data type: Optional[String]
Default value: $docker::params::service_config_template
Data type: Variant[String,Boolean,Undef]
Default value: $docker::params::service_overrides_template
Data type: Variant[String,Boolean,Undef]
Default value: $docker::params::socket_overrides_template
Data type: Optional[Boolean]
Default value: $docker::params::socket_override
Data type: Variant[String,Boolean,Undef]
Default value: $docker::params::service_after_override
Data type: Optional[Boolean]
Default value: $docker::params::service_hasstatus
Data type: Optional[Boolean]
Default value: $docker::params::service_hasrestart
Data type: Optional[String]
Default value: $docker::params::registry_mirror
Data type: Boolean
Default value: false
Data type: Optional[String]
Default value: $docker::params::docker_msft_provider_version
Data type: Optional[String]
Default value: $docker::params::nuget_package_provider_version
The docker::compose class.
The following parameters are available in the docker::compose
class.
Data type: Optional[Pattern[/^present$|^absent$/]]
Default value: 'present'
Data type: Optional[String]
Default value: $docker::params::compose_version
Data type: Optional[String]
Default value: $docker::params::compose_install_path
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: $docker::params::compose_base_url
Data type: Optional[String]
Default value: undef
== Class: docker::config
docker::images
The following parameters are available in the docker::images
class.
Data type: Any
The docker::install class.
The following parameters are available in the docker::install
class.
Data type: Any
Default value: $docker::version
Data type: Any
Default value: $docker::nuget_package_provider_version
Data type: Any
Default value: $docker::docker_msft_provider_version
Data type: Any
Default value: $docker::docker_ee_package_name
Data type: Any
Default value: $docker::package_location
Data type: Any
Default value: $docker::dependent_packages
== Class: docker::machine
Class to install Docker Machine using the recommended curl command.
=== Parameters
[ensure] Whether to install or remove Docker Machine Valid values are absent present Defaults to present
[version] The version of Docker Machine to install. Defaults to the value set in $docker::params::machine_version
[install_path] The path where to install Docker Machine. Defaults to the value set in $docker::params::machine_install_path
[proxy] Proxy to use for downloading Docker Machine.
The following parameters are available in the docker::machine
class.
Data type: Optional[Pattern[/^present$|^absent$/]]
Default value: 'present'
Data type: Optional[String]
Default value: $docker::params::machine_version
Data type: Optional[String]
Default value: $docker::params::machine_install_path
Data type: Optional[String]
Default value: undef
docker::networks
The following parameters are available in the docker::networks
class.
Data type: Any
== Class: docker::params
Default parameter values for the docker module
docker::plugins
The following parameters are available in the docker::plugins
class.
Data type: Any
docker::registry_auth
The following parameters are available in the docker::registry_auth
class.
Data type: Any
== Class: docker::repos
The following parameters are available in the docker::repos
class.
Data type: Any
Default value: $docker::package_location
Data type: Any
Default value: $docker::package_key_source
Data type: Any
Default value: $docker::package_key_check_source
Data type: Any
Default value: $facts['architecture']
docker::run_instance
The following parameters are available in the docker::run_instance
class.
Data type: Any
== Class: docker::service
Class to manage the docker service daemon
=== Parameters [tcp_bind] Which tcp port, if any, to bind the docker service to.
[ip_forward] This flag interacts with the IP forwarding setting on your host system's kernel
[iptables] Enable Docker's addition of iptables rules
[ip_masq] Enable IP masquerading for bridge's IP range.
[socket_bind] Which local unix socket to bind the docker service to.
[socket_group] Which local unix socket to bind the docker service to.
[root_dir] Specify a non-standard root directory for docker.
[extra_parameters] Plain additional parameters to pass to the docker daemon
[shell_values] Array of shell values to pass into init script config files
[manage_service] Specify whether the service should be managed. Valid values are 'true', 'false'. Defaults to 'true'.
The following parameters are available in the docker::service
class.
Data type: Any
Default value: $docker::docker_command
Data type: Any
Default value: $docker::docker_start_command
Data type: Any
Default value: $docker::service_name
Data type: Any
Default value: $docker::tcp_bind
Data type: Any
Default value: $docker::ip_forward
Data type: Any
Default value: $docker::iptables
Data type: Any
Default value: $docker::ip_masq
Data type: Any
Default value: $docker::icc
Data type: Any
Default value: $docker::bridge
Data type: Any
Default value: $docker::fixed_cidr
Data type: Any
Default value: $docker::default_gateway
Data type: Any
Default value: $docker::ipv6
Data type: Any
Default value: $docker::ipv6_cidr
Data type: Any
Default value: $docker::default_gateway_ipv6
Data type: Any
Default value: $docker::socket_bind
Data type: Any
Default value: $docker::log_level
Data type: Any
Default value: $docker::log_driver
Data type: Any
Default value: $docker::log_opt
Data type: Any
Default value: $docker::selinux_enabled
Data type: Any
Default value: $docker::socket_group
Data type: Any
Default value: $docker::labels
Data type: Any
Default value: $docker::dns
Data type: Any
Default value: $docker::dns_search
Data type: Any
Default value: $docker::service_state
Data type: Any
Default value: $docker::service_enable
Data type: Any
Default value: $docker::manage_service
Data type: Any
Default value: $docker::root_dir
Data type: Any
Default value: $docker::extra_parameters
Data type: Any
Default value: $docker::shell_values
Data type: Any
Default value: $docker::proxy
Data type: Any
Default value: $docker::no_proxy
Data type: Any
Default value: $docker::execdriver
Data type: Any
Default value: $docker::bip
Data type: Any
Default value: $docker::mtu
Data type: Any
Default value: $docker::storage_driver
Data type: Any
Default value: $docker::dm_basesize
Data type: Any
Default value: $docker::dm_fs
Data type: Any
Default value: $docker::dm_mkfsarg
Data type: Any
Default value: $docker::dm_mountopt
Data type: Any
Default value: $docker::dm_blocksize
Data type: Any
Default value: $docker::dm_loopdatasize
Data type: Any
Default value: $docker::dm_loopmetadatasize
Data type: Any
Default value: $docker::dm_datadev
Data type: Any
Default value: $docker::dm_metadatadev
Data type: Any
Default value: $docker::tmp_dir_config
Data type: Any
Default value: $docker::tmp_dir
Data type: Any
Default value: $docker::dm_thinpooldev
Data type: Any
Default value: $docker::dm_use_deferred_removal
Data type: Any
Default value: $docker::dm_use_deferred_deletion
Data type: Any
Default value: $docker::dm_blkdiscard
Data type: Any
Default value: $docker::dm_override_udev_sync_check
Data type: Any
Default value: $docker::overlay2_override_kernel_check
Data type: Any
Default value: $docker::storage_devs
Data type: Any
Default value: $docker::storage_vg
Data type: Any
Default value: $docker::storage_root_size
Data type: Any
Default value: $docker::storage_data_size
Data type: Any
Default value: $docker::storage_min_data_size
Data type: Any
Default value: $docker::storage_chunk_size
Data type: Any
Default value: $docker::storage_growpart
Data type: Any
Default value: $docker::storage_auto_extend_pool
Data type: Any
Default value: $docker::storage_pool_autoextend_threshold
Data type: Any
Default value: $docker::storage_pool_autoextend_percent
Data type: Any
Default value: $docker::storage_config
Data type: Any
Default value: $docker::storage_config_template
Data type: Any
Default value: $docker::storage_setup_file
Data type: Any
Default value: $docker::service_provider
Data type: Any
Default value: $docker::service_config
Data type: Any
Default value: $docker::service_config_template
Data type: Any
Default value: $docker::service_overrides_template
Data type: Any
Default value: $docker::socket_overrides_template
Data type: Any
Default value: $docker::socket_override
Data type: Any
Default value: $docker::service_after_override
Data type: Any
Default value: $docker::service_hasstatus
Data type: Any
Default value: $docker::service_hasrestart
Data type: Any
Default value: $docker::daemon_environment_files
Data type: Any
Default value: $docker::tls_enable
Data type: Any
Default value: $docker::tls_verify
Data type: Any
Default value: $docker::tls_cacert
Data type: Any
Default value: $docker::tls_cert
Data type: Any
Default value: $docker::tls_key
Data type: Any
Default value: $docker::registry_mirror
Data type: Any
Default value: $docker::root_dir_flag
docker::swarms
The following parameters are available in the docker::swarms
class.
Data type: Any
== Class: docker::systemd_reload
For systems that have systemd
docker::volumes
The following parameters are available in the docker::volumes
class.
Data type: Any
A define which executes a command inside a container.
The following parameters are available in the docker::exec
defined type.
Data type: Optional[Boolean]
Default value: false
Data type: Optional[Boolean]
Default value: false
Data type: Optional[Array]
Default value: []
Data type: Optional[Boolean]
Default value: false
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[Boolean]
Default value: true
Data type: Optional[Boolean]
Default value: false
Data type: Optional[String]
Default value: undef
== Class: docker
Module to install an up-to-date version of a Docker image from the registry
=== Parameters [ensure] Whether you want the image present or absent.
[image] If you want the name of the image to be different from the name of the puppet resource you can pass a value here.
[image_tag] If you want a specific tag of the image to be installed
[image_digest] If you want a specific content digest of the image to be installed
[docker_file] If you want to add a docker image from specific docker file
[docker_tar] If you want to load a docker image from specific docker tar
The following parameters are available in the docker::image
defined type.
Data type: Optional[Pattern[/^(present|absent|latest)$/]]
Default value: 'present'
Data type: Optional[Pattern[/^[\S]*$/]]
Default value: $title
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[Boolean]
Default value: false
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
The docker::plugin class.
The following parameters are available in the docker::plugin
defined type.
Data type: Optional[Pattern[/^present$|^absent$/]]
Default value: 'present'
Data type: String
Default value: $title
Data type: Optional[Boolean]
Default value: true
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[Boolean]
Default value: false
Data type: Optional[Boolean]
Default value: true
Data type: Optional[Boolean]
Default value: true
Data type: Optional[Boolean]
Default value: true
Data type: Optional[Array]
Default value: []
== Class: docker
Module to configure private docker registries from which to pull Docker images If the registry does not require authentication, this module is not required.
=== Parameters [server] The hostname and port of the private Docker registry. Ex: dockerreg:5000
[ensure] Whether or not you want to login or logout of a repository
[username] Username for authentication to private Docker registry. auth is not required.
[password] Password for authentication to private Docker registry. Leave undef if auth is not required.
[pass_hash] The hash to be used for receipt. If left as undef, a hash will be generated
[email] Email for registration to private Docker registry. Leave undef if auth is not required.
[local_user] The local user to log in as. Docker will store credentials in this users home directory
[receipt] Required to be true for idempotency
The following parameters are available in the docker::registry
defined type.
Data type: Optional[String]
Default value: $title
Data type: Optional[Pattern[/^present$|^absent$/]]
Default value: 'present'
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: 'root'
Data type: Optional[String]
Default value: $docker::version
Data type: Optional[Boolean]
Default value: true
== Define: docker:run
A define which manages a running docker container.
== Parameters
[restart] Sets a restart policy on the docker run. Note: If set, puppet will NOT setup an init script to manage, instead it will do a raw docker run command using a CID file to track the container ID.
If you want a normal named container with an init script and a restart policy you must use the extra_parameters feature and pass it in like this:
extra_parameters => ['--restart=always']
However, if your system is using sytemd this restart policy will be ineffective because the ExecStop commands will run which will cause docker to stop restarting it. In this case you should use the systemd_restart option to specify the policy you want.
This will allow the docker container to be restarted if it dies, without puppet help.
[service_prefix] (optional) The name to prefix the startup script with and the Puppet service resource title with. Default: 'docker-'
[restart_service] (optional) Whether or not to restart the service if the the generated init script changes. Default: true
[restart_service_on_docker_refresh] Whether or not to restart the service if the docker service is restarted. Only has effect if the docker_service parameter is set. Default: true
[manage_service] (optional) Whether or not to create a puppet Service resource for the init script. Disabling this may be useful if integrating with existing modules. Default: true
[docker_service] (optional) If (and how) the Docker service itself is managed by Puppet true -> Service['docker'] false -> no Service dependency anything else -> Service[docker_service] Default: false
[health_check_cmd] (optional) Specifies the command to execute to check that the container is healthy using the docker health check functionality. Default: undef
[health_check_interval] (optional) Specifies the interval that the health check command will execute in seconds. Default: undef
[restart_on_unhealthy] (optional) Checks the health status of Docker container and if it is unhealthy the service will be restarted. The health_check_cmd parameter must be set to true to use this functionality. Default: undef
[net]
The docker network to attach to a container. Can be a String or Array (if using multiple networks) Default: bridge
[extra_parameters]
An array of additional command line arguments to pass to the docker run
command. Useful for adding additional new or experimental options that the
module does not yet support.
[systemd_restart] (optional) If the container is to be managed by a systemd unit file set the Restart option on the unit file. Can be any valid value for this systemd configuration. Most commonly used are on-failure or always. Default: on-failure
[custom_unless] (optional) Specify an additional unless for the Docker run command when using restart. Default: undef
[after_create] (optional) Specifies the command to execute after container is created but before it is started. Default: undef
The following parameters are available in the docker::run
defined type.
Data type: Optional[Pattern[/^[\S]*$/]]
Data type: Optional[Pattern[/^present$|^absent$/]]
Default value: 'present'
Data type: Optional[String]
Default value: undef
Data type: Optional[Pattern[/^[\d]*(b|k|m|g)$/]]
Default value: '0b'
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Optional[Boolean]
Default value: false
Data type: Optional[Boolean]
Default value: true
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Variant[String,Array]
Default value: 'bridge'
Data type: Variant[String,Boolean]
Default value: false
Data type: Variant[String,Boolean]
Default value: false
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Optional[String]
Default value: 'docker-'
Data type: Optional[String]
Default value: undef
Data type: Optional[Boolean]
Default value: true
Data type: Optional[Boolean]
Default value: true
Data type: Optional[Boolean]
Default value: true
Data type: Variant[String,Boolean]
Default value: false
Data type: Optional[Boolean]
Default value: false
Data type: Optional[Boolean]
Default value: false
Data type: Optional[Boolean]
Default value: undef
Data type: Variant[String,Array[String],Undef]
Default value: undef
Data type: Optional[String]
Default value: 'on-failure'
Data type: Variant[String,Hash,Undef]
Default value: {}
Data type: Optional[Boolean]
Default value: false
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Optional[Boolean]
Default value: false
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Optional[String]
Default value: undef
Data type: Variant[String,Boolean]
Default value: false
Data type: Variant[String,Boolean]
Default value: false
Data type: Optional[String]
Default value: undef
Data type: Optional[Boolean]
Default value: true
Data type: Optional[Boolean]
Default value: true
Data type: Optional[Boolean]
Default value: false
Data type: Optional[Boolean]
Default value: false
Data type: Optional[Integer]
Default value: 0
Data type: Optional[String]
Default value: undef
Data type: Optional[Boolean]
Default value: false
Data type: Optional[String]
Default value: undef
Data type: Optional[Boolean]
Default value: false
Data type: Optional[Integer]
Default value: undef
Data type: Variant[String,Array,Undef]
Default value: []
== Define: docker::secrets
The following parameters are available in the docker::secrets
defined type.
Data type: Optional[Pattern[/^present$|^absent$/]]
Default value: 'present'
Data type: Variant[String,Array,Undef]
Default value: []
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
The docker::services class.
The following parameters are available in the docker::services
defined type.
Data type: Optional[Pattern[/^present$|^absent$/]]
Default value: 'present'
Data type: Optional[Boolean]
Default value: true
Data type: Optional[Boolean]
Default value: false
Data type: Optional[Boolean]
Default value: false
Data type: Optional[Boolean]
Default value: true
Data type: Optional[Boolean]
Default value: false
Data type: Optional[Array]
Default value: []
Data type: Optional[Array]
Default value: []
Data type: Optional[Array]
Default value: []
Data type: Variant[String,Array,Undef]
Default value: undef
Data type: Variant[String,Array,Undef]
Default value: undef
Data type: Variant[String,Array,Undef]
Default value: undef
Data type: Variant[String,Array,Undef]
Default value: undef
Data type: Variant[String,Array,Undef]
Default value: undef
Data type: Variant[String,Array,Undef]
Default value: undef
Data type: Variant[String,Array,Undef]
Default value: undef
Data type: Variant[String,Array,Undef]
Default value: undef
Data type: Variant[String,Array,Undef]
Default value: undef
Data type: Variant[Array,Undef]
Default value: undef
Data type: Variant[String,Array,Undef]
Default value: undef
The docker::stack class.
The following parameters are available in the docker::stack
defined type.
Data type: Optional[Pattern[/^present$|^absent$/]]
Default value: 'present'
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[Array]
Default value: undef
Data type: Optional[Boolean]
Default value: false
Data type: Optional[Boolean]
Default value: false
Data type: Optional[Pattern[/^always$|^changed$|^never$/]]
Default value: undef
The docker::swarm class.
The following parameters are available in the docker::swarm
defined type.
Data type: Optional[Pattern[/^present$|^absent$/]]
Default value: 'present'
Data type: Optional[Boolean]
Default value: false
Data type: Optional[Boolean]
Default value: false
Data type: Optional[String]
Default value: undef
Data type: Optional[Boolean]
Default value: false
Data type: Optional[String]
Default value: undef
Data type: Optional[Array]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[Boolean]
Default value: false
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
== Define: docker::system_user
Define to manage docker group users
=== Parameters [create_user] Boolean to cotrol whether the user should be created
The following parameters are available in the docker::system_user
defined type.
Data type: Any
Default value: true
== Define: docker::windows_account
Define the Windows account that owns the docker services
A type representing a Docker Compose file
The following properties are available in the docker_compose
type.
Valid values: present, absent
The basic property that the resource should be in.
Default value: present
The following parameters are available in the docker_compose
type.
A hash of compose services and number of containers.
Additional options to be passed directly to docker-compose.
Arguments to be passed directly to docker-compose up.
An array of Docker Compose Files paths.
namevar
The name of the project
Type representing a Docker network
The following properties are available in the docker_network
type.
Valid values: present, absent
The basic property that the resource should be in.
Default value: present
The network driver used by the network
The IPAM (IP Address Management) driver
The ID of the network provided by Docker
The following parameters are available in the docker_network
type.
namevar
The name of the network
The subnet in CIDR format that represents a network segment
An ipv4 or ipv6 gateway for the master subnet
The range of IP addresses used by the network
Auxiliary ipv4 or ipv6 addresses used by the Network driver
Additional options for the network driver
Additional flags for the 'docker network create'
A type representing a Docker Stack
The following properties are available in the docker_stack
type.
Valid values: present, absent
The basic property that the resource should be in.
Default value: present
The following parameters are available in the docker_stack
type.
Path to a Distributed Application Bundle file.
An array of Docker Compose Files paths.
Arguments to be passed directly to docker stack deploy.
namevar
The name of the stack
A type representing a Docker volume
The following properties are available in the docker_volume
type.
Valid values: present, absent
The basic property that the resource should be in.
Default value: present
The volume driver used by the volume
Additional options for the volume driver
The location that the volume is mounted to
The following parameters are available in the docker_volume
type.
namevar
The name of the volume
Type: Puppet Language
== Function: docker::sanitised_name
Function to sanitise container name.
=== Parameters
[name] Name to sanitise
== Function: docker::sanitised_name
Function to sanitise container name.
=== Parameters
[name] Name to sanitise
Returns: Any
Data type: Any
Type: Ruby 3.x API
Transforms a hash into a string of docker exec flags
Transforms a hash into a string of docker exec flags
Returns: Any
Type: Ruby 3.x API
Transforms a hash into a string of docker plugin remove flags
Transforms a hash into a string of docker plugin remove flags
Returns: Any
Type: Ruby 3.x API
Transforms a hash into a string of docker plugin install flags
Transforms a hash into a string of docker plugin install flags
Returns: Any
Type: Ruby 3.x API
Transforms a hash into a string of docker plugin remove flags
Transforms a hash into a string of docker plugin remove flags
Returns: Any
Type: Ruby 3.x API
Transforms a hash into a string of docker flags
Transforms a hash into a string of docker flags
Returns: Any
Type: Ruby 3.x API
Transforms a hash into a string of docker swarm init flags
Transforms a hash into a string of docker swarm init flags
Returns: Any
Type: Ruby 3.x API
Transforms a hash into a string of docker swarm init flags
Transforms a hash into a string of docker swarm init flags
Returns: Any
Type: Ruby 3.x API
Transforms a hash into a string of docker stack flags
Transforms a hash into a string of docker stack flags
Returns: Any
Type: Ruby 3.x API
Transforms a hash into a string of docker swarm init flags
Transforms a hash into a string of docker swarm init flags
Returns: Any
Type: Ruby 3.x API
Transforms a hash into a string of docker swarm init flags
Transforms a hash into a string of docker swarm init flags
Returns: Any
List nodes in the swarm
Supports noop? false
Data type: Optional[String[1]]
Filter output based on conditions provided
Data type: Optional[Boolean]
Only display IDs
Update a node
Supports noop? false
Data type: Optional[Boolean]
Force remove a node from the swarm
Data type: String[1]
Hostname or ID of the node in the swarm
Update a node
Supports noop? false
Data type: Optional[Enum['active', 'pause', 'drain']]
Availability of the node
Data type: Optional[Enum['manager', 'worker']]
Role of the node
Data type: String[1]
Hostname or ID of the node in the swarm
Scale one replicated service
Supports noop? false
Data type: String[1]
Name or ID of the service
Data type: Integer
Number of replicas
Data type: Optional[Boolean]
Exit immediately instead of waiting for the service to converge
Initializes a swarm
Supports noop? false
Data type: Optional[String[1]]
Advertised address
Data type: Optional[Boolean]
Enable manager autolocking
Data type: Optional[String[1]]
Validity period for node certificates
Data type: Optional[String[1]]
Dispatcher heartbeat period
Data type: Optional[String[1]]
Specifications of one or more certificate signing endpoints
Data type: Optional[Boolean]
Force create a new cluster from current state
Data type: Optional[String[1]]
Listen address
Data type: Optional[Integer[1]]
Number of additional Raft snapshots to retain
Data type: Optional[Integer[1]]
Number of log entries between Raft snapshots
Join a swarm
Supports noop? false
Data type: Optional[String[1]]
Advertised address
Data type: Optional[String[1]]
Listen address
Data type: String[1]
Join token for the swarm
Data type: String[1]
IP Address of the swarm manager
Leave a swarm
Supports noop? false
Data type: Optional[Boolean]
Force this node to leave the swarm, ignoring warnings
Gets the swarm token from the master
Supports noop? false
Data type: String[1]
The role of the node joining the swarm
Updates an existing service.
Supports noop? false
Data type: String[1]
The service to update
Data type: String[1]
The new image to use for the service