Giter VIP home page Giter VIP logo

Comments (6)

mkrakowitzer avatar mkrakowitzer commented on September 25, 2024

Yeah the parent directories will not be created for the home or the data directory, you will need to take care of that prior to calling the stash class. If you use the defaults which is /home/stash or /opt/stash. It should work fine without needing to do this.

Unfortunatly the file type does not allow for this, its documented here:https://projects.puppetlabs.com/issues/86

It would be hard for me to cator for the parent dirs without an exec { 'mkdir -p /foo/bar'': } which is not desirable.

from puppet-stash.

Z3r0Sum avatar Z3r0Sum commented on September 25, 2024

So, how can I manage the installdir via puppet, which is where the homedir will be created, if you're declaring it within your install.pp (line: 72-77)? If I'm provisioning a new server and want to have that installdir get created via puppet as a part of this process, it seems to fall over, or am I missing something? I guess I could use an exec, but that's kind of lame. Feels like the user should exist, create the installdir, and then subsequently create the stash homedir if you're going to manage all these components, which seems fair. What are your thoughts? I might be way off base here and missing something entirely.

from puppet-stash.

mkrakowitzer avatar mkrakowitzer commented on September 25, 2024

You need to have all the parent directories already created.

lets say installdir is '/opt/mydir'. This should work fine because /opt already exists. If installdir is '/opt/my/special/install/dir' you will need to take care of that prior to calling the stash module.

so something like this:

file { ['/opt/my', '/opt/my/special', '/opt/my/special', '/opt/my/special/install' ]:
  ensure => directory,
} ->

class { 'stash':
  installdir => '/opt/my/special/install/dir',
}

I hope this clears things up a bit.

from puppet-stash.

Z3r0Sum avatar Z3r0Sum commented on September 25, 2024

Yeah, thanks.

from puppet-stash.

mkrakowitzer avatar mkrakowitzer commented on September 25, 2024

@Z3r0Sum Can I close this issue?

from puppet-stash.

Z3r0Sum avatar Z3r0Sum commented on September 25, 2024

@mkrakowitzer Yes, thanks.

from puppet-stash.

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.