dockerinstall
: Docker installationdockerinstall::compose
: Docker Compose installationdockerinstall::config
: Docker config setup (daemon.json)dockerinstall::install
: Docker daemon installation from package repository.dockerinstall::params
: Module parametersdockerinstall::profile::daemon
: Docker configuration setup and daemon startdockerinstall::profile::decomission
: Docker daemon decomissiondockerinstall::profile::install
: Docker installationdockerinstall::profile::registry
: Docker registry installation profiledockerinstall::profile::registry::clientauth
: Base profile for Docker registry client auth setupdockerinstall::registry::auth_token
: Enable integration of Registry into GitLab authentication mechanismdockerinstall::registry::base
: Run registry containerdockerinstall::registry::gitlab
: Export GitLab certificate and tokens map for Registry authenticationdockerinstall::registry::nginx
: Registry Nginx setupdockerinstall::registry::params
: Registry parametersdockerinstall::registry::setup::token
: Registry token authentication basic setupdockerinstall::repos
: Docker repository managemenntdockerinstall::service
: Docker service managemenntdockerinstall::setup
: Docker basic setupdockerinstall::swarm::manager
: A short summary of the purpose of this classdockerinstall::swarm::worker
: A short summary of the purpose of this classdockerinstall::tls
: Protect the Docker daemon socket with TLS certificate
dockerinstall::composeservice
: Run compose servicedockerinstall::registry::clientauth
: Setup client cert auth for registrydockerinstall::swarm::node
: A short summary of the purpose of this defined type.dockerinstall::swarm::promote
: A short summary of the purpose of this defined type.dockerinstall::webservice
: Start compose service based on auto-generated compose file
dockerimage
: Local docker imagedockerservice
: Docker Compose service
Dockerinstall::CgroupDriver
Dockerinstall::DmFS
Dockerinstall::Ensure
Dockerinstall::Log::JSONFile
: https://docs.docker.com/config/containers/logging/json-file/Dockerinstall::LogDriver
Dockerinstall::LogLevel
Dockerinstall::Multiple
Dockerinstall::Numerical
Dockerinstall::PackageName
Dockerinstall::RLimit
Dockerinstall::Repo
Dockerinstall::RepoOS
Dockerinstall::StorageDriver
Dockerinstall::StorageOptions
Dockerinstall::UserList
Dockerinstall::Version
Docker installation
The following parameters are available in the dockerinstall
class.
Data type: Dockerinstall::PackageName
Data type: Dockerinstall::Version
Data type: String
Data type: String
Data type: Boolean
Data type: Dockerinstall::Repo
Data type: String
Data type: Dockerinstall::RepoOS
Data type: Boolean
Data type: Boolean
Data type: Array[String]
Data type: Boolean
Data type: Dockerinstall::UserList
Data type: String
Data type: Boolean
Data type: Dockerinstall::Ensure
Data type: String
Data type: Boolean
Data type: Boolean
Data type: Boolean
Data type: Optional[String]
Data type: Optional[String]
Data type: Optional[String]
Data type: Optional[String]
Data type: Optional[String]
Data type: Optional[String]
Data type: Optional[String]
Data type: Optional[Dockerinstall::Multiple]
Data type: Boolean
Data type: Boolean
Data type: String
Data type: String
Data type: String
Data type: Optional[Dockerinstall::Multiple]
Data type: Boolean
Data type: Boolean
Data type: Boolean
Data type: Boolean
Data type: Optional[String]
Data type: Optional[String]
Data type: Optional[String]
Data type: Optional[String]
Data type: Optional[String]
Data type: Optional[Dockerinstall::LogLevel]
Data type: Optional[Dockerinstall::LogDriver]
Data type: Optional[Dockerinstall::Multiple]
Data type: Boolean
Data type: Optional[String]
Data type: Optional[Dockerinstall::Multiple]
Data type: Optional[Dockerinstall::Multiple]
Data type: Optional[Integer]
Data type: Optional[Dockerinstall::Multiple]
Data type: Optional[Dockerinstall::Multiple]
Data type: Optional[String]
Data type: Optional[String]
Data type: Optional[String]
Data type: Optional[Dockerinstall::StorageDriver]
Data type: Optional[String]
Data type: Optional[Dockerinstall::DmFS]
Data type: Optional[String]
Data type: Optional[String]
Data type: Optional[String]
Data type: Optional[String]
Data type: Optional[String]
Data type: Optional[String]
Data type: Optional[String]
Data type: Optional[String]
Data type: Boolean
Data type: Boolean
Data type: Boolean
Data type: Boolean
Data type: Boolean
Data type: Optional[String]
Data type: Boolean
Data type: Boolean
Data type: String
Docker Compose installation
include dockerinstall::compose
The following parameters are available in the dockerinstall::compose
class.
Data type: Optional[String]
Default value: $dockerinstall::compose_version
Data type: String
Default value: $dockerinstall::params::compose_download_source
Data type: String
Default value: $dockerinstall::params::compose_download_name
Data type: String
Default value: $dockerinstall::params::compose_checksum_name
Data type: String
Default value: $dockerinstall::params::compose_checksum_command
Data type: Stdlib::Absolutepath
Default value: $dockerinstall::params::download_tmpdir
Data type: Stdlib::Absolutepath
Default value: $dockerinstall::params::compose_binary_path
Data type: Stdlib::Absolutepath
Default value: $dockerinstall::params::compose_rundir
Data type: Stdlib::Absolutepath
Default value: $dockerinstall::params::compose_libdir
Data type: String
Default value: 'file'
Docker config setup (daemon.json)
include dockerinstall::config
The following parameters are available in the dockerinstall::config
class.
Data type: Boolean
Default value: $dockerinstall::manage_os_users
Data type: Dockerinstall::UserList
Default value: $dockerinstall::docker_users
Data type: String
Default value: $dockerinstall::docker_group
Data type: Boolean
Default value: $dockerinstall::manage_package
Data type: Optional[Stdlib::IP::Address::V4::CIDR]
Default value: undef
Data type: Optional[Integer]
Default value: undef
Data type: Optional[Dockerinstall::StorageDriver]
Default value: undef
Data type: Optional[ Array[Dockerinstall::StorageOptions] ]
Default value: undef
Data type: Optional[Dockerinstall::CgroupDriver]
Default value: undef
Data type: Optional[Dockerinstall::LogDriver]
Default value: undef
Data type: Optional[Dockerinstall::Log::JSONFile]
Default value: undef
Data type: String
Default value: 'present'
Data type: String
Default value: 'present'
Data type: String
Default value: 'file'
Docker daemon installation from package repository.
include dockerinstall::install
The following parameters are available in the dockerinstall::install
class.
Data type: Dockerinstall::PackageName
Default value: $dockerinstall::package_name
Data type: Dockerinstall::Version
Default value: $dockerinstall::version
Data type: Boolean
Default value: $dockerinstall::manage_package
Data type: Array[String]
Default value: $dockerinstall::prerequired_packages
Data type: String
Default value: $dockerinstall::containerd_package_name
Data type: String
Default value: $dockerinstall::containerd_version
Module parameters
include dockerinstall::params
Docker configuration setup and daemon start
include dockerinstall::profile::daemon
The following parameters are available in the dockerinstall::profile::daemon
class.
Data type: Optional[String]
Default value: undef
Data type: Optional[Integer]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[Array[String]]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[Hash]
Default value: undef
Data type: Boolean
Default value: false
Data type: Boolean
Default value: false
Data type: Stdlib::Unixpath
Default value: $dockerinstall::params::docker_tlsdir
Docker daemon decomission
include dockerinstall::profile::decomission
Docker installation (installation only)
include dockerinstall::profile::install
The following parameters are available in the dockerinstall::profile::install
class.
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Stdlib::Unixpath
Default value: $dockerinstall::params::docker_tlsdir
Docker registry installation profile
include dockerinstall::registry
The following parameters are available in the dockerinstall::profile::registry
class.
Data type: String
Data type: Optional[String]
Default value: $server_name
Data type: Boolean
Default value: true
Data type: Optional[Array[Stdlib::Fqdn]]
Default value: undef
Data type: Boolean
Default value: true
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Boolean
Default value: true
Data type: Boolean
Default value: true
Data type: Boolean
Default value: true
Base profile for Docker registry client auth setup
include dockerinstall::profile::registry::clientauth
The following parameters are available in the dockerinstall::profile::registry::clientauth
class.
Data type: Optional[Array[Stdlib::Fqdn]]
Default value: undef
Enable integration of Registry into GitLab authentication see https://docs.gitlab.com/ee/administration/packages/container_registry.html#enable-the-container-registry
include dockerinstall::registry::auth_token
The following parameters are available in the dockerinstall::registry::auth_token
class.
Data type: Boolean
Whether to enable token authentication or not
Default value: false
Data type: Boolean
Whether to enable GitLab as token provider or not
Default value: false
Data type: Optional[Stdlib::Fqdn]
If GitLab is in use as token provider than GitLab host must be provided
Default value: undef
Data type: Optional[Stdlib::HTTPUrl]
The realm in which the registry server authenticates eg https://gitlab.domain.tld/jwt/auth
Default value: undef
Data type: Optional[String]
Contents of the certificate that Realm (eg GitLab) uses to sign the tokens.
Default value: undef
The absolute path to the root certificate bundle. This bundle contains the public part of the certificates used to sign authentication tokens.
Data type: String
The service being authenticated.
Default value: $dockerinstall::registry::params::auth_token_service
Data type: String
The name of the token issuer. The issuer inserts this into the token so it must match the value configured for the issuer.
Default value: $dockerinstall::registry::params::auth_token_issuer
Data type: Boolean
Whether to import token certificate from PuppetDB or not. If set to false
than token certificate should be provide either via realm_certificate
or
it must be set via classes gitlabinstall::gitlab
or
dockerinstall::registry::gitlab
Default value: true
Data type: Boolean
Default value: true
Run registry container
include dockerinstall::registry::base
The following parameters are available in the dockerinstall::registry::base
class.
Data type: String
Default value: 'registry:2.7.1'
Data type: Stdlib::Unixpath
Default value: $dockerinstall::registry::params::data_directory
Export GitLab certificate and tokens map for Registry authentication
include dockerinstall::registry::gitlab
The following parameters are available in the dockerinstall::registry::gitlab
class.
Data type: Boolean
Whether to write certificate content into local file system or export it to Puppet DB
Default value: true
Data type: Optional[String]
Contents of the certificate that GitLab uses to sign the tokens. This
parameter allows to setup custom certificate into file system path
(registry_cert_path
) or export to Puppet DB.
Default value: undef
This is the path where registry_internal_certificate
contents will be
written to disk.
default certificate location is /etc/docker/registry/tokenbundle.pem
Data type: Boolean
Whether to export Nginx tokens map into PuppetDB or not
Default value: true
Data type: Boolean
Whether to setup Nginx tokens map locally or not (mutually exclusive with
token_map_export
with lower priority)
Default value: true
Data type: Stdlib::Unixpath
Path to Nginx config which represents map of tokenns to project. This config file
is used in include
directive for map $uri $gitlab_token {} configuration
directive. See http://nginx.org/en/docs/http/ngx_http_map_module.html#map
Default is /etc/nginx/conf.d/mapping/gitlab-auth-token.conf
Default value: $dockerinstall::registry::params::nginx_tokens_map
Data type: Optional[Stdlib::Fqdn]
Default value: $dockerinstall::params::certname
Registry Nginx setup
include dockerinstall::registry::nginx
The following parameters are available in the dockerinstall::registry::nginx
class.
Data type: String
Data type: Boolean
Default value: false
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Boolean
Default value: false
Data type: Boolean
Default value: true
Data type: Boolean
Default value: true
Data type: Boolean
Default value: true
Data type: Boolean
Default value: true
Data type: Stdlib::Unixpath
Default value: $dockerinstall::registry::params::nginx_tokens_map
Registry parameters
include dockerinstall::registry::params
Registry token authentication basic setup
include dockerinstall::registry::setup::token
Docker repository managemennt
include dockerinstall::repos
The following parameters are available in the dockerinstall::repos
class.
Data type: Boolean
Default value: $dockerinstall::manage_package
Data type: Dockerinstall::Repo
Default value: $dockerinstall::repo
Data type: String
Default value: $dockerinstall::repo_location
Data type: Dockerinstall::RepoOS
Default value: $dockerinstall::repo_os
Data type: Boolean
Default value: $dockerinstall::repo_gpgcheck
Data type: Boolean
Default value: $dockerinstall::repo_sslverify
Data type: String
Default value: $::architecture
Data type: Enum['present', 'absent']
Default value: 'present'
Docker service managemennt
include dockerinstall::service
The following parameters are available in the dockerinstall::service
class.
Data type: Optional[String]
Docker service environment config (eg /etc/sysconfig/docker on Red Hat based) set OPTIONS environment variable
Default value: $dockerinstall::service_config
Data type: Optional[String]
Docker service environment config for storage driver options set DOCKER_STORAGE_OPTIONS environment variable
Default value: $dockerinstall::storage_config
Data type: Dockerinstall::Ensure
Default value: $dockerinstall::service_ensure
Data type: Boolean
Default value: $dockerinstall::manage_service
Data type: String
Default value: $dockerinstall::service_name
Data type: Boolean
Default value: $dockerinstall::service_enable
Data type: Boolean
Default value: $dockerinstall::service_hasstatus
Data type: Boolean
Default value: $dockerinstall::service_hasrestart
Data type: Optional[String]
Default value: $dockerinstall::service_config_template
Data type: Optional[String]
Default value: $dockerinstall::service_overrides_config
Data type: Optional[String]
Default value: $dockerinstall::service_overrides_template
Data type: Optional[String]
Default value: $dockerinstall::storage_config_template
Data type: Optional[String]
Default value: $dockerinstall::root_dir
Data type: Optional[Dockerinstall::Multiple]
Default value: $dockerinstall::tcp_bind
Data type: Boolean
Default value: $dockerinstall::tls_enable
Data type: Boolean
Default value: $dockerinstall::tls_verify
Data type: String
Default value: $dockerinstall::tls_cacert
Data type: String
Default value: $dockerinstall::tls_cert
Data type: String
Default value: $dockerinstall::tls_key
Data type: Optional[Dockerinstall::Multiple]
Default value: $dockerinstall::socket_bind
Data type: Boolean
Default value: $dockerinstall::ip_forward
Data type: Boolean
Default value: $dockerinstall::iptables
Data type: Boolean
Default value: $dockerinstall::ip_masq
Data type: Boolean
Default value: $dockerinstall::icc
Data type: Optional[String]
Default value: $dockerinstall::registry_mirror
Data type: Optional[String]
Default value: $dockerinstall::fixed_cidr
Data type: Optional[String]
Default value: $dockerinstall::default_gateway
Data type: Optional[String]
Default value: $dockerinstall::bridge
Data type: Optional[String]
Default value: $dockerinstall::bip
Data type: Optional[Dockerinstall::LogLevel]
Default value: $dockerinstall::log_level
Data type: Optional[Dockerinstall::LogDriver]
Default value: $dockerinstall::log_driver
Data type: Optional[Dockerinstall::Multiple]
Default value: $dockerinstall::log_opt
Data type: Boolean
Default value: $dockerinstall::selinux_enabled
Data type: Optional[String]
Default value: $dockerinstall::socket_group
Data type: Optional[Dockerinstall::Multiple]
Default value: $dockerinstall::dns
Data type: Optional[Dockerinstall::Multiple]
Default value: $dockerinstall::dns_search
Data type: Optional[Integer]
Default value: $dockerinstall::mtu
Data type: Optional[Dockerinstall::Multiple]
Default value: $dockerinstall::labels
Data type: Optional[Dockerinstall::Multiple]
Default value: $dockerinstall::extra_parameters
Data type: Optional[String]
Default value: $dockerinstall::proxy
Data type: Optional[String]
Default value: $dockerinstall::no_proxy
Data type: Optional[String]
Default value: $dockerinstall::tmp_dir
Data type: Optional[Dockerinstall::StorageDriver]
Default value: $dockerinstall::storage_driver
Data type: Optional[String]
Default value: $dockerinstall::dm_basesize
Data type: Optional[Dockerinstall::DmFS]
Default value: $dockerinstall::dm_fs
Data type: Optional[String]
Default value: $dockerinstall::dm_mkfsarg
Data type: Optional[String]
Default value: $dockerinstall::dm_mountopt
Data type: Optional[String]
Default value: $dockerinstall::dm_blocksize
Data type: Optional[String]
Default value: $dockerinstall::dm_loopdatasize
Data type: Optional[String]
Default value: $dockerinstall::dm_loopmetadatasize
Data type: Optional[String]
Default value: $dockerinstall::dm_datadev
Data type: Optional[String]
Default value: $dockerinstall::dm_metadatadev
Data type: Optional[String]
Default value: $dockerinstall::dm_thinpooldev
Data type: Boolean
Default value: $dockerinstall::dm_use_deferred_removal
Data type: Boolean
Default value: $dockerinstall::dm_use_deferred_deletion
Data type: Boolean
Default value: $dockerinstall::dm_blkdiscard
Data type: Boolean
Default value: $dockerinstall::dm_override_udev_sync_check
Data type: Boolean
Default value: $dockerinstall::overlay2_override_kernel_check
Data type: Boolean
Default value: $dockerinstall::manage_os_users
Data type: Boolean
Default value: $dockerinstall::manage_package
Data type: String
Default value: 'file'
Docker basic setup
include dockerinstall::setup
The following parameters are available in the dockerinstall::setup
class.
Data type: Boolean
Default value: $dockerinstall::manage_docker_certdir
Data type: Boolean
Default value: $dockerinstall::manage_docker_tlsdir
Data type: Stdlib::Unixpath
Default value: $dockerinstall::params::docker_tlsdir
Data type: String
Default value: $dockerinstall::docker_dir_ensure
A description of what this class does
include dockerinstall::swarm::manager
The following parameters are available in the dockerinstall::swarm::manager
class.
Data type: Boolean
Default value: true
Data type: Optional[Stdlib::IP::Address]
Default value: undef
Data type: Optional[ Variant[ Stdlib::Fqdn, Stdlib::IP::Address ] ]
Default value: undef
A description of what this class does
include dockerinstall::swarm::worker
The following parameters are available in the dockerinstall::swarm::worker
class.
Data type: Boolean
Default value: true
Data type: Optional[ Variant[ Stdlib::Fqdn, Stdlib::IP::Address ] ]
Default value: undef
Protect the Docker daemon socket with TLS certificate
include dockerinstall::tls
The following parameters are available in the dockerinstall::tls
class.
Data type: Stdlib::Unixpath
Default value: $dockerinstall::params::docker_tlsdir
Run compose service
dockerinstall::composeservice { 'namevar': }
The following parameters are available in the dockerinstall::composeservice
defined type.
Data type: String
Data type: Variant[ Enum['stopped', 'running'], Boolean ]
Default value: 'running'
Data type: Optional[String]
Default value: undef
Data type: Optional[Stdlib::Unixpath]
Default value: undef
Data type: Optional[Stdlib::Unixpath]
Default value: undef
Data type: Optional[Stdlib::Unixpath]
Default value: undef
Data type: Boolean
Default value: false
Setup client cert auth for registry usung Puppet CA certificates
dockerinstall::registry::clientauth { 'namevar': }
The following parameters are available in the dockerinstall::registry::clientauth
defined type.
Data type: Stdlib::Fqdn
Default value: $name
Data type: Optional[Stdlib::Port]
Default value: undef
A description of what this defined type does
dockerinstall::swarm::node { 'worker/sman1.domain.com': }
dockerinstall::swarm::node { 'manager/sman2.domain.com': }
The following parameters are available in the dockerinstall::swarm::node
defined type.
Data type: String
Data type: Optional[Stdlib::IP::Address]
Default value: undef
A description of what this defined type does
dockerinstall::swarm::promote { 'namevar': }
The following parameters are available in the dockerinstall::swarm::promote
defined type.
Data type: String
Default value: $name
Start compose service based on auto-generated compose file
dockerinstall::webservice { 'app': }
The following parameters are available in the dockerinstall::webservice
defined type.
Data type: String
Specify the image to start the container from. see: https://docs.docker.com/compose/compose-file/#image
Data type: Boolean
Whether to build docker image using docker-compose command
Default value: false
Data type: Boolean
Whether to manage image with docker command or not
if set to true - will define custom resource Dockerimage for image specified
with parameter docker_image
Default value: false
Data type: String
Specify an alternate project name (default: directory name) see: https://docs.docker.com/compose/reference/overview/#use--p-to-specify-a-project-name
Default value: $name
Data type: Optional[String]
Service name inside docker compose file see: https://docs.docker.com/compose/compose-file/#service-configuration-reference
Default value: undef
Data type: Optional[String]
Development environment for which service is running (eg prod, stage, test, qa etc) It is mandatory for secrets setup into file secrets/<env_name>.env Also it could be used for service definition as <project_name>-<env_name>
Default value: undef
Data type: Optional[Hash[String, String]]
Hash of environment variables to setup into environment file secrets/<env_name>.env see: https://docs.docker.com/compose/compose-file/#env_file
Default value: undef
Data type: Optional[Hash[String, String]]
Add environment variables. You can use either an array or a dictionary see: https://docs.docker.com/compose/compose-file/#environment
Default value: undef
Data type: String
Compose file versions see: https://docs.docker.com/compose/compose-file/#compose-and-docker-compatibility-matrix
Default value: '3.8'
Data type: Enum[ 'no', 'always', 'on-failure', 'unless-stopped' ]
Restart policy to use for service see: https://docs.docker.com/compose/compose-file/#restart
Default value: 'always'
Data type: Optional[Array[String]]
Expose ports in short syntax see: https://docs.docker.com/compose/compose-file/#ports
Default value: undef
Data type: Optional[Array[String]]
Mount host paths or named volumes, specified as sub-options to a service. Short syntax is supported see: https://docs.docker.com/compose/compose-file/#volumes
Default value: undef
Data type: Optional[Array[String]]
Add hostname mappings. Use the same values as the docker client --add-host parameter. see: https://docs.docker.com/compose/compose-file/#extra_hosts
Default value: undef
Data type: Optional[Array[String]]
volumes
section allows you to create named volumes that can be reused
across multiple services
see: https://docs.docker.com/compose/compose-file/#volume-configuration-reference
Default value: undef
Data type: Optional[Integer]
Set the containers network MTU to specified value (for network default
)
see: https://docs.docker.com/engine/reference/commandline/network_create/#bridge-driver-options
Default value: undef
Data type: Optional[ Hash[ String, Variant[ Dockerinstall::RLimit, Array[Dockerinstall::RLimit, 2] ] ] ]
Override the default ulimits for a container. see: https://docs.docker.com/compose/compose-file/#ulimits
Default value: undef
Data type: Optional[ Array[ Variant[ Stdlib::IP::Address, Stdlib::Fqdn ] ] ]
Custom DNS servers. see: https://docs.docker.com/compose/compose-file/#dns
Default value: undef
Data type: Boolean
Enable configuration options that are applied at build time. see: https://docs.docker.com/compose/compose-file/#build
Default value: false
Data type: String
Either a path to a directory containing a Dockerfile, or a url to a git repository. see: https://docs.docker.com/compose/compose-file/#context
Default value: '.'
Data type: String
Alternate Dockerfile. see: https://docs.docker.com/compose/compose-file/#dockerfile
Default value: 'Dockerfile'
Data type: Optional[ Variant[ Hash[String, String], Array[String] ] ]
Add build arguments, which are environment variables accessible only during the build process. see: https://docs.docker.com/compose/compose-file/#args
Default value: undef
Data type: Optional[ Variant[ String, Array[String] ] ]
Override the default command. see: https://docs.docker.com/compose/compose-file/#command
Default value: undef
Data type: Boolean
Give extended privileges to this container. A "privileged" container is given access to all devices see: https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities
Default value: false
Data type: Boolean
Compose service decomission (stop and removal)
Default value: false
Local docker image
The following properties are available in the dockerimage
type.
Valid values: present
, absent
Create or remove the image.
Default value: present
The following parameters are available in the dockerimage
type.
Domain is registry host:port. port is optional
ID is image id
namevar
Resource name
Path is username/repository part of image name
The specific backend to use for this dockerimage
resource. You will seldom need to specify this --- Puppet will
usually discover the appropriate provider for your platform.
Tag is the mechanism that registries use to give Docker images a version
Docker Compose service
The following properties are available in the dockerservice
type.
Docker Compose configuration file content (YAML)
Valid values: stopped
, running
, false
, true
Aliases: "false"=>"stopped", "true"=>"running"
Whether a service should be running.
The following parameters are available in the dockerservice
type.
The directory where to store Docker Compose projects (it could be runtime or temporary directory). By default /var/run/compose
Valid values: true
, false
, yes
, no
Specify whether to build Docker image
Default value: false
namevar
Docker compose service name
Path to Docker Compose configuration file. Path should be absolute or relative to Project directory
Default value: docker-compose.yml
Docker Compose project name. It could be absolute path to a project directory or just alternate project name
The specific backend to use for this dockerservice
resource. You will seldom need to specify this --- Puppet will
usually discover the appropriate provider for your platform.
Valid values: true
, false
, yes
, no
Whether to replace a configuration file or not
Default value: true
Specify a restart command manually.
Specify a start command manually.
Specify a status command manually. This command must return 0 if the service is running and a nonzero value otherwise.
Specify a stop command manually.
Type: Ruby 4.x API
The dockerinstall::cidr_network function.
The dockerinstall::cidr_network function.
Returns: Any
Data type: Stdlib::IP::Address
Type: Puppet Language
The dockerinstall::option function.
The dockerinstall::option function.
Returns: Hash
Data type: String
Data type: Data
The Dockerinstall::CgroupDriver data type.
Alias of Enum['cgroupfs', 'systemd']
The Dockerinstall::DmFS data type.
Alias of Enum['ext4', 'xfs']
The Dockerinstall::Ensure data type.
Alias of Enum['stopped', 'running']
https://docs.docker.com/config/containers/logging/json-file/
Alias of Struct[{ Optional['max-size'] => Variant[Pattern[/^[0-9]+[gmk]?$/], Enum['-1']], Optional['max-file'] => Variant[Pattern[/^[0-9]+$/]], Optional['labels'] => String, Optional['env'] => String, Optional['env-regex'] => String, Optional['compress'] => Enum['true', 'false'], Optional['mode'] => Enum['blocking', 'non-blocking'], Optional['max-buffer-size'] => Pattern[/^[0-9]+[gmk]?$/], }]
The Dockerinstall::LogDriver data type.
Alias of Enum['json-file', 'syslog', 'journald', 'gelf', 'fluentd', 'awslogs', 'splunk', 'etwlogs', 'gcplogs', 'none']
The Dockerinstall::LogLevel data type.
Alias of Enum['debug', 'info', 'warn', 'error', 'fatal']
The Dockerinstall::Multiple data type.
Alias of Variant[String, Array[String]]
The Dockerinstall::Numerical data type.
Alias of Variant[Integer, Pattern[/^[0-9]+$/, /^-[0-9]+$/]]
The Dockerinstall::PackageName data type.
Alias of Enum['docker', 'docker-ce', 'docker-ee']
The Dockerinstall::RLimit data type.
Alias of Variant[Dockerinstall::Numerical, Enum['unlimited', 'infinity']]
The Dockerinstall::Repo data type.
Alias of Enum['stable', 'test', 'edge', 'nightly']
The Dockerinstall::RepoOS data type.
Alias of Enum['centos', 'debian', 'fedora', 'ubuntu']
The Dockerinstall::StorageDriver data type.
Alias of Enum['aufs', 'devicemapper', 'btrfs', 'zfs', 'overlay', 'overlay2']
The Dockerinstall::StorageOptions data type.
Alias of Variant[Pattern[/^dm\./], Pattern[/^zfs\.fsname=/], Pattern[/^btrfs\.min_space=/], Pattern[/^overlay2\.(override_kernel_check|size)=/]]
The Dockerinstall::UserList data type.
Alias of Variant[String, Array[String, 1]]
The Dockerinstall::Version data type.
Alias of Variant[Enum['present', 'installed', 'absent'], Pattern[ /^17\.1[0-2]\./, /^17\.0[3-9]\./, /^18\.0[1-9]\./, /^(5:)?19\.03\./, /^20\.10\./, ]]