Robert Kaussow
43c2528a82
Author: Robert Kaussow <mail@geeklabor.de> Date: Wed Jan 22 23:24:46 2020 +0100 force run
368 lines
5.7 KiB
Markdown
368 lines
5.7 KiB
Markdown
---
|
|
title: droneci
|
|
type: docs
|
|
---
|
|
|
|
Setup Drone CI base server
|
|
|
|
* [Default Variables](#default-variables)
|
|
* [droneci_admin](#droneci-admin)
|
|
* [droneci_agent_capacity](#droneci-agent-capacity)
|
|
* [droneci_agent_container_name](#droneci-agent-container-name)
|
|
* [droneci_agent_image](#droneci-agent-image)
|
|
* [droneci_agent_memory_limit](#droneci-agent-memory-limit)
|
|
* [droneci_agent_memory_reservation](#droneci-agent-memory-reservation)
|
|
* [droneci_agent_privileged](#droneci-agent-privileged)
|
|
* [droneci_db_name](#droneci-db-name)
|
|
* [droneci_db_password](#droneci-db-password)
|
|
* [droneci_db_port](#droneci-db-port)
|
|
* [droneci_db_server](#droneci-db-server)
|
|
* [droneci_db_ssl_mode](#droneci-db-ssl-mode)
|
|
* [droneci_db_type](#droneci-db-type)
|
|
* [droneci_db_user](#droneci-db-user)
|
|
* [droneci_docker_compose_bin](#droneci-docker-compose-bin)
|
|
* [droneci_docker_socket_path](#droneci-docker-socket-path)
|
|
* [droneci_gitea_enabled](#droneci-gitea-enabled)
|
|
* [droneci_gitea_server](#droneci-gitea-server)
|
|
* [droneci_gitea_skip_verify](#droneci-gitea-skip-verify)
|
|
* [droneci_host](#droneci-host)
|
|
* [droneci_http_proxy](#droneci-http-proxy)
|
|
* [droneci_https_proxy](#droneci-https-proxy)
|
|
* [droneci_license_key](#droneci-license-key)
|
|
* [droneci_no_proxy](#droneci-no-proxy)
|
|
* [droneci_restart_policy](#droneci-restart-policy)
|
|
* [droneci_secret](#droneci-secret)
|
|
* [droneci_server_container_name](#droneci-server-container-name)
|
|
* [droneci_server_exposed_ip](#droneci-server-exposed-ip)
|
|
* [droneci_server_exposed_port](#droneci-server-exposed-port)
|
|
* [droneci_server_extra_hosts](#droneci-server-extra-hosts)
|
|
* [droneci_server_image](#droneci-server-image)
|
|
* [droneci_server_memory_limit](#droneci-server-memory-limit)
|
|
* [droneci_server_memory_reservation](#droneci-server-memory-reservation)
|
|
* [droneci_server_privileged](#droneci-server-privileged)
|
|
* [droneci_service_directory](#droneci-service-directory)
|
|
* [droneci_version](#droneci-version)
|
|
* [Dependencies](#dependencies)
|
|
|
|
---
|
|
|
|
## Default Variables
|
|
|
|
### droneci_admin
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_admin: _unset_
|
|
```
|
|
|
|
### droneci_agent_capacity
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_agent_capacity: 2
|
|
```
|
|
|
|
### droneci_agent_container_name
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_agent_container_name: drone-agent
|
|
```
|
|
|
|
### droneci_agent_image
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_agent_image: drone/drone-runner-docker:1.0.1
|
|
```
|
|
|
|
### droneci_agent_memory_limit
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_agent_memory_limit: _unset_
|
|
```
|
|
|
|
#### Example usage
|
|
|
|
```YAML
|
|
droneci_agent_memory_limit: 512m
|
|
```
|
|
|
|
### droneci_agent_memory_reservation
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_agent_memory_reservation: _unset_
|
|
```
|
|
|
|
#### Example usage
|
|
|
|
```YAML
|
|
droneci_agent_memory_reservation: 256m
|
|
```
|
|
|
|
### droneci_agent_privileged
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_agent_privileged: false
|
|
```
|
|
|
|
### droneci_db_name
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_db_name: droneci
|
|
```
|
|
|
|
### droneci_db_password
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_db_password: secure
|
|
```
|
|
|
|
### droneci_db_port
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_db_port: 5432
|
|
```
|
|
|
|
### droneci_db_server
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_db_server: localhost
|
|
```
|
|
|
|
### droneci_db_ssl_mode
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_db_ssl_mode: disable
|
|
```
|
|
|
|
### droneci_db_type
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_db_type: sqlite
|
|
```
|
|
|
|
### droneci_db_user
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_db_user: pgdroneci
|
|
```
|
|
|
|
### droneci_docker_compose_bin
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_docker_compose_bin: /usr/local/bin/docker-compose
|
|
```
|
|
|
|
### droneci_docker_socket_path
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_docker_socket_path: /var/run/docker.sock
|
|
```
|
|
|
|
### droneci_gitea_enabled
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_gitea_enabled: false
|
|
```
|
|
|
|
### droneci_gitea_server
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_gitea_server: http://my-git.example.com
|
|
```
|
|
|
|
### droneci_gitea_skip_verify
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_gitea_skip_verify: false
|
|
```
|
|
|
|
### droneci_host
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_host: http://localhost
|
|
```
|
|
|
|
### droneci_http_proxy
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_http_proxy: _unset_
|
|
```
|
|
|
|
### droneci_https_proxy
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_https_proxy: _unset_
|
|
```
|
|
|
|
### droneci_license_key
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_license_key: _unset_
|
|
```
|
|
|
|
### droneci_no_proxy
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_no_proxy:
|
|
- drone-server
|
|
- drone-agent
|
|
```
|
|
|
|
### droneci_restart_policy
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_restart_policy: always
|
|
```
|
|
|
|
### droneci_secret
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_secret: myveryownsecret
|
|
```
|
|
|
|
### droneci_server_container_name
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_server_container_name: drone-server
|
|
```
|
|
|
|
### droneci_server_exposed_ip
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_server_exposed_ip: 127.0.0.1
|
|
```
|
|
|
|
### droneci_server_exposed_port
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_server_exposed_port: 8080
|
|
```
|
|
|
|
### droneci_server_extra_hosts
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_server_extra_hosts: []
|
|
```
|
|
|
|
### droneci_server_image
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_server_image: drone/drone:{{ droneci_version }}
|
|
```
|
|
|
|
### droneci_server_memory_limit
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_server_memory_limit: _unset_
|
|
```
|
|
|
|
#### Example usage
|
|
|
|
```YAML
|
|
droneci_server_memory_limit: 512m
|
|
```
|
|
|
|
### droneci_server_memory_reservation
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_server_memory_reservation: _unset_
|
|
```
|
|
|
|
#### Example usage
|
|
|
|
```YAML
|
|
droneci_server_memory_reservation: 256m
|
|
```
|
|
|
|
### droneci_server_privileged
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_server_privileged: false
|
|
```
|
|
|
|
### droneci_service_directory
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_service_directory: /var/lib/docker/services/drone-ci
|
|
```
|
|
|
|
### droneci_version
|
|
|
|
#### Default value
|
|
|
|
```YAML
|
|
droneci_version: 1.6.0
|
|
```
|
|
|
|
## Dependencies
|
|
|
|
None.
|