GithubHelp home page GithubHelp logo

ansible-vagrant_debops's People

Contributors

ganto avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

ansible-vagrant_debops's Issues

"Upload Ansible inventory" task fails with: 'dict object' has no attribute 'SSH_CLIENT'

#3 added vagrant_debops__inventory_vars including a default configuration which uses ansible_env.SSH_CLIENT. In some occasions it may happen, that the following error appears when running vagrant provision:

TASK [ganto.vagrant_debops : Upload Ansible inventory] *************************
fatal: [default]: FAILED! => {
  "changed": false, 
  "failed": true, 
  "msg": "AnsibleUndefinedVariable: {
    'ferm__ansible_controllers': [
      '{{ ansible_env.SSH_CLIENT.split(\" \")[0] }}/32'
    ]
    'core__ansible_controllers': [
      '{{ ansible_env.SSH_CLIENT.split(\" \")[0] }}/32'
    ],
    'tcpwrappers__ansible_controllers': [
      '{{ ansible_env.SSH_CLIENT.split(\" \")[0] }}/32'
    ]
  }: 'dict object' has no attribute 'SSH_CLIENT'"
}

Running debops inside a Vagrant box might lock out the vagrant user

When running debops or an individual DebOps role e.g. depending on debops.tcpwrappers the setup is not aware that you connect from outside to the Ansible host and therefore doesn't automatically allow SSH connections from your Vagrant host.

If you restart the box, you might end up with something like:

$ vagrant up                                                                                                                                                         
Bringing machine 'default' up with 'lxc' provider...                                                                                                                                                                                          
==> default: Checking if box 'oxid_esales/trusty64-lxc' is up to date...                                                                                                                                                                      
==> default: Setting up mount entries for shared folders...                                                                                                                                                                                   
    default: /vagrant => /home/ganto/vagrant/vagrant-projects/debops-trusty64-lxc                                                                                                                                                             
==> default: Starting container...                                                                                                                                                                                                            
==> default: Waiting for machine to boot. This may take a few minutes...                                                                                                                                                                      
    default: SSH address: 192.168.123.163:22                                                                                                                                                                                                  
    default: SSH username: vagrant                                                                                                                                                                                                            
    default: SSH auth method: private key                                                                                                                                                                                                     
    default: Warning: Connection reset. Retrying...                                                                                                                                                                                           
    default: Warning: Connection reset. Retrying...                                                                                                                                                                                           
    default: Warning: Connection reset. Retrying...                         

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.