Giter VIP home page Giter VIP logo

ansible-packer's People

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

Watchers

 avatar  avatar  avatar

ansible-packer's Issues

Packer fills /tmp, does not clean up after itself

According to @ichilton in issue #2, packer fills up /tmp, and although supposedly it obeys the TMPDIR environment variable to change where it builds, supplying this through Ansible doesn't appear to transfer through to packer.

  1. Figure out why setting TMPDIR doesn't affect packer behavior
  2. Either make the Ansible-set environment variable pass through, or provide a way to force it through via a module argument.
  3. Figure out if there's a good reason packer isn't cleaning up after itself.
  4. Make the module clean up after itself. Might want to make this optional.

SyntaxError "expect OSError, e:"

Hi, I thanks for this package. The README promises what I looked for. However when I try to use it (I did put the script in /usr/share/ansible/packaging/packer I get the following error when I run a playbook on localhost:

failed: [localhost] => {"failed": true, "parsed": false}
invalid output was:   File "/root/.ansible/tmp/ansible-tmp-1413837396.47-165857690078709/packer", line 527
    except OSError, e:                                                                                                                                                      
                  ^                                                                                                                                                         
SyntaxError: invalid syntax

Packages fail to build; invalid option '--asroot'

If I run the folowing with sudo:

- name: install pkgname
  packer: name=pkgname

I get this error message:

failed: [user@host] => (item=pkgname) => {"failed": true, "item": "pkgname"}
msg: failed to install package pkgname, because: makepkg: invalid option '--asroot'

This is because with version 4.2.0 of makepkg the "--asroot" parameter has been removed.
(https://projects.archlinux.org/pacman.git/tree/NEWS#n57)

If I run it without sudo it hangs forever, waiting for a password.

/tmp running out of free space

/tmp running out of free space is especially likely when using Packer with Ansible (full system installs).

Would it be possible to trash /tmp/packerbuild-1000/* after each (successful or failed) installation of a package?

Thanks for looking into this!

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.