GithubHelp home page GithubHelp logo

dragomeat / ansible-drone Goto Github PK

View Code? Open in Web Editor NEW

This project forked from appleboy/ansible-drone

0.0 1.0 0.0 115 KB

Ansible role to configure drone (server and agent)

Home Page: https://galaxy.ansible.com/appleboy/drone

License: MIT License

Jsonnet 100.00%

ansible-drone's Introduction

Ansible Role: drone

This role will install drone agents + server using docker

Build Status

Requirements

This role requires: docker installed on the server

Role Variables

Change the drone_host_port for expose port if conflict and update the drone_version from github release page.

drone_version: "latest"
drone_host_port: "8080"

Install the drone server or agent via the following config. Default is false.

drone_server_enable: "false"
drone_agent_enable: "false"

Default database is sqlite and drone can be installed with mysql or postgres database. See the followings.

drone_database_driver: "postgres"
drone_postgres_data_dir: "/var/lib/postgresql/data"
drone_postgres_password: "drone"
drone_postgres_user: "drone"
drone_postgres_db: "drone

mysql database (5.7 version)

drone_database_driver: "mysql"
drone_mysql_data_dir: "/var/lib/mysql/data"
drone_mysql_password: "drone"
drone_mysql_user: "drone"
drone_mysql_db: "drone"

additional parameters

The ansible role offers additional parameters - please check defaults/main.yml file.

Example Playbook

import the drone role from

$ ansible-galaxy install appleboy.drone

Add the following in playbook.

- hosts: drone
  vars_files:
    - vars/main.yml
  roles:
    - { role: appleboy.drone }

Inside vars/main.yml for drone-server

drone_server_enable: "true"
drone_version: "latest"
drone_server_host: "368a7a66.ngrok.io"
drone_server_proto: "https"
drone_rpc_secret: "30075d074bfd9e74cfd0b84a5886b986"
drone_github_client_id: "e2bdde88b88f7ccf873a"
drone_github_client_secret: "b0412c975bbf2b6fcd9b3cf5f19c8165b1c14d0c"

for drone-agent:

drone_agent_enable: "true"
drone_version: "latest"
drone_rpc_server: "http://192.168.64.2:8080"
drone_rpc_secret: "30075d074bfd9e74cfd0b84a5886b986"

ansible-drone's People

Contributors

appleboy avatar foobarquaxx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.