2018-12-13 22:10:07 +00:00
|
|
|
# xoxys.droneci
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
[![Build Status](https://drone.rknet.org/api/badges/ansible/xoxys.droneci/status.svg)](https://drone.rknet.org/ansible/xoxys.droneci)
|
2018-12-13 22:09:22 +00:00
|
|
|
|
2019-10-16 20:28:24 +00:00
|
|
|
|
2019-11-06 20:09:14 +00:00
|
|
|
Setup Drone CI base server
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
## Table of content
|
|
|
|
|
|
|
|
* [Default Variables](#default-variables)
|
2019-11-23 12:56:37 +00:00
|
|
|
* [droneci_admin](#droneci_admin)
|
|
|
|
* [droneci_agent_capacity](#droneci_agent_capacity)
|
2019-10-16 20:28:24 +00:00
|
|
|
* [droneci_agent_container_name](#droneci_agent_container_name)
|
|
|
|
* [droneci_agent_image](#droneci_agent_image)
|
2019-11-23 12:56:37 +00:00
|
|
|
* [droneci_agent_memory_limit](#droneci_agent_memory_limit)
|
|
|
|
* [droneci_agent_memory_reservation](#droneci_agent_memory_reservation)
|
2019-10-16 20:28:24 +00:00
|
|
|
* [droneci_agent_privileged](#droneci_agent_privileged)
|
2019-10-27 15:21:31 +00:00
|
|
|
* [droneci_db_name](#droneci_db_name)
|
|
|
|
* [droneci_db_password](#droneci_db_password)
|
2019-11-23 12:56:37 +00:00
|
|
|
* [droneci_db_port](#droneci_db_port)
|
|
|
|
* [droneci_db_server](#droneci_db_server)
|
2019-10-27 15:21:31 +00:00
|
|
|
* [droneci_db_ssl_mode](#droneci_db_ssl_mode)
|
2019-11-23 12:56:37 +00:00
|
|
|
* [droneci_db_type](#droneci_db_type)
|
|
|
|
* [droneci_db_user](#droneci_db_user)
|
2019-11-24 22:11:57 +00:00
|
|
|
* [droneci_docker_compose_bin](#droneci_docker_compose_bin)
|
2019-11-23 12:56:37 +00:00
|
|
|
* [droneci_docker_socket_path](#droneci_docker_socket_path)
|
2019-10-16 20:28:24 +00:00
|
|
|
* [droneci_gitea_enabled](#droneci_gitea_enabled)
|
|
|
|
* [droneci_gitea_server](#droneci_gitea_server)
|
|
|
|
* [droneci_gitea_skip_verify](#droneci_gitea_skip_verify)
|
2019-11-23 12:56:37 +00:00
|
|
|
* [droneci_host](#droneci_host)
|
|
|
|
* [droneci_http_proxy](#droneci_http_proxy)
|
|
|
|
* [droneci_https_proxy](#droneci_https_proxy)
|
2019-10-16 20:28:24 +00:00
|
|
|
* [droneci_license_key](#droneci_license_key)
|
2019-11-23 12:56:37 +00:00
|
|
|
* [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)
|
2019-10-16 20:28:24 +00:00
|
|
|
* [droneci_server_memory_limit](#droneci_server_memory_limit)
|
|
|
|
* [droneci_server_memory_reservation](#droneci_server_memory_reservation)
|
2019-11-23 12:56:37 +00:00
|
|
|
* [droneci_server_privileged](#droneci_server_privileged)
|
|
|
|
* [droneci_service_directory](#droneci_service_directory)
|
|
|
|
* [droneci_version](#droneci_version)
|
2019-10-16 20:28:24 +00:00
|
|
|
* [Dependencies](#dependencies)
|
|
|
|
* [License](#license)
|
|
|
|
* [Author](#author)
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## Default Variables
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_admin
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_admin: _unset_
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_agent_capacity
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_agent_capacity: 2
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_agent_container_name
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_agent_container_name: drone-agent
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_agent_image
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_agent_image: drone/agent:{{ droneci_version }}
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_agent_memory_limit
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_agent_memory_limit: _unset_
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
#### Example usage
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_agent_memory_limit: 512m
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_agent_memory_reservation
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_agent_memory_reservation: _unset_
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
#### Example usage
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_agent_memory_reservation: 256m
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_agent_privileged
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_agent_privileged: false
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_db_name
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_db_name: droneci
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_db_password
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_db_password: secure
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_db_port
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_db_port: 5432
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_db_server
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_db_server: localhost
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_db_ssl_mode
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_db_ssl_mode: disable
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_db_type
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_db_type: sqlite
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_db_user
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_db_user: pgdroneci
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-24 22:11:57 +00:00
|
|
|
### droneci_docker_compose_bin
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
droneci_docker_compose_bin: /usr/local/bin/docker-compose
|
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_docker_socket_path
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_docker_socket_path: /var/run/docker.sock
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_gitea_enabled
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_gitea_enabled: false
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_gitea_server
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_gitea_server: http://my-git.example.com
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_gitea_skip_verify
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_gitea_skip_verify: false
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_host
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_host: http://localhost
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_http_proxy
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_http_proxy: _unset_
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_https_proxy
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_https_proxy: _unset_
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_license_key
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_license_key: _unset_
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_no_proxy
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_no_proxy:
|
|
|
|
- drone-server
|
|
|
|
- drone-agent
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_restart_policy
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_restart_policy: always
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_secret
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_secret: myveryownsecret
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_server_container_name
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_server_container_name: drone-server
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_server_exposed_ip
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_server_exposed_ip: 127.0.0.1
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_server_exposed_port
|
|
|
|
|
|
|
|
#### Default value
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_server_exposed_port: 8080
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_server_extra_hosts
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_server_extra_hosts: []
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_server_image
|
|
|
|
|
|
|
|
#### Default value
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_server_image: drone/drone:{{ droneci_version }}
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_server_memory_limit
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_server_memory_limit: _unset_
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-10-16 20:51:44 +00:00
|
|
|
#### Example usage
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_server_memory_limit: 512m
|
2019-10-16 20:51:44 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_server_memory_reservation
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_server_memory_reservation: _unset_
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-10-16 20:51:44 +00:00
|
|
|
#### Example usage
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_server_memory_reservation: 256m
|
2019-10-16 20:51:44 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_server_privileged
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_server_privileged: false
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_service_directory
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_service_directory: /var/lib/docker/services/drone-ci
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
2019-11-23 12:56:37 +00:00
|
|
|
### droneci_version
|
2019-10-16 20:28:24 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-11-23 12:56:37 +00:00
|
|
|
droneci_version: 1.6.0
|
2019-10-16 20:28:24 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Dependencies
|
|
|
|
|
|
|
|
None.
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
MIT
|
|
|
|
|
|
|
|
## Author
|
|
|
|
|
2019-11-07 08:29:50 +00:00
|
|
|
[xoxys](https://gitea.rknet.org/xoxys)
|