Giter Club home page Giter Club logo

drone-ansible's Introduction

Build Status

fleet

Leveraging Docker Engine's built-in Swarm Mode on Ubuntu Server LTS Virtual Machines. This is the first piece of code that should be executed against a fresh host on the diesel.net domain

Checking-In New Hosts

To add a new host (or set of hosts) create a new local branch name with the pattern check-in/*, add the new hosts and their configuration to the inventory, then push. Please delete your check-in/* branch after merging.

Bootstrapping Hosts

Pushes to stable branches will trigger the entire fleet to be bootstrapped.

Updating Hosts

You will need the following installed:

Python 3.11+

  1. Create a Python Virtual Environment (venv) and activate it.

    python3 -m venv venv
    source venv/bin/activate
  2. Install Ansible.

    pip install --upgrade pip setuptools wheel pip-tools
    pip install ansible==7.2.0
  3. Install Ansible roles.

    ansible-galaxy install --force --role-file .ansible/roles/check-in_requirements.yaml --roles-path .ansible/roles
  4. Update all the Ubuntu hosts's Apt packages and reboot if necessary.

    ansible-playbook --inventory .ansible/inventories/dev  --inventory .ansible/inventories/prod --extra-vars auto_reboot=yes .ansible/update.yaml

drone-ansible's People

Contributors

alexrjs avatar andviro avatar appleboy avatar darkmattercoder avatar hrenard avatar kevinanew avatar mwl avatar olanystrom avatar renovate-bot avatar tboerger avatar techknowlogick avatar thomasf avatar tomdaley92 avatar wbh1 avatar xoxys avatar

drone-ansible's Issues

Figure out what I'm doing with this fork

Problem: No one wants to maintain the official Drone Ansible plugin, and now it's on an old version of ansible (pre ansible-core/community)

Solutions:

  1. Maintain a fork. There are some multi-year epen PR's to the official repo that still have not been merged yet, so I don't think creating a PR is an option here... This is sad.

  2. Create a new plugin from scratch, so that we can use something a little more approachable (e.g. python) that other developers can iterate on as well.

After some fiddling, I'm leaning towards "porting" the current plugin code over the a Python 3 version.. Just need to find the time to get around to this..

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.