Package: puppet-common
Version: 3.2.1-1
Severity: important

Hi,

puppet-common seems to be missing a dependency on ruby-hiera. Trying to
apply any manifest which uses classes with default parameters fails if
ruby-hiera is not installed:

        root@shepard:~# puppet --version
        3.2.1
        root@shepard:~# cat demo.pp 
        class greeting(
                $message = "Hello"
        ){
                notify { $message:
                }
        }

        class { 'greeting':
        }
        root@shepard:~# puppet apply demo.pp 
        Warning: Could not retrieve fact fqdn
        Error: Puppet::Parser::AST::Resource failed with error RuntimeError: 
Hiera terminus not supported without hiera library at /root/demo.pp:9 on node 
shepard
        Error: Puppet::Parser::AST::Resource failed with error RuntimeError: 
Hiera terminus not supported without hiera library at /root/demo.pp:9 on node 
shepard

Installing the "ruby-hiera" package makes puppet work again:

        root@shepard:~# apt-get -qq install ruby-hiera
        Preconfiguring packages ...
        Selecting previously unselected package rubygems.
        (Reading database ... 280029 files and directories currently installed.)
        Unpacking rubygems (from .../rubygems_1.8.24-1_all.deb) ...
        Selecting previously unselected package ruby-stomp.
        Unpacking ruby-stomp (from .../ruby-stomp_1.2.9-1_all.deb) ...
        Selecting previously unselected package ruby-systemu.
        Unpacking ruby-systemu (from .../ruby-systemu_2.5.1-1_all.deb) ...
        Selecting previously unselected package mcollective-common.
        Unpacking mcollective-common (from 
.../mcollective-common_2.0.0+dfsg-2_all.deb) ...
        Selecting previously unselected package ruby-hiera.
        Unpacking ruby-hiera (from .../ruby-hiera_1.0.0~rc3-1_all.deb) ...
        Processing triggers for man-db ...
        Setting up rubygems (1.8.24-1) ...
        Setting up ruby-stomp (1.2.9-1) ...
        Setting up ruby-systemu (2.5.1-1) ...
        Setting up mcollective-common (2.0.0+dfsg-2) ...
        Setting up ruby-hiera (1.0.0~rc3-1) ...
        root@shepard:~# puppet apply demo.pp 
        Warning: Could not retrieve fact fqdn
        Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera 
defaults
        Notice: Hello
        Notice: /Stage[main]/Greeting/Notify[Hello]/message: defined 'message' 
as 'Hello'
        Notice: Finished catalog run in 0.06 seconds
        root@shepard:~# 

Please add ruby-hiera to puppet-common's dependencies!

Best regards

Alexander Kurtz

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to