Ask Your Question

Package installation and architecture

asked 2016-04-18 14:21:51 -0600

virtblackbelt gravatar image

I have an issue that I can't decide whether it is truly a bug or just my misunderstanding of the way puppet works. I have a manifest that says

 $pkgs = [ 'compat-libstdc++-33", "compat-libstdc++-33.i686" ]

 package { $pkgs:
    ensure=> 'present'

What I want is for Puppet to ensure both the 64 bit (x86_64) and the 32 bit (i686) libraries are installed. Instead, what seems to happen is the 32 bit library is installed and that is enough to satisfy the unqualified package requirement, so the 64 bit doesn't get installed.

Is this expected behaviour for puppet? It certainly breaks the least surprise doctrine to me.

edit retag flag offensive close merge delete


you an error with your error $pkgs = [ 'compat-libstdc++-33", "compat-libstdc++-33.i686" ], need to be $pkgs = [ "compat-libstdc++-33", "compat-libstdc++-33.i686" ]

c4f4t0r gravatar imagec4f4t0r ( 2016-04-20 02:40:03 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-04-18 15:51:30 -0600

lavaman gravatar image

You simply need to specify the arch for both packages. This is not a puppet issue, but a package management issue. It's yum/apt/etc. that counts the package as installed, not puppet. If you specify the arch for both packages, they should both get installed.

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


Asked: 2016-04-18 14:21:51 -0600

Seen: 233 times

Last updated: Apr 18 '16