Giter Site home page Giter Site logo

chef-takeaway's People

Contributors

danny-cheung avatar siso avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

chef-takeaway's Issues

Test suite

Run tests as last step of build pipeline

Install python-heatclient

Commented out in openstack.yml, as it break pip, which always returns:

Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2476, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
    ['__name__'])
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 74, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 25, in <module>
    from requests.compat import IncompleteRead
ImportError: cannot import name IncompleteRead

proxy-sample cookbook

Create ./share/chef/proxy-sample coobook to show how to make knife, kitchen and vagrant leverage proxy listening on tcp/8123.

Copy ssh keys from host

config.vm.provision "file", source: "#{Dir.home}/.ssh/config", destination: ".ssh/config"

copies ~/.ssh/config to the guest VM.

Should copy across id_rsa and id_rsa.pub as well.

Failure if .ssh/config and .gitconfig don't exist

vagrant up

fails when $HOME/.ssh/config or $HOME/.gitconfig don't exist.

If user is running the VM for the first time, they might not have those files ready.

The lines in question are

  # copy files to guest box
  config.vm.provision "file", source: "~/.gitconfig", destination: ".gitconfig"
  config.vm.provision "file", source: "#{Dir.home}/.ssh/config", destination: ".ssh/config"

Symlinks and Windows hosts

When:

  • The physical is host is Windows
  • The code contains symbolic links

Windows will be see the links as a normal file.

Kitchen tests will fail as the uploaded file is not registered as a symlink.

Demo cookbook

  • Setup webserver
  • Template landing page, display hostname and IPv4 address
  • Test with KitchenCI
    • Leverage .kitchen.yml to test in Docker container
    • Leverave .kitchen.local.yml to test in the Cloud

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.