https://github.com/paralect/ansible-drone
Ansible role for drone deployment
https://github.com/paralect/ansible-drone
paralect-stack
Last synced: 10 months ago
JSON representation
Ansible role for drone deployment
- Host: GitHub
- URL: https://github.com/paralect/ansible-drone
- Owner: paralect
- License: mit
- Created: 2017-10-18T15:17:04.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-08-11T05:23:22.000Z (over 4 years ago)
- Last Synced: 2025-01-21T15:49:23.075Z (11 months ago)
- Topics: paralect-stack
- Size: 475 KB
- Stars: 12
- Watchers: 13
- Forks: 8
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Ansible Drone
[](https://github.com/paralect/stack)
[](#contributors)
[](https://galaxy.ansible.com/paralect/drone)
[](https://github.com/paralect/ansible-mongo/blob/master/LICENSE)
[](http://makeapullrequest.com)
[](https://github.com/paralect/ansible-drone/watchers)
[](https://github.com/paralect/ansible-drone/stargazers)
[](https://twitter.com/paralect)
[](https://twitter.com/intent/tweet?text=I%27m%20using%20Stack%20components%20to%20build%20my%20next%20product%20🚀.%20Check%20it%20out:%20https://github.com/paralect/ansible-drone)
An ansible role for the [drone](https://github.com/drone/drone) CI deployment with Github/Bitbucket Cloud integration and PostgreSQL database.
## Role Variables
Available variables:
|Name|Default|Description|
|:--:|:--:|:----------|
|**`drone_version`**|`latest`|Version of Drone CI, see other versions [here](https://hub.docker.com/r/drone/drone/tags)|
|**`drone_user_create`**|`""`|Initial administrative account, which can be used to grant the administrator role to additional accounts. Read more [more](https://docs.drone.io/administration/user/admins)|
|**`drone_agents`**|`[{name: "Nancy"}]`|Name of the docker agent container, you can add more than one agent|
|**`drone_server_host`**|`""`|A string containing your Drone server hostname or IP address|
|**`drone_rpc_secret`**|`hTirsXmrY4YsyK79ELgB`|Drone secret key, used for private communication between agent and web UI [more info](https://docs.drone.io/reference/server/drone-rpc-secret)|
|**`drone_github_client_id`**|`""`|Github oauth application client identifier, [more info](https://docs.drone.io/installation/github/single-machine)|
|**`drone_github_client_secret`**|`""`|Github oauth application client secret, [more info](https://docs.drone.io/installation/github/single-machine)|
|**`drone_postgress_password`**|`droneRocks23@p`|A password to postgress db used by drone|
|**`drone_postgress_user`**|`drone`|A username to postgress db used by drone, [read more](https://docs.drone.io/administration/server/database)|
|**`drone_postgress_db`**|`drone`|A name of to postgress db used by drone, [read more](https://docs.drone.io/administration/server/database)|
|**`drone_postgress_data_dir`**|`/drone-postgres-data`|A directory on a host machine, where postgresql data stored|
|**`nginx_drone_internal_host`**|`http://localhost:8000`|Internal drone ui http url used by nginx to proxy traffic. For example: http://localhost:8000|
## Dependencies
[Docker](https://www.docker.com/) must be installed on the server in order to use this role. If you don't have docker on your server we recommend [angstwad.docker_ubuntu](https://github.com/angstwad/docker.ubuntu) Ansible role.
Example of using `angstwad.docker_ubuntu`:
```yml
---
- name: Setup drone ci server
hosts: drone
become: true
roles:
- { role: angstwad.docker_ubuntu }
```
## Quick example
Example of the playbook file:
```yml
---
- name: Deploy drone CI server
hosts: drone
become_user: root
become: true
roles:
- role: paralect.drone
# Version of Drone CI, see other versions here: https://hub.docker.com/r/drone/drone/tags/
drone_version: latest
# the url, where drone instance will be publicly available
# typically you would have nginx in front of Drone CI
drone_server_host: 178.62.116.103
# Drone secret key, used for private communication between agent and web UI
# more info: https://docs.drone.io/reference/server/drone-rpc-secret/
drone_rpc_secret: hTirsXmrY4YsyK79ELgB
# Github oauth application client id and secret, more info https://docs.drone.io/installation/github/single-machine/
drone_github_client_id:
drone_github_client_secret:
# A password to postgress db used by drone
drone_postgress_password: droneRocks23@p
# A username to postgress db used by drone, read more: https://docs.drone.io/administration/server/database/
drone_postgress_user: drone
# A name of to postgress db used by drone, read more: https://docs.drone.io/administration/server/database/
drone_postgress_db: drone
# a directory on a host machine, where postgresql data stored
drone_postgress_data_dir: /drone-postgres-data
```
## Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
Every release is documented on the Github [Releases](https://github.com/paralect/node-mongo/releases) page.
## License
Ansible-drone is released under the [MIT License](https://github.com/paralect/ansible-mongo/blob/master/LICENSE).
## Contributing
Please read [CONTRIBUTING.md](https://github.com/paralect/ansible-drone/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
## Contributors
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
| [
Andrew Orsich](https://github.com/anorsich)
[📖](https://github.com/paralect/ansible-drone/commits?author=anorsich "Documentation") [🤔](#ideas-anorsich "Ideas, Planning, & Feedback") [💻](https://github.com/paralect/ansible-drone/commits?author=anorsich "Code") [📖](https://github.com/paralect/ansible-drone/commits?author=anorsich "Documentation") [🤔](#ideas-anorsich "Ideas, Planning, & Feedback") [👀](#review-anorsich "Reviewed Pull Requests") | [
Evgeny Zhivitsa](https://github.com/ezhivitsa)
[📖](https://github.com/paralect/ansible-drone/commits?author=ezhivitsa "Documentation") |
| :---: | :---: |
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!