Beaker does not install puppet in Ubuntu boxes

44 views
Skip to first unread message

Danny Roberts

unread,
Dec 1, 2015, 3:26:25 PM12/1/15
to Puppet Users
When running acceptance tests with an Ubuntu box with the following config:

HOSTS:
  ubuntu-server-1404-x64:
    roles:
      - master
    platform: ubuntu-server-14.04-amd64
    box: puppetlabs/ubuntu-14.04-64-nocm
    hypervisor: vagrant

CONFIG:
  log_level: verbose
  type: foss

The box spins up and does much of the setup but always fails here:

ubuntu-server-1404-x64 20:11:30$ wget -O /tmp/puppet.deb http://apt.puppetlabs.com/puppetlabs-release-.deb
  Resolving apt.puppetlabs.com (apt.puppetlabs.com)...   192.155.89.90  ,   2600:3c03::f03c:91ff:fedb:6b1d
  Connecting to apt.puppetlabs.com (apt.puppetlabs.com)|192.155.89.90|:80...   connected.
  HTTP request sent, awaiting response...   404 Not Found
  2015-12-01 12:11:29 ERROR 404: Not Found.

For some reason even switching up the box used it always fails to get the release name and complete the URL property. Any idea why this is missing?

Khoury Brazil

unread,
Dec 2, 2015, 11:33:34 AM12/2/15
to puppet...@googlegroups.com
I think this is the problem:
>    platform: ubuntu-server-14.04-amd64

platform gets split into 3:
@variant, version, @arch = self.split('-', 3)
From that you get:
["ubuntu", "server", "14.04-amd64"]
When it tries to evaluate the hash it has of platform version codes using version ('server') it gets back nil. It's expecting something like '14.04' there instead.

tldr: Your platform string probably shouldn't have '-server' in it.

--
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/3d8bad03-3e5b-494b-823d-a40e136c442f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Danny Roberts

unread,
Dec 2, 2015, 3:45:38 PM12/2/15
to puppet...@googlegroups.com
Removing 'server' fixed it, thanks!

--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/A7UrwTRCzsU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAAqoMCYkAA435bj1Zh4%2Bi%3D4d6500KfZofbXccunnDXVPV6V%2BAA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--
Kind Regards
Danny R

Website: http://danny-roberts.info/
Reply all
Reply to author
Forward
0 new messages