Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use symlink for constant install path with multiple versions #40

Merged
merged 1 commit into from Aug 31, 2015

Conversation

patcon
Copy link
Contributor

@patcon patcon commented Aug 31, 2015

Seems this would be a bit more intuitive and similar to how capistrano and lots of other tools manage deployment of multiple versions. Any objections in principle?

opt
└── atlassian
    └── confluence
        ├── atlassian-confluence-5.4.5
        ├── atlassian-confluence-5.5.7
        └── current -> atlassian-confluence-5.5.7

@legal90
Copy link
Contributor

legal90 commented Aug 30, 2015

I suppose, it can be achieved by ark resource (related to #38). chef-stash cookbook is a good example:
https://github.com/bflad/chef-stash/blob/04d09e177d5edb0e8d89be1caa740564868f4884/recipes/linux_standalone.rb#L43-L51

But it is applicable only for standalone installation type, not for installer.

@patcon
Copy link
Contributor Author

patcon commented Aug 31, 2015

Ok, done and done. This is a little different structure than above, but aligns more with how ark likes to work:

opt
└── atlassian
    ├── confluence -> confluence-5.5.7
    ├── confluence-5.4.5
    └── confluence-5.5.7

This takes the approach that node['confluence']['install_path'] = '/opt/atlassian/confluence', which I think makes more sense than stash's setting it as /opt/atlassian.

@patcon
Copy link
Contributor Author

patcon commented Aug 31, 2015

To clarify, stash's way requires that recipes and templates need to add a suffix to install_path each time, which seems non-ideal:
https://github.com/bflad/chef-stash/blob/master/recipes/tomcat_configuration.rb#L3

legal90 added a commit that referenced this pull request Aug 31, 2015
Use symlink for constant install path with multiple versions
@legal90 legal90 merged commit 0137a75 into sous-chefs:master Aug 31, 2015
@legal90
Copy link
Contributor

legal90 commented Aug 31, 2015

Great, thanks!

@gsreynolds gsreynolds mentioned this pull request Sep 3, 2015
@patcon patcon deleted the feature/ark branch September 4, 2015 21:28
@lock
Copy link

lock bot commented May 10, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants