Ask Your Question
0

PE 2015.2 upgrade module from tar archive ?

asked 2015-09-23 03:28:04 -0500

FranzCC gravatar image

updated 2015-09-23 03:36:02 -0500

Hi, installation from tar archive works.
But how do i upgrade a module using a tar archive ?
I write special modules for special cases using geppetto.
So i export a tar archive.
If i change the module, due to feature enhancements, i raise the version and export a new release.
Logically i will use the puppet module upgrade options to upgrade the module in place.
Nevertheless this is not working because upgrade only works from forge.
Did puppetlabs forget about the option of upgrading a module from tar archives ?

Rgds. Franz

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-01-07 05:45:28 -0500

FranzCC gravatar image

updated 2016-03-18 08:37:35 -0500

Sorry for the very looooong latency.
Upgrade from tar archive doesn't work.
It always wants to have a tar archive downloaded from forge
This is not possible and i'm stuck now.

E.g:
puppet module upgrade --version=0.1.1 my-module.0.1.1.tar.gz --ignore-dependencies --environment production
Notice: Preparing to upgrade 'my-module.0.1.1.tar.gz' ...
Error: Could not upgrade module 'my-module.0.1.1.tar.gz
Module 'my-module.0.1.1.tar.gz' is not installed
Use puppet module install to install this module

Obviously puppet searches for the module using the tar format.
Unfortunately, puppet module upgrade only requests one parameter.
So, IMHO,a second options has to be implemented to upgrade a module like:

*puppet module upgrade --version=0.1.1 my-module my-module.0.1.1.tar.gz --ignore-dependencies --environment production *

I will file a support ticket, because this is a MUST feature.

Rgds.

Franz

Update: There's no way to update a module from a tar archive. You have to uninstall and install the new version of the module.

edit flag offensive delete link more
0

answered 2015-09-25 11:01:23 -0500

you can use:

puppet module upgrade file.tar.gz --ignore-dependencies

if you want to use a tar file... you could also upload the file to the forge and install from there..

Cheers Stuart

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-09-23 03:28:04 -0500

Seen: 696 times

Last updated: Mar 18 '16