Giter Site home page Giter Site logo

docker-swarm-ansible's People

Contributors

nmarus 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

docker-swarm-ansible's Issues

have you tried using the official ansible glusterfs module?

and also:

  • would it be possible to use less then 3 nodes
  • how about conflicts: what if the same service (e.g. portainer) exists in multiple instances on different nodes and tries to read/write the same file as the other instance? is this handled by default in glusterfs or needs configuring?

thanks

Error with traefik ´main.yml line 34

Hi, i’m trying to run this without glusterFS and HA-Proxy and with ssh key on cloud servers.
Goal is to run a monogdb replica set and some other services.

For that I changed the host-file to this:

[swarm_managers]
First_ip
secound_ip
third_ip

[all:vars]
ansible_connection=ssh
ansible_user=my_user_with_sodo
device2_hdd_dev=/dev/sdb

And main.yml in roles/docker/ to this:

---
- import_tasks: docker.yml
# - import_tasks: plugins.yml

The error I get, when running

ansible-playbook --inventory-file=hosts-vagrant playbooks/install.yml

is:

[WARNING]: Could not match supplied host pattern, ignoring: swarm_workers

 [WARNING]: Could not match supplied host pattern, ignoring: gluster_nodes

ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to have been in '/git/server-setup-ansible/playbooks/roles/traefik/tasks/main.yml': line 34, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: Deploy stack from a compose file (on first swarm node)
  ^ here

What have I done wrong?
Any help would be great!

Workers should not join as manager

I was trying to use your asbible playbook, its very well written but I think you did not cared about joining the worker node, which it works fine with just the managers , if we use worker nodes as well the asible playbook breaks here:

- name: Add Docker node to existing Swarm as manager

You calling the playbook swarm-worker but the task is trying to join the node as manager.
as docker node ls wont work on the worker node.

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.