Ask Your Question

modules updates

asked 2016-03-19 11:16:04 -0500

nobody gravatar image

updated 2016-03-19 20:40:35 -0500

Hi all! Could you please tell me, if i want to update any modules, all i must to do - puppet module upgrade <module_name> ? Example: If i want update my puppetdb from v5.0.0 to v5.1.2 , i write

# puppet module upgrade puppetlabs-puppetdb
Notice: Preparing to upgrade 'puppetlabs-puppetdb' ...
Notice: Found 'puppetlabs-puppetdb' (v5.0.0) in /etc/puppetlabs/code/environments/production/modules ...
Notice: Downloading from ...
Notice: Upgrading -- do not interrupt ...
    L-- puppetlabs-puppetdb (v5.0.0 -> v5.1.2)

then, i restarted my PM & puppetdb:

systemctl restart puppetserver.service 
systemctl restart puppetdb.service

And this is done? All changes applyed? If it all what i must do, what i've updated from YUM? :)

     #yum update
     puppetdb                               noarch                       4.0.0-1.el7                                 puppetlabs-pc1                        20 M
     puppetdb-termini                       noarch                       4.0.0-1.el7                                 puppetlabs-pc1                        23 k

i.e. at first i updated puppetdb from yum, then i write puppet module upgrade puppetlabs-puppetdb and there his updated too .... why?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-03-21 16:07:43 -0500

lavaman gravatar image

Puppet modules are the code that puppet compiles and applies to systems. This is completely separate from the versions of puppet components you are running. Updating the puppetdb puppet module updates the code it uses to manage puppetdb, but this is separate from the version of puppetdb you have installed and running.

edit flag offensive delete link more


hi, lavaman ! I answered in a separate post, if you do not mind.

nobody gravatar imagenobody ( 2016-03-24 10:44:36 -0500 )edit

answered 2016-03-24 10:41:30 -0500

nobody gravatar image

hi, lavaman ! Thank for your answer. Ok, i update my puppetdb-module, then i write manifest

node test1 {
    class { 'puppetdb::globals':
        version => 'latest',
    class { 'puppetdb' : }
    class { 'puppetdb::master::config' : }

and execute it with puppet apply /etc/puppetlabs/code/manifests/upd_db.pp --debug - i have no errors. But if i run puppetdb --version on test1 i see: puppetdb version: 4.0.0 it's ok?

Some server info:

edit flag offensive delete link more


That appears to be the latest version you have available, so it should be what you want.

lavaman gravatar imagelavaman ( 2016-03-24 11:23:40 -0500 )edit

Hmm, but i have v5.1.2 as module. Puppetdb version and module version different - it's ok? I think before, when i have puppetdb module version v5.1.2, then puppetdb --version must be 5.1.2 too, right?

nobody gravatar imagenobody ( 2016-03-24 11:50:38 -0500 )edit

That's what I was trying to explain in my answer. You're talking about two completely different things. v5.1.2 is the version of the puppet code you're using to MANAGE puppetdb. This has nothing in particular to do with the version of puppetdb you're running (4.0.0).

lavaman gravatar imagelavaman ( 2016-03-24 12:07:39 -0500 )edit

Ok, lavaman, i think i see now... If i want update my _running puppetdb_ - i must simple update it from yum (in Centos ofc)?

nobody gravatar imagenobody ( 2016-03-24 12:34:31 -0500 )edit

Setting that ensure to latest should allow the module to keep it updated.

lavaman gravatar imagelavaman ( 2016-03-24 12:51:56 -0500 )edit

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


Asked: 2016-03-19 11:16:04 -0500

Seen: 773 times

Last updated: Mar 24 '16