Coder Social home page Coder Social logo

examples's Introduction

DebOps Examples

This is a repository of example DebOps projects - mostly Ansible inventories and some additional Bash scripts, when user needs to perform actions outside Ansible.

Further documentation will be added at a later time.

Basic examples

  • vagrant-multi-machine: Using Debops with a multi-machine Vagrantfile
  • webhost-gitusers-dokuwiki: Setting up a Webserver with nginx, docuwiki and gituser.
  • testing-roles-rolespec-vagrant: Setting up a virtual machine (using Vagrant) for testing roles using rolespec

Advanced examples

  • debops-bootstrap: Bootstrap a DebOps virtual machine with Vagrant and run debops against it.
  • devlab: manage a "development lab" on an Ubuntu/Xubuntu host with KVM virtual machines guests, which also are LXC hosts for containers.

Other examples

  • vagrant-ansible-single-machine: Using Ansible (but not debops) with a single Vagrant box.

examples's People

Contributors

drybjed avatar ganto avatar htgoebel avatar reixd avatar xtimon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

examples's Issues

webhost-gitusers-dokuwiki example doesn't show dokuwiki

I expected the example to have dokuwiki installed, but it's not installed.

I guess that the machine needs to be grouped into the debops_dokuwiki group.

Also, when loading the machine's address in a web browser, the nginx default page is shown. It's unclear how to open the dokuwiki.

vagrant-multi-machine

To simplify the Ansible/Vagrant issue I created a basic provisioner which outputs the vagrant file to wherever you like. You can then run Ansible or Debops outside of Vagrant as normal. Using a custom provisioner means you don't need to create a dummy playbook, vagrant won't try to run Ansible at all and you can specify where you want the inventory to be created, so you don't have to use symlinks. It also means you don't have to deal with port numbers and ssh keys like you would with a hand-crafted inventory file.

I haven't yet fixed the issue of it running for each machine defined in the Vagrantfile , but doing so doesn't hurt anything and is easy to work around.

bootstrapping vm fails

Trying to bootstrap a VM in multi VM environment:

$ ANSIBLE_SSH_ARGS="-o UserKnownHostsFile=/dev/null" debops boostrap -l h1 -u root -k
Running Ansible playbooks:
/usr/local/lib/python3.8/site-packages/debops/ansible/playbooks/site.yml
ERROR! the playbook: boostrap could not be found

On a mac with brew installed ansible, debops via pip. Any ideas?

webhost-gitusers-dokuwiki example documentation wrong

currently, the documentation states

    ANSIBLE_SSH_ARGS="-o UserKnownHostsFile=/dev/null" debops ./simpletest.yml

that should probably be test.yml as the simpletest.yml file does not exist.

Also, I recommend explicitly calling env as putting the variables in front is a bashism.

But running test.yml yields:

env ANSIBLE_SSH_ARGS="-o UserKnownHostsFile=/dev/null" debops test.yml 
Running Ansible playbook from:
test.yml ...
ERROR: debug is not a legal parameter in an Ansible task or handler

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.