Installed Puppet, installed Razor module but /etc/puppet/modules/razer/test directory missing?

243 views
Skip to first unread message

Schorschi Decker

unread,
Apr 22, 2014, 11:05:18 PM4/22/14
to puppet...@googlegroups.com
New to Puppet, but long term Linux user (CentOS, RHEL, Ubuntu, Debian - on Raspberry Pi).  Installed Puppet, installed Razor module but /etc/puppet/modules/razer/test directory missing?  Can not execute...

# puppet apply /etc/puppet/modules/razor/tests/init.pp --verbose
Error: Could not run: Could not find file /etc/puppet/modules/razor/tests/init.pp

Environment...

# uname -a
Linux Puppet.domain.org 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

# puppet status 0
{"is_alive":true,"version":"3.4.3"}

# puppet module list
/etc/puppet/modules
├── puppetlabs-java (v1.1.0)
├── puppetlabs-razor (v0.11.0)
├── puppetlabs-stdlib (v4.1.0)
├── puppetlabs-tftp (v0.2.1)
└── puppetlabs-xinetd (v1.2.0)
/usr/share/puppet/modules (no modules installed)

# ls -l /etc/puppet/modules/razor
total 52
drwxr-xr-x 2 puppet puppet 4096 Apr 22 19:25 bin
-r--r--r-- 1 puppet puppet 9842 Dec 17 11:31 CHANGELOG
-r--r--r-- 1 puppet puppet  985 Dec 17 11:31 CONTRIBUTORS
drwxr-xr-x 2 puppet puppet 4096 Apr 22 19:25 examples
drwxr-xr-x 2 puppet puppet 4096 Apr 22 19:25 files
-r--r--r-- 1 puppet puppet  614 Dec 17 11:31 LICENSE
drwxr-xr-x 2 puppet puppet 4096 Apr 22 19:25 manifests
-r--r--r-- 1 puppet puppet 2104 Dec 17 11:31 metadata.json
-r--r--r-- 1 puppet puppet 1622 Dec 17 11:31 Modulefile
-r--r--r-- 1 puppet puppet 2940 Dec 17 11:31 README.md
drwxr-xr-x 2 puppet puppet 4096 Dec 17 11:31 templates

# find /opt | grep razor

Does not appear razor is installing correctly?  Tried Ubuntu based variant (3.4.3) and CentOS variant (3.5.1), both cases razor does not seem to install right?  Any help appreciated.

Felix Frank

unread,
Apr 25, 2014, 10:52:42 AM4/25/14
to puppet...@googlegroups.com
Hi,

well the file *does* not exist. That should have made you suspicious ;-)
What gave you the idea that this was a way of installing the software
using the module?

A cursory glance at the repo for the module reveals that there is a
different manifest file that you can apply, though:
https://github.com/puppetlabs/puppetlabs-razor/blob/master/examples/install-with-apply.pp

HTH,
Felix

David Lutterkort

unread,
Apr 25, 2014, 6:59:23 PM4/25/14
to puppet...@googlegroups.com
Hi,

have a look at https://forge.puppetlabs.com/puppetlabs/razor - that page talks about the entire installation process beyond what just the module does.

David

Schorschi Decker

unread,
Apr 26, 2014, 1:41:28 PM4/26/14
to puppet...@googlegroups.com
Felix,

Actually looking at that page and other examples via Google is what suggested the 'test' directory should exist.  There seems to be a quite a few examples of how to install razor that all point to the same step, that does not appear to be correct.

David,

I don't see any example of how to add the razor class in the instructions.  The recommended documentation seems to assume you have extensive experience with puppet?  What does the following line mean?  "Then, on your Puppet master, add razor class to target node -- or just use puppet apply as normal:" ?? This is not well explained.  When I try invoking install-with-apply.pp I get the following...

# puppet apply /etc/puppet/modules/razor/examples/install-with-apply.pp --verbose
Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/puppet_vardir.rb
Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/root_home.rb
Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/pe_version.rb
Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Error: unable to autodetect libarchive package name for your platform at /etc/puppet/modules/razor/manifests/libarchive.pp:23 on node puppet.domain.org
Error: unable to autodetect libarchive package name for your platform at /etc/puppet/modules/razor/manifests/libarchive.pp:23 on node puppet.domain.org

Since I am running Ubuntu 14.04?  Looks like the manifests class to validate Linux distrubution is not yet updated?  See the following...

https://github.com/puppetlabs/puppetlabs-razor/blob/master/manifests/libarchive.pp

class razor::libarchive {
  $libarchive_package = $operatingsystem ? {
    "Ubuntu" => $operatingsystemrelease ? {
      /^12/ => 'libarchive12',
      /^13/ => 'libarchive13',
      default => undef
    },
    "Debian" => $operatingsystemmajrelease ? {
      '6' => 'libarchive1',
      '7' => 'libarchive12',
      default => 'libarchive13'
    },
# We need the unversioned .so, which comes from the dev package on these
# platforms; without that FFI fails to load the library. This naturally
# depends on the regular library package in yum.
    "Fedora" => 'libarchive-devel',
    "RedHat" => 'libarchive-devel',
    "CentOS" => 'libarchive-devel',
    default => undef
  }

  if ! $libarchive_package {
    fail("unable to autodetect libarchive package name for your platform")
  }

  package { $libarchive_package: ensure => latest }
}

Schorschi Decker

unread,
Apr 26, 2014, 1:53:12 PM4/26/14
to puppet...@googlegroups.com
And... the following module has not been updated for Ubuntu 'Trusty' (i.e.) 14.04 as well...

/etc/puppet/modules/java/manifests/params.pp



On Tuesday, April 22, 2014 8:05:18 PM UTC-7, Schorschi Decker wrote:

Felix Frank

unread,
Apr 28, 2014, 5:05:25 AM4/28/14
to puppet...@googlegroups.com
Hi,

On 04/26/2014 07:41 PM, Schorschi Decker wrote:
>
> Actually looking at that page and other examples via Google is what
> suggested the 'test' directory should exist. There seems to be a quite
> a few examples of how to install razor that all point to the same step,
> that does not appear to be correct.

I see. Those are likely outdated then.

> Since I am running Ubuntu 14.04?
> Looks like the manifests class to validate Linux distrubution is not yet
> updated? See the following...
>
> https://github.com/puppetlabs/puppetlabs-razor/blob/master/manifests/libarchive.pp

Yes, absolutely (btw, easy syntax highlighting is available like this -
https://github.com/puppetlabs/puppetlabs-razor/blob/master/manifests/libarchive.pp#L3-7
:-)

So you can either wait until upstream fixes their module (boring, may
also not happen ;-) or you try your hand at fixing it and open a Pull
Request. Those are most appreciated.

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