Git Product home page Git Product logo

rancher-ansible's People

Contributors

galal-hussein 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  avatar  avatar  avatar  avatar

rancher-ansible's Issues

Could not match supplied host pattern

When I run the playbook "Creating AWS Rancher stack" completes successfully however "Setting up Rancher Server gives me the following error. I've made sure I have everything exactly as in your README with the exception that I updated the AMI, Region and other details in the aws_vars.yml file necessary for my environment.

Parsed /vagrant/infrastructure/aws/providers/aws/inventory/ec2.py inventory source with script plugin
META: inventory successfully refreshed
META: ran handlers
META: ran handlers
Read vars_file 'providers/aws/vars/aws_vars.yml'
[WARNING]: Could not match supplied host pattern, ignoring: tag_InventoryName_rancher_stack_rancher_server

PLAY [Setting up Rancher Server] ***************************************************************************************************************************************************skipping: no hosts matched
Read vars_file 'providers/aws/vars/aws_vars.yml'
[WARNING]: Could not match supplied host pattern, ignoring: tag_InventoryName_rancher_stack_rancher_agent

PLAY [Register Rancher Hosts] ******************************************************************************************************************************************************skipping: no hosts matched

PLAY RECAP *************************************************************************************************************************************************************************localhost : ok=1 changed=0 unreachable=0 failed=0

Rancher agent failing to add in rancher 2.0

Can you please help with this? I tried looking for a work around this but was not successful

TASK [rancher-agent : Return the registration token URL of Rancher server] *****
fatal: [rancher-agent-1]: FAILED! => {"changed": false, "connection": "close", "content": "{\"id\":\"e057d7a4-1c06-43c4-903a-692aae58f35f\",\"type\":\"error\",\"links\":{},\"actions\":{},\"status\":405,\"code\":\"Method not allowed\",\"message\":\"Method not allowed\",\"detail\":null,\"baseType\":\"error\"}", "content_length": "189", "content_type": "application/json; charset=utf-8", "date": "Fri, 06 Oct 2017 10:04:50 GMT", "expires": "Thu, 01 Jan 1970 00:00:00 GMT", "failed": true, "json": {"actions": {}, "baseType": "error", "code": "Method not allowed", "detail": null, "id": "e057d7a4-1c06-43c4-903a-692aae58f35f", "links": {}, "message": "Method not allowed", "status": 405, "type": "error"}, "msg": "Status code was not [201]: HTTP Error 405: Method Not Allowed", "redirected": false, "server": "Jetty(9.2.11.v20150529)", "set_cookie": "PL=rancher;Path=/", "status": 405, "url": "http://192.168.33.10:8080/v2/registrationtokens?projectId=1a8", "x_api_account_id": "1a8", "x_api_client_ip": "192.168.33.11", "x_api_roles": "owner", "x_api_schemas": "http://192.168.33.10:8080/v2/schemas", "x_api_user_id": "1a1", "x_rancher_version": "v2.0.0-alpha7"}

repo description

You have "Using Ansible to to run Rancher platform and register hosts" instead of "Using Ansible to run Rancher platform and register hosts" in repo description...

Re-organise this repo

When go through the recommend ansible repo in Rancher README (https://github.com/joshuacox/ansibleplaybook-rancher), I like yours more.

But there are some other modules included which I don't think it is a good idea.

Let's focus it on Rancher Ansible playbook only.

  • Docker installation.

It should assume that Docker has been installed, it can be prepared by seperate Docker ansible playbook, or installed into base IMAGE directly (such as via packer).

The only thing Rancher ansible need check is, Docker version must be newer than v1.9.1+

  • wordpress and mysql module.

I understand you use them as a sample for others, but I hope it can be removed out of the repo. Or you can move it to test sub-folder as sample.

Since we have Rancher server/hosts running, we can create mysql and wordpress container in Rancher directly.

And if you'd like to show us the sample, it will be better to do it via api in rancher.

  • Initialize users/groups

add features to set a local admin account and generate an API key/pass to make the playbook work in production environment.

Can add new feature to integrate with ldap or active directory later.

Why Python 2?

Python 3 is installed in my base images. pip3 and python3 are symlinked by default in my base images. Are there any reasons to keep Python 2.7 in your roles?

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.