Giter Club home page Giter Club logo

Comments (11)

nanliu avatar nanliu commented on June 17, 2024 1

nope, it currently does not support puppet:///, you can use a file resource + archive with local path, but this won't allow cleanup. This is a new feature request.

from puppet-archive.

jyaworski avatar jyaworski commented on June 17, 2024

@nanliu didn't this happen at some time?

@otteydw what version are you using? Of Archive, that is.

from puppet-archive.

otteydw avatar otteydw commented on June 17, 2024

@jyaworski - I am using puppet-archive 0.5.1 which I installed today.

from puppet-archive.

jhg03a avatar jhg03a commented on June 17, 2024

@nanliu How would you go about this workaround? There doesn't appear to be any documentation on local file archive usage.

from puppet-archive.

rnelson0 avatar rnelson0 commented on June 17, 2024

The duplicate test implies that file:// will suffice.

from puppet-archive.

jhg03a avatar jhg03a commented on June 17, 2024

This works for me. However there was a lot of trial and error here. There are many, many ways to get a silent failure that looks like success.

  $docs_filename = 'help.tar.gz'
  $docs_gz_path  = "/tmp/${docs_filename}"
  $homedir = '/home/myuser/'

  file {$docs_gz_path:
    ensure => file,
    source => "puppet:///modules/profile/${docs_filename}",
  }

  archive { $docs_gz_path:
    path          => $docs_gz_path,
    extract       => true,
    extract_path  => $homedir,
    creates       => "${homedir}/help" #directory inside tgz
    require       => [ File[$homedir], File[$docs_gz_path] ],
  }

from puppet-archive.

rnelson0 avatar rnelson0 commented on June 17, 2024

Would you be willing to open a PR to update the documentation, to help others avoid this issue?

from puppet-archive.

jhg03a avatar jhg03a commented on June 17, 2024

Done.

from puppet-archive.

nanliu avatar nanliu commented on June 17, 2024

If you have examples for those silent errors, please file an issue.

from puppet-archive.

jhg03a avatar jhg03a commented on June 17, 2024

They are mostly surrounding proper usage. For instance: use source instead of path or leave off the creates. The catalog will compile and run successfully, but no useful output will occur.

from puppet-archive.

nanliu avatar nanliu commented on June 17, 2024

This feature has been added and released in 2.0.0

from puppet-archive.

Related Issues (20)

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.