Managing puppet module

155 views
Skip to first unread message

Albert Shih

unread,
Dec 13, 2017, 8:26:37 AM12/13/17
to puppet...@googlegroups.com
Hi everyone.

I'm not sure if it's a bug or what. Here what puppet module list give me :

├── puppetlabs-apt (v2.4.0)
├── puppetlabs-stdlib (v4.24.0)

but if I try to upgrade puppetlabs-apt they say

Notice: Downloading from https://forgeapi.puppet.com ...
Error: Could not upgrade module 'puppetlabs-apt' (v2.4.0 -> latest)
There are 7 newer versions
No combination of dependency upgrades would satisfy all dependencies
Dependencies will not be automatically upgraded across major versions
Upgrading one or more of these modules may permit the upgrade to succeed:
- puppetlabs-stdlib
Use `puppet module upgrade --force` to upgrade only this module

but puppetlabs-stdlib is already at the last version (just check).

And if I download the puppetlabs-apt and check inside de metadata.json I
find out :

"dependencies": [
{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 4.16.0 < 5.0.0"
}
],

and as I know 4.24.0 match the version_requirement....

Regards
--
Albert SHIH
xmpp: j...@obspm.fr
Heure local/Local time:
Wed Dec 13 14:21:53 CET 2017

David Schmitt

unread,
Dec 14, 2017, 3:51:06 AM12/14/17
to puppet...@googlegroups.com
Hi Albert,

I tested this quickly on my system and it seems to work fine here. Can you share more details (puppet version, other installed modules) of your system?


Cheers, David

Puppet 3:

david@davids:~/git/tmp/foo$ bundle exec puppet module install puppetlabs-apt --version 2.4.0
Notice: Preparing to install into /home/david/.puppet/modules ...
Notice: Created target directory /home/david/.puppet/modules
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
/home/david/.puppet/modules
└─┬ puppetlabs-apt (v2.4.0)
  └── puppetlabs-stdlib (v4.24.0)
david@davids:~/git/tmp/foo$ bundle exec puppet module upgrade puppetlabs-apt
Notice: Preparing to upgrade 'puppetlabs-apt' ...
Notice: Found 'puppetlabs-apt' (v2.4.0) in /home/david/.puppet/modules ...
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Notice: Upgrading -- do not interrupt ...
/home/david/.puppet/modules
└── puppetlabs-apt (v2.4.0 -> v4.4.1)
david@davids:~/git/tmp/foo$ bundle exec puppet module list
/home/david/.puppet/modules
├── puppetlabs-apt (v4.4.1)
└── puppetlabs-stdlib (v4.24.0)
david@davids:~/git/tmp/foo$

Puppet 4:

david@davids:~/git/tmp/foo$ bundle exec puppet module install puppetlabs-apt --version 2.4.0
Notice: Preparing to install into /home/david/.puppetlabs/etc/code/modules ...
Notice: Created target directory /home/david/.puppetlabs/etc/code/modules

Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Installing -- do not interrupt ...
/home/david/.puppetlabs/etc/code/modules
└─┬ puppetlabs-apt (v2.4.0)
  └── puppetlabs-stdlib (v4.24.0)
david@davids:~/git/tmp/foo$ bundle exec puppet module upgrade puppetlabs-apt
Notice: Preparing to upgrade 'puppetlabs-apt' ...
Notice: Found 'puppetlabs-apt' (v2.4.0) in /home/david/.puppetlabs/etc/code/modules ...

Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Upgrading -- do not interrupt ...
/home/david/.puppetlabs/etc/code/modules
└── puppetlabs-apt (v2.4.0 -> v4.4.1)
david@davids:~/git/tmp/foo$ bundle exec puppet module list
/home/david/.puppetlabs/etc/code/modules
├── puppetlabs-apt (v4.4.1)
└── puppetlabs-stdlib (v4.24.0)
/opt/puppetlabs/puppet/modules (no modules installed)
david@davids:~/git/tmp/foo$


Puppet 5:

david@davids:~/git/tmp/foo$ bundle exec puppet module install puppetlabs-apt --version 2.4.0
Notice: Preparing to install into /home/david/.puppetlabs/etc/code/modules ...
Notice: Created target directory /home/david/.puppetlabs/etc/code/modules

Notice: Downloading from https://forgeapi.puppet.com ...
Notice: VersionRanges will always be strict when using non-vendored SemanticPuppet gem, version 1.0.1
Notice: Installing -- do not interrupt ...
/home/david/.puppetlabs/etc/code/modules
└─┬ puppetlabs-apt (v2.4.0)
  └── puppetlabs-stdlib (v4.24.0)
david@davids:~/git/tmp/foo$ bundle exec puppet module upgrade puppetlabs-apt
Notice: Preparing to upgrade 'puppetlabs-apt' ...
Notice: Found 'puppetlabs-apt' (v2.4.0) in /home/david/.puppetlabs/etc/code/modules ...
Notice: VersionRanges will always be strict when using non-vendored SemanticPuppet gem, version 1.0.1

Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Upgrading -- do not interrupt ...
/home/david/.puppetlabs/etc/code/modules
└── puppetlabs-apt (v2.4.0 -> v4.4.1)
david@davids:~/git/tmp/foo$ bundle exec puppet module list
Notice: VersionRanges will always be strict when using non-vendored SemanticPuppet gem, version 1.0.1
/home/david/.puppetlabs/etc/code/modules
├── puppetlabs-apt (v4.4.1)
└── puppetlabs-stdlib (v4.24.0)
/opt/puppetlabs/puppet/modules (no modules installed)
david@davids:~/git/tmp/foo$


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/20171213132625.GE1516%40io.chezmoi.fr.
For more options, visit https://groups.google.com/d/optout.

Albert Shih

unread,
Dec 26, 2017, 6:22:12 AM12/26/17
to puppet...@googlegroups.com
Le 14/12/2017 à 08:50:38+0000, David Schmitt a écrit
Hi,

Really sorry for not answering you sooner.

>
> I tested this quickly on my system and it seems to work fine here. Can you
> share more details (puppet version, other installed modules) of your system?

Well...in fact because I really need a feature in puppetlabs-apt 4.x, I
force the upgrade and everything seem to work well.

But thanks for your answer I will keep it in mind.

Just one question : Where come from your bundle ? Is it come from some rvm ? or just the
bundle from the system your on.

Regards.
> CALF7fHZLM51NdzNUyYRpTq%3DALW_NFvtLQLwWja9%2B%2BpLHsyYWiQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
--
Albert SHIH
xmpp: j...@obspm.fr
Heure local/Local time:
Tue Dec 26 12:19:19 CET 2017

David Schmitt

unread,
Jan 2, 2018, 4:33:31 AM1/2/18
to puppet...@googlegroups.com
Hi Albert,



On Tue, Dec 26, 2017 at 11:22 AM Albert Shih <Alber...@obspm.fr> wrote:
Le 14/12/2017 à 08:50:38+0000, David Schmitt a écrit
Hi,

Really sorry for not answering you sooner.

>
> I tested this quickly on my system and it seems to work fine here. Can you
> share more details (puppet version, other installed modules) of your system?

Well...in fact because I really need a feature in puppetlabs-apt 4.x, I
force the upgrade and everything seem to work well.

But thanks for your answer I will keep it in mind.

Just one question : Where come from your bundle ? Is it come from some rvm ? or just the
bundle from the system your on.

I'm running debian testing, and for generic ruby development, I use the system's ruby (2.3.3). You should be able to use the pdk's bundle subcommand in the same way.


Cheers, David
Reply all
Reply to author
Forward
0 new messages