Comments (6)
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.
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.
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.
Yeah, thanks.
from puppet-stash.
@Z3r0Sum Can I close this issue?
from puppet-stash.
@mkrakowitzer Yes, thanks.
from puppet-stash.
Related Issues (20)
- make a new release HOT 7
- Permission denied when trying to extract downloaded stash file
- Exec clause in service class conflicts with Jira module HOT 1
- Is support for Bitbucket 5 planned ? HOT 2
- Fix init scripts with product support
- Download of backup client fails
- Systemd Service/wrapped init script is not able to shut down Bitbucket HOT 4
- Archiving this module HOT 5
- Tomcat port should be configurable. HOT 6
- Upgrading stash to >3.8.0 requires puppet to run twice.
- upgrading to > 3.8 does not use the correct setenv.sh HOT 2
- Support for JMX HOT 8
- JAVA_HOME on CentOS 7 gets doubled when /bin/java specified as java_home HOT 5
- setenv.sh.erb not compatible with stash 3.10.2 HOT 6
- Feature requests: Don't have backup deletion managed by puppet. HOT 4
- allow a global parameter to all settings in stash-config.properties.erb HOT 2
- Download of backup client fails HOT 2
- backupclientURL gives a 404 HOT 1
- Auto backup prune not working HOT 14
- Add support for stash 4.0 (Bitbucket Server) HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-stash.