Giter Club home page Giter Club logo

puppet-install-shell's Introduction

puppet-install-shell

Acceptance Tests

A shell script to install puppet on multiple distros, assuming no dependencies.

The code is a mashup of puppet-bootstrap and chef's install.sh script.

Usage

$ ./puppet.sh [-p] [-v version] [-f filename | -d download_dir]

Defaults to latest available as a version if none is given.

Currently working on: Debian, CentOS.

A quick way to install after carefully looking at the source:

Puppet > 5.X

$ wget -O - https://raw.githubusercontent.com/petems/puppet-install-shell/master/install_puppet_5_agent.sh | sudo sh

Puppet > 6.X

$ wget -O - https://raw.githubusercontent.com/petems/puppet-install-shell/master/install_puppet_6_agent.sh | sudo sh

Puppet > 7.X

$ wget -O - https://raw.githubusercontent.com/petems/puppet-install-shell/master/install_puppet_7_agent.sh | sudo sh

Running Acceptance Tests

Pick an Operating System then run the rake helper:

bundle exec rake acceptance:suite_on_nodeset['centos-6-docker']
bundle exec rake acceptance:suite_on_nodeset['centos-7-docker']
bundle exec rake acceptance:suite_on_nodeset['ubuntu-1404-docker']
bundle exec rake acceptance:suite_on_nodeset['ubuntu-1604-docker']
bundle exec rake acceptance:suite_on_nodeset['debian-8-docker']

puppet-install-shell's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

puppet-install-shell's Issues

Conflicting versions on Debian VM's

Using 'debian/jessie64'
I've tried fixed versions, :latest
no matter which version we still get "Puppet 4 packages for Jessie, so only 3.7.2 package avaliable"

12:29:53 +0000 INFO: Version parameter defined: 3.7.2
12:29:53 +0000 INFO: Downloading Puppet 3.7.2 for debian...
12:29:53 +0000 INFO: Debian platform! Lets get you a DEB...
12:29:53 +0000 WARN: Puppet only offers Puppet 4 packages for Jessie, so only 3.7.2 package avaliable
12:29:53 +0000 WARN: Skipping download of Puppet repistory, using distro upstream instead

Centos 7 Issues

See petems/vagrant-puppet-install#20

==> default: 13:36:28 +0000 INFO: Version parameter defined: 3.7.3
==> default: 13:36:28 +0000 INFO: Downloading Puppet 3.7.3 for el...
==> default: 13:36:28 +0000 INFO: Red hat like platform! Lets get you an RPM...
==> default: 13:36:28 +0000 INFO: Downloading http://yum.puppetlabs.com/el/7/products/x86_64/puppetlabs-release-7-7.noarch.rpm
==> default: 13:36:28 +0000 INFO:   to file /tmp/install.sh.3160.14480/puppetlabs-release-7-7.noarch.rpm
==> default: 13:36:28 +0000 INFO: Trying wget...
==> default: 13:36:29 +0000 CRIT: ERROR 404
==> default: 13:36:29 +0000 CRIT: Unable to retrieve a valid package!
==> default: 13:36:29 +0000 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
==> default: 13:36:29 +0000 CRIT:
==> default: 13:36:29 +0000 CRIT: Version: 3.7.3
==> default: 13:36:29 +0000 CRIT: Platform: el
==> default: 13:36:29 +0000 CRIT: Platform Version: 7
==> default: 13:36:29 +0000 CRIT: Machine: x86_64
==> default: 13:36:29 +0000 CRIT: OS: Linux
==> default: 13:36:29 +0000 CRIT:
==> default: 13:36:29 +0000 CRIT: Please detail your operating system type, version and any other relevant details
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

sh install.sh -v 3.7.3 2>&1

Stdout from the command:

13:36:28 +0000 INFO: Version parameter defined: 3.7.3
13:36:28 +0000 INFO: Downloading Puppet 3.7.3 for el...
13:36:28 +0000 INFO: Red hat like platform! Lets get you an RPM...
13:36:28 +0000 INFO: Downloading http://yum.puppetlabs.com/el/7/products/x86_64/puppetlabs-release-7-7.noarch.rpm
13:36:28 +0000 INFO:   to file /tmp/install.sh.3160.14480/puppetlabs-release-7-7.noarch.rpm
13:36:28 +0000 INFO: Trying wget...
13:36:29 +0000 CRIT: ERROR 404
13:36:29 +0000 CRIT: Unable to retrieve a valid package!
13:36:29 +0000 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
13:36:29 +0000 CRIT:
13:36:29 +0000 CRIT: Version: 3.7.3
13:36:29 +0000 CRIT: Platform: el
13:36:29 +0000 CRIT: Platform Version: 7
13:36:29 +0000 CRIT: Machine: x86_64
13:36:29 +0000 CRIT: OS: Linux
13:36:29 +0000 CRIT:
13:36:29 +0000 CRIT: Please detail your operating system type, version and any other relevant details

yum repo setup fails on fedora 21

Note that the name of the package attempting to be retried is puppetlabs-release-21-.noarch.rpm while it should be puppetlabs-release-21-11.noarch.rpm

13:47:51 +0000 INFO: Version parameter defined: 3.7.4
13:47:51 +0000 INFO: Downloading Puppet 3.7.4 for fedora...
13:47:51 +0000 INFO: Fedora platform! Lets get the RPM...
13:47:51 +0000 INFO: Downloading http://yum.puppetlabs.com/fedora/f21/products/x86_64/puppetlabs-release-21-.noarch.rpm
13:47:51 +0000 INFO:   to file /tmp/install.sh.2258.23727/puppetlabs-release-21-.noarch.rpm
13:47:51 +0000 INFO: Trying wget...
13:47:51 +0000 CRIT: ERROR 404

Debian Issues when specifying version

petems/vagrant-puppet-install#48:

==> default: E: Version '3.7.2-1puppetlabs1' for 'puppet-common' was not found
==> default: E: Version '3.7.2-1puppetlabs1' for 'puppet' was not found
==> default: 08:30:59 +0000 CRIT: Installation failed
==> default: 08:30:59 +0000 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
==> default: 08:30:59 +0000 CRIT:
==> default: 08:30:59 +0000 CRIT: Version: 3.7.2
==> default: 08:30:59 +0000 CRIT: Platform: debian
==> default: 08:30:59 +0000 CRIT: Platform Version: 8.4
==> default: 08:30:59 +0000 CRIT: Machine: x86_64
==> default: 08:30:59 +0000 CRIT: OS: Linux
==> default: 08:30:59 +0000 CRIT:

I think the puppetlabs1 name is only on Ubuntu, need to catch that in the code

Direction puppet-install-shell

I am currently busy with bootstrap-puppet and I grab this script and execute it to install puppet during provisioning.

I have forked this script, and tested it on a lot more boxes (see my fork and vagrantcloud/chef) and it works on vanilla installations of the following operating systems, which to my knowledge are all currently supported (non-end of life) distro's.

  • Ubuntu: 12.04, 12.10, 13.04, 13.10
  • CentOS: 5.8, 5.10, 6.5
  • Debian: 6.0.8 (Squeeze), 7.4 (Wheezy)
  • fedora: 19, 20

On my fork I added the following things:

  • Added fedora support 19/20 according to the puppet installation guide.
  • Fixed centos not working in combination with fedora.
  • Removed the color tty support, as it doesn't work on sshj (returns 1) on some shells during testing. Because they are not really necessary I just removed them to make sure the script always works.
  • Removed do_python support as it was indicated on irc from the chef devs that it was insecure and should not be used as a downloader.
  • Forced '-1' on do_curl as debian squeeze throws errors with files located on raw.githubusercontent.com and so probably fails on other servers. '-1' forces TLS 1.0+ to be used which is the latest ssl and most of the times the default, but not on squeeze.
  • Added vagrant 1.5 file that downloads and tests a lot of vagrant boxes. Using vagrant up it will automatically run the install script and install puppet. Using 'vagrant up && vagrant destroy -f' we will be sure it works on all those OS's.

What I think this shel script should do (a lot it already does).

  • Support all stable distro's if we can. Using vagrantcloud/chef makes that easier. Also I think the goal of this script should be to allow users of puppet to make it easy to install puppet on newer OS versions. We should not want to facilitate users wanting to install puppet on end of life distributions.
  • Assume vanilla distribution: As installing puppet on so many platforms is hard, we should assume that the state of the os when we run it is not changed from vanilla. If any support requests come in, we can always point them to the fact that it was tested on a vanilla system (see vagrantcloud/chef).
  • Provide option for not installing puppet agent: A masterless install should be supported and ubuntu installs and runs the puppet-agent service by default which is of no use to puppet masterless users.
  • Upgrading puppet to newer versions is tricky, and it could be supported in the future (it may already work).. But I am actually against supporting/testing upgrading from old puppet versions. I rather see people using this script in their image creation process/bootstrap process. Once their OS has been 'tainted' with modified state we can't promise that things in this script will work (that's puppet's job....).
  • Stay simple. No colors, no extensive functionality. It should install puppet and nothing more.
  • Use strictly POSIX standard scripting. No bashisms. We could look into testing this with Travis by testing if the script is interpreted correctly by 'dash' or some other shell that only adheres to POSIX.

I want to contribute those things back but I want to restructure the commits a bit (its a bit of a mess currently).

I would appreciate if you could grant me write access to the repository if you agree with my view / changes :)

AWS Centos7 asset install failing ...

First time user but needed something to install puppet on multiple OS's, received the error msg below...



The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

sh install.sh -v 5.3.2 2>&1

Stdout from the command:

13:20:54 +0000 INFO: Version parameter defined: 5.3.2
13:20:54 +0000 INFO: Matching Puppet version to puppet-agent package version (See http://docs.puppetlabs.com/puppet/latest/reference/about_agent.html for more details)
13:20:54 +0000 CRIT: Unable to match requested puppet version to puppet-agent version - Check http://docs.puppetlabs.com/puppet/latest/reference/about_agent.html
13:20:54 +0000 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
13:20:54 +0000 CRIT:
13:20:54 +0000 CRIT: Version: 5.3.2
13:20:54 +0000 CRIT: Platform: el
13:20:54 +0000 CRIT: Platform Version: 7.2.1511
13:20:54 +0000 CRIT: Machine: x86_64
13:20:54 +0000 CRIT: OS: Linux
13:20:54 +0000 CRIT:
13:20:54 +0000 CRIT: Please detail your operating system type, version and any other relevant details

Support for SLES

It will be very nice if this plugin could support SLES.

13:59:23 -0500 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
13:59:23 -0500 CRIT:
13:59:23 -0500 CRIT: Version: 3.7.4
13:59:23 -0500 CRIT: Platform: sles
13:59:23 -0500 CRIT: Platform Version: 11
13:59:23 -0500 CRIT: Machine: x86_64
13:59:23 -0500 CRIT: OS: Linux

Ubuntu 17.10

See petems/vagrant-puppet-install#60:

==> default: Installing Puppet 5.3.3 package...
==> default: 10:17:06 +0000 INFO: Version parameter defined: 5.3.3
==> default: 10:17:06 +0000 INFO: Downloading Puppet 5.3.3 for ubuntu...
==> default: 10:17:06 +0000 INFO: Ubuntu platform! Lets get you a DEB...
==> default: 10:17:06 +0000 INFO: Downloading http://apt.puppetlabs.com/puppet5-release-.deb
==> default: 10:17:06 +0000 INFO: to file /tmp/install.sh.1242.random_hexdump/puppet5-release-.deb
==> default: 10:17:06 +0000 INFO: Trying wget...
==> default: 10:17:07 +0000 CRIT: ERROR 404
==> default: 10:17:07 +0000 CRIT: Unable to retrieve a valid package!
==> default: 10:17:07 +0000 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
==> default: 10:17:07 +0000 CRIT:
==> default: 10:17:07 +0000 CRIT: Version: 5.3.3
==> default: 10:17:07 +0000 CRIT: Platform: ubuntu
==> default: 10:17:07 +0000 CRIT: Platform Version: 17.10
==> default: 10:17:07 +0000 CRIT: Machine: x86_64
==> default: 10:17:07 +0000 CRIT: OS: Linux
==> default: 10:17:07 +0000 CRIT:
==> default: 10:17:07 +0000 CRIT: Please detail your operating system type, version and any other relevant details
The following SSH command responded with a non-zero exit status.

Remove and add option for colors

I have experienced issues where the execution of the script fails immediately at tput or tty -s. At least in sshj an java ssh library.
As suggested in other issue lets make colors optional with the '-c' flag?

Pinned version on apt doesn't work

Just tried to see if a versioned puppet works. But unfortunately it then conflicts with an newer version of libruby.
See http://askubuntu.com/questions/154044/installing-particular-versions-when-repo-has-newer-versions

There are a lot of dependencies to puppet and pinning them all may sooner break something in the future than help.

I vote we kill the -version (at least for apt?) as it doesn't work (tested with quantal through vagrant multiple times).

I'm also sceptical on why we need it. the default version is now hardcoded in the script and already out of date. This will only happen more frequently, so maybe default to just installing puppet/puppet-common without version specified will be more stable.

What do you think?

Add apt-transport-https before install on Debian and Ubuntu

We're receiving the following error when trying to install puppet using the install_puppet_5_agent.sh script.

E: The method driver /usr/lib/apt/methods/https could not be found.
E: Failed to fetch https://apt.puppetlabs.com/dists/stretch/InRelease

Adding apt-get install apt-transport-https ca-certificates -y will solve the issue.

OS info:

07:57:01 +0000 CRIT:
07:57:01 +0000 CRIT: Version: 5.5.18
07:57:01 +0000 CRIT: Platform: debian
07:57:01 +0000 CRIT: Platform Version: 9.12
07:57:01 +0000 CRIT: Machine: x86_64
07:57:01 +0000 CRIT: OS: Linux
07:57:01 +0000 CRIT:

Add puppet5 support

puppet 5 cant be installed using the puppetlabs-release-pc1 packages but now requires the new puppet5-release-* packages.

Adding puppet5 support will require some significant rework of the existing install.sh, or would you consider placing it in a seperate script?

Puppet installation fails on Debian 8

Installation fails on a Debian 8 base box [https://github.com/holms/vagrant-jessie-box/releases/download/Jessie-v0.1/Debian-jessie-amd64-netboot.box].
The host runs Win 8.1 with the latest vagrant version (1.7.2)

$ vagrant provision
==> default: Installing Puppet 4.0.0 package...
==> default: 08:23:01 +0000 INFO: Version parameter defined: 4.0.0
==> default: 08:23:01 +0000 INFO: Downloading Puppet 4.0.0 for debian...
==> default: 08:23:01 +0000 INFO: Debian platform! Lets get you a DEB...
==> default: 08:23:01 +0000 INFO: Downloading http://apt.puppetlabs.com/puppetlabs-release-jessie.deb
==> default: 08:23:01 +0000 INFO:   to file /tmp/install.sh.1774.56674/puppetlabs-release-jessie.deb
==> default: 08:23:01 +0000 INFO: Trying wget...
==> default: 08:23:02 +0000 INFO: installing with dpkg...
==> default: (Reading database ... 47826 files and directories currently installed.)
==> default: Preparing to unpack .../puppetlabs-release-jessie.deb ...
==> default: Unpacking puppetlabs-release (1.0-11) over (1.0-11) ...
==> default: Setting up puppetlabs-release (1.0-11) ...
==> default: Hit http://security.debian.org jessie/updates InRelease
==> default: Hit http://ftp.uk.debian.org jessie InRelease
==> default: Hit http://ftp.uk.debian.org jessie-updates InRelease
==> default: Hit http://security.debian.org jessie/updates/main Sources
==> default: Hit http://ftp.uk.debian.org jessie/main Sources
==> default: Hit http://security.debian.org jessie/updates/contrib Sources
==> default: Hit http://ftp.uk.debian.org jessie/contrib Sources
==> default: Hit http://security.debian.org jessie/updates/non-free Sources
==> default: Hit http://ftp.uk.debian.org jessie/non-free Sources
==> default: Hit http://security.debian.org jessie/updates/main amd64 Packages
==> default: Hit http://ftp.uk.debian.org jessie/main amd64 Packages
==> default: Hit http://security.debian.org jessie/updates/contrib amd64 Packages
==> default: Hit http://ftp.uk.debian.org jessie/contrib amd64 Packages
==> default: Hit http://security.debian.org jessie/updates/non-free amd64 Packages
==> default: Hit http://security.debian.org jessie/updates/contrib Translation-en
==> default: Hit http://ftp.uk.debian.org jessie/non-free amd64 Packages
==> default: Hit http://security.debian.org jessie/updates/main Translation-en
==> default: Hit http://ftp.uk.debian.org jessie/contrib Translation-en
==> default: Hit http://security.debian.org jessie/updates/non-free Translation-en
==> default: Hit http://ftp.uk.debian.org jessie/main Translation-en
==> default: Hit http://ftp.uk.debian.org jessie/non-free Translation-en
==> default: Ign http://apt.puppetlabs.com jessie InRelease
==> default: Hit http://ftp.uk.debian.org jessie-updates/main Sources
==> default: Hit http://ftp.uk.debian.org jessie-updates/contrib Sources
==> default: Hit http://ftp.uk.debian.org jessie-updates/non-free Sources
==> default: Hit http://apt.puppetlabs.com jessie Release.gpg
==> default: Get:1 http://ftp.uk.debian.org jessie-updates/main amd64 Packages/DiffIndex [367 B]
==> default: Hit http://ftp.uk.debian.org jessie-updates/contrib amd64 Packages
==> default: Hit http://ftp.uk.debian.org jessie-updates/non-free amd64 Packages
==> default: Hit http://apt.puppetlabs.com jessie Release
==> default: Hit http://ftp.uk.debian.org jessie-updates/contrib Translation-en
==> default: Get:2 http://ftp.uk.debian.org jessie-updates/main Translation-en/DiffIndex [229 B]
==> default: Hit http://ftp.uk.debian.org jessie-updates/non-free Translation-en
==> default: Hit http://apt.puppetlabs.com jessie/main Sources
==> default: Hit http://apt.puppetlabs.com jessie/dependencies Sources
==> default: Hit http://apt.puppetlabs.com jessie/main amd64 Packages
==> default: Hit http://apt.puppetlabs.com jessie/dependencies amd64 Packages
==> default: Ign http://apt.puppetlabs.com jessie/dependencies Translation-en_US
==> default: Ign http://apt.puppetlabs.com jessie/dependencies Translation-en
==> default: Ign http://apt.puppetlabs.com jessie/main Translation-en_US
==> default: Ign http://apt.puppetlabs.com jessie/main Translation-en
==> default: Fetched 596 B in 2s (199 B/s)
==> default: Reading package lists...

==> default: Reading package lists...

==> default: Building dependency tree...
==> default:
==> default: Reading state information...

==> default: E: Version '4.0.0-1puppetlabs1' for 'puppet-common' was not found
==> default: E: Version '4.0.0-1puppetlabs1' for 'puppet' was not found
==> default: 08:23:10 +0000 CRIT: Installation failed
==> default: 08:23:10 +0000 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
==> default: 08:23:10 +0000 CRIT:
==> default: 08:23:10 +0000 CRIT: Version: 4.0.0
==> default: 08:23:10 +0000 CRIT: Platform: debian
==> default: 08:23:10 +0000 CRIT: Platform Version: 8.0
==> default: 08:23:10 +0000 CRIT: Machine: x86_64
==> default: 08:23:10 +0000 CRIT: OS: Linux
==> default: 08:23:10 +0000 CRIT:
==> default: 08:23:10 +0000 CRIT: Please detail your operating system type, version and any other relevant details
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

sh install.sh -v 4.0.0 2>&1

Stdout from the command:

08:23:01 +0000 INFO: Version parameter defined: 4.0.0
08:23:01 +0000 INFO: Downloading Puppet 4.0.0 for debian...
08:23:01 +0000 INFO: Debian platform! Lets get you a DEB...
08:23:01 +0000 INFO: Downloading http://apt.puppetlabs.com/puppetlabs-release-jessie.deb
08:23:01 +0000 INFO:   to file /tmp/install.sh.1774.56674/puppetlabs-release-jessie.deb
08:23:01 +0000 INFO: Trying wget...
08:23:02 +0000 INFO: installing with dpkg...
(Reading database ... 47826 files and directories currently installed.)
Preparing to unpack .../puppetlabs-release-jessie.deb ...
Unpacking puppetlabs-release (1.0-11) over (1.0-11) ...
Setting up puppetlabs-release (1.0-11) ...
Hit http://security.debian.org jessie/updates InRelease
Hit http://ftp.uk.debian.org jessie InRelease
Hit http://ftp.uk.debian.org jessie-updates InRelease
Hit http://security.debian.org jessie/updates/main Sources
Hit http://ftp.uk.debian.org jessie/main Sources
Hit http://security.debian.org jessie/updates/contrib Sources
Hit http://ftp.uk.debian.org jessie/contrib Sources
Hit http://security.debian.org jessie/updates/non-free Sources
Hit http://ftp.uk.debian.org jessie/non-free Sources
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://ftp.uk.debian.org jessie/main amd64 Packages
Hit http://security.debian.org jessie/updates/contrib amd64 Packages
Hit http://ftp.uk.debian.org jessie/contrib amd64 Packages
Hit http://security.debian.org jessie/updates/non-free amd64 Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://ftp.uk.debian.org jessie/non-free amd64 Packages
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://ftp.uk.debian.org jessie/contrib Translation-en
Hit http://security.debian.org jessie/updates/non-free Translation-en
Hit http://ftp.uk.debian.org jessie/main Translation-en
Hit http://ftp.uk.debian.org jessie/non-free Translation-en
Ign http://apt.puppetlabs.com jessie InRelease
Hit http://ftp.uk.debian.org jessie-updates/main Sources
Hit http://ftp.uk.debian.org jessie-updates/contrib Sources
Hit http://ftp.uk.debian.org jessie-updates/non-free Sources
Hit http://apt.puppetlabs.com jessie Release.gpg
Get:1 http://ftp.uk.debian.org jessie-updates/main amd64 Packages/DiffIndex [367 B]
Hit http://ftp.uk.debian.org jessie-updates/contrib amd64 Packages
Hit http://ftp.uk.debian.org jessie-updates/non-free amd64 Packages
Hit http://apt.puppetlabs.com jessie Release
Hit http://ftp.uk.debian.org jessie-updates/contrib Translation-en
Get:2 http://ftp.uk.debian.org jessie-updates/main Translation-en/DiffIndex [229 B]
Hit http://ftp.uk.debian.org jessie-updates/non-free Translation-en
Hit http://apt.puppetlabs.com jessie/main Sources
Hit http://apt.puppetlabs.com jessie/dependencies Sources
Hit http://apt.puppetlabs.com jessie/main amd64 Packages
Hit http://apt.puppetlabs.com jessie/dependencies amd64 Packages
Ign http://apt.puppetlabs.com jessie/dependencies Translation-en_US
Ign http://apt.puppetlabs.com jessie/dependencies Translation-en
Ign http://apt.puppetlabs.com jessie/main Translation-en_US
Ign http://apt.puppetlabs.com jessie/main Translation-en
Fetched 596 B in 2s (199 B/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Version '4.0.0-1puppetlabs1' for 'puppet-common' was not found
E: Version '4.0.0-1puppetlabs1' for 'puppet' was not found
08:23:10 +0000 CRIT: Installation failed
08:23:10 +0000 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
08:23:10 +0000 CRIT:
08:23:10 +0000 CRIT: Version: 4.0.0
08:23:10 +0000 CRIT: Platform: debian
08:23:10 +0000 CRIT: Platform Version: 8.0
08:23:10 +0000 CRIT: Machine: x86_64
08:23:10 +0000 CRIT: OS: Linux
08:23:10 +0000 CRIT:
08:23:10 +0000 CRIT: Please detail your operating system type, version and any other relevant details


Stderr from the command:

stdin: is not a tty

Missing download tool in latest docker images

Related to the failed actions:
https://github.com/petems/puppet-install-shell/actions/runs/3116859742/jobs/5055060160#step:4:10
https://github.com/petems/puppet-install-shell/actions/runs/3116859742/jobs/5055060196#step:4:10

The docker images ubuntu:latest and debian:latest does not have installed any of the necessary tools to download the package.
As marked in the screenshot below, the script says Trying perl..., so wget, curl and fetch has already been skipped or failed (1).

This issue can be fixed by installing one of them manually.

grafik

Additional validation:
grafik

Issues with CentOS 32-bit BaseBox

Vagrant.configure("2") do |config|
  config.vm.box = "chef/centos-5.10-i386"
  config.puppet_install.puppet_version = "2.7.23"
end

Error:

08:42:22 +0000 INFO: Downloading Puppet 2.7.23 for el...
08:42:22 +0000 INFO: Red hat like platform! Lets get you an RPM...
08:42:22 +0000 INFO: Downloading http://yum.puppetlabs.com/el/5/products/i686/puppetlabs-release-5-7.noarch.rpm
08:42:22 +0000 INFO:   to file /tmp/install.sh.6165.54476/puppetlabs-release-5-7.noarch.rpm
08:42:22 +0000 INFO: Trying wget...
08:42:23 +0000 CRIT: ERROR 404
08:42:23 +0000 CRIT: Unable to retrieve a valid package!
08:42:23 +0000 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
08:42:23 +0000 CRIT:
08:42:23 +0000 CRIT: Version: 2.7.23
08:42:23 +0000 CRIT: Platform: el
08:42:23 +0000 CRIT: Platform Version: 5
08:42:23 +0000 CRIT: Machine: i686
08:42:23 +0000 CRIT: OS: Linux
08:42:23 +0000 CRIT:
08:42:23 +0000 CRIT: Please detail your operating system type, version and any other relevant details
In fact the URL is wrong and should contain "i386" rather than "i686":

 * HTTP 404: http://yum.puppetlabs.com/el/5/products/i686/puppetlabs-release-5-7.noarch.rpm
 * HTTP 200: http://yum.puppetlabs.com/el/5/products/i386/puppetlabs-release-5-7.noarch.rpm

Facter dependancies when giving different versions

Issues with giving a puppet version but then a facter version not tied to it:

Vagrant.configure("2") do |config|
  config.vm.box = "chef/ubuntu-12.04-i386"
  config.puppet_install.puppet_version = "2.7.23"
end
08:41:20 +0000 INFO: Downloading Puppet 2.7.23 for ubuntu...
08:41:20 +0000 INFO: Ubuntu platform! Lets get you a DEB...
08:41:20 +0000 INFO: Downloading http://apt.puppetlabs.com/puppetlabs-release-precise.deb
08:41:20 +0000 INFO:   to file /tmp/install.sh.1186.25649/puppetlabs-release-precise.deb
08:41:20 +0000 INFO: Trying wget...
08:41:20 +0000 INFO: Version parameter defined: 2.7.23
08:41:20 +0000 INFO: installing with dpkg...
Selecting previously unselected package puppetlabs-release.
(Reading database ... 56480 files and directories currently installed.)
Unpacking puppetlabs-release (from .../puppetlabs-release-precise.deb) ...
Setting up puppetlabs-release (1.0-7) ...
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Hit http://us.archive.ubuntu.com precise Release.gpg
Get:2 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:3 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]
Get:4 http://security.ubuntu.com precise-security Release [49.6 kB]
Hit http://us.archive.ubuntu.com precise Release
Get:5 http://apt.puppetlabs.com precise Release.gpg [876 B]
Get:6 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]
Get:7 http://apt.puppetlabs.com precise Release [22.4 kB]
Get:8 http://security.ubuntu.com precise-security/main Sources [107 kB]
Get:9 http://us.archive.ubuntu.com precise-backports Release [49.6 kB]
Get:10 http://apt.puppetlabs.com precise/main Sources [69.1 kB]
Hit http://us.archive.ubuntu.com precise/main Sources
Hit http://us.archive.ubuntu.com precise/restricted Sources
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Get:11 http://us.archive.ubuntu.com precise-updates/main Sources [476 kB]
Get:12 http://security.ubuntu.com precise-security/restricted Sources [2,494 B]
Get:13 http://security.ubuntu.com precise-security/universe Sources [30.7 kB]
Get:14 http://security.ubuntu.com precise-security/multiverse Sources [1,795 B]
Get:15 http://security.ubuntu.com precise-security/main i386 Packages [442 kB]
Get:16 http://apt.puppetlabs.com precise/dependencies Sources [8,896 B]
Get:17 http://apt.puppetlabs.com precise/main i386 Packages [76.2 kB]
Get:18 http://apt.puppetlabs.com precise/dependencies i386 Packages [6,298 B]
Ign http://apt.puppetlabs.com precise/dependencies TranslationIndex
Ign http://apt.puppetlabs.com precise/main TranslationIndex
Get:19 http://security.ubuntu.com precise-security/restricted i386 Packages [4,620 B]
Get:20 http://security.ubuntu.com precise-security/universe i386 Packages [99.7 kB]
Get:21 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,650 B]
Get:22 http://security.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:23 http://security.ubuntu.com precise-security/multiverse TranslationIndex [72 B]
Get:24 http://security.ubuntu.com precise-security/restricted TranslationIndex [72 B]
Get:25 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:26 http://us.archive.ubuntu.com precise-updates/restricted Sources [8,056 B]
Get:27 http://us.archive.ubuntu.com precise-updates/universe Sources [108 kB]
Get:28 http://security.ubuntu.com precise-security/main Translation-en [189 kB]
Get:29 http://us.archive.ubuntu.com precise-updates/multiverse Sources [8,905 B]
Get:30 http://us.archive.ubuntu.com precise-updates/main i386 Packages [853 kB]
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Get:31 http://security.ubuntu.com precise-security/universe Translation-en [57.8 kB]
Get:32 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [13.7 kB]
Get:33 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [251 kB]
Get:34 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [15.5 kB]
Get:35 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [3,564 B]
Get:36 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [2,605 B]
Get:37 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [2,461 B]
Get:38 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [2,850 B]
Hit http://us.archive.ubuntu.com precise/main Translation-en
Get:39 http://us.archive.ubuntu.com precise-backports/main Sources [5,145 B]
Get:40 http://us.archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:41 http://us.archive.ubuntu.com precise-backports/universe Sources [38.4 kB]
Get:42 http://us.archive.ubuntu.com precise-backports/multiverse Sources [5,311 B]
Get:43 http://us.archive.ubuntu.com precise-backports/main i386 Packages [6,420 B]
Get:44 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:45 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [41.2 kB]
Get:46 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [5,178 B]
Get:47 http://us.archive.ubuntu.com precise-backports/main TranslationIndex [72 B]
Get:48 http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex [72 B]
Get:49 http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
Get:50 http://us.archive.ubuntu.com precise-backports/universe TranslationIndex [73 B]
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Get:51 http://us.archive.ubuntu.com precise-updates/main Translation-en [361 kB]
Ign http://apt.puppetlabs.com precise/dependencies Translation-en_US
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
Get:52 http://us.archive.ubuntu.com precise-updates/restricted Translation-en [3,027 B]
Get:53 http://us.archive.ubuntu.com precise-updates/universe Translation-en [142 kB]
Ign http://apt.puppetlabs.com precise/dependencies Translation-en
Ign http://apt.puppetlabs.com precise/main Translation-en_US
Get:54 http://us.archive.ubuntu.com precise-backports/main Translation-en [5,882 B]
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Get:55 http://us.archive.ubuntu.com precise-backports/universe Translation-en [32.9 kB]
Ign http://apt.puppetlabs.com precise/main Translation-en
Fetched 3,662 kB in 4s (803 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 puppet-common : Depends: facter (< 2.0) but 2.1.0-1puppetlabs1 is to be installed
                 Recommends: debconf-utils but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
08:41:29 +0000 CRIT: Installation failed
08:41:29 +0000 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
08:41:29 +0000 CRIT:
08:41:29 +0000 CRIT: Version: 2.7.23
08:41:29 +0000 CRIT: Platform: ubuntu
08:41:29 +0000 CRIT: Platform Version: 12.04
08:41:29 +0000 CRIT: Machine: i686
08:41:29 +0000 CRIT: OS: Linux
08:41:29 +0000 CRIT:
08:41:29 +0000 CRIT: Please detail your operating system type, version and any other relevant details

installation failed: Ubuntu 18.04 & Puppet 6

I'm using test-kitchen with kitchen-puppet and when I specify puppet 6 (it defaults to 5) I get this error.

This is running in docker on an Ubuntu 18.04 image.

Thanks!

$ test-kitchen verify linux
-----> Starting Test Kitchen (v2.7.1)
-----> Creating <linux-ubuntu-1804>...
       Sending build context to Docker daemon  293.4MB
       Step 1/17 : FROM ubuntu:18.04
        ---> 94e814e2efa8
       Step 2/17 : RUN [ ! -f "/sbin/initctl" ] || dpkg-divert --local --rename --add /sbin/initctl && ln -sf /bin/true /sbin/initctl
        ---> Using cache
        ---> e39a27ff4c6a
       Step 3/17 : ENV DEBIAN_FRONTEND noninteractive
        ---> Using cache
        ---> ecba6145e522
       Step 4/17 : ENV container docker
        ---> Using cache
        ---> ecd96c25f454
       Step 5/17 : RUN apt-get update
        ---> Using cache
        ---> eb40bceb72c9
       Step 6/17 : RUN apt-get install -y sudo openssh-server curl lsb-release
        ---> Using cache
        ---> 92df5c545deb
       Step 7/17 : RUN if ! getent passwd kitchen; then                   useradd -d /home/kitchen -m -s /bin/bash -p '*' kitchen;                 fi
        ---> Using cache
        ---> c50eaa05874d
       Step 8/17 : RUN echo "kitchen ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
        ---> Using cache
        ---> 32ab13b2c194
       Step 9/17 : RUN echo "Defaults !requiretty" >> /etc/sudoers
        ---> Using cache
        ---> 0863ae530705
       Step 10/17 : RUN mkdir -p /home/kitchen/.ssh
        ---> Using cache
        ---> 6ebd79f9b202
       Step 11/17 : RUN chown -R kitchen /home/kitchen/.ssh
        ---> Using cache
        ---> cecff8bdd51a
       Step 12/17 : RUN chmod 0700 /home/kitchen/.ssh
        ---> Using cache
        ---> e31bbdf3f426
       Step 13/17 : RUN touch /home/kitchen/.ssh/authorized_keys
        ---> Using cache
        ---> 7eac1a4235a1
       Step 14/17 : RUN chown kitchen /home/kitchen/.ssh/authorized_keys
        ---> Using cache
        ---> 3a503ed7b74e
       Step 15/17 : RUN chmod 0600 /home/kitchen/.ssh/authorized_keys
        ---> Using cache
        ---> 4090b08b2976
       Step 16/17 : RUN mkdir -p /run/sshd
        ---> Using cache
        ---> aec60be754c6
       Step 17/17 : RUN echo ssh-rsa\ AAAAB3NzaC1yc2EAAAADAQABAAABAQCxL1IUoqYSCrgDSgCgTQ779YN/7CG/Tlu0A14BKuXibKAN7m2NavKxi3VENj7tZX+s7y/YbHAPBFMnFudDpdaqe1MczjnV3PQNnn5KZI+QZf4XppOwuRBKoBa6u02V8xj5fnUUc5w2oi2aOBiokqIaTOaAkeuocIQ1VNeHqXNJ5ViERXXXFhbPkxupzDs9zC/SaFlqsBMss/m6/pryq/w6QK+uTdn/ey9ik6Nvju6ugUvc+yCjEuuSYZEohlxvYoNKkmHDVs30zm1I6ngN7YZz7xq49n5tKG3n5TGWTkppSklhXBTbu9oXeJ9RNV0likEWarmtK6OTnNMLCrCyPtHR\ kitchen_docker_key >> /home/kitchen/.ssh/authorized_keys
        ---> Using cache
        ---> 2dc98bf3f5b3
       Successfully built 2dc98bf3f5b3
       c058a4c1f2627b378f6cff7ee375ddf2a06d7562be163e2cb1227ae3e26f91a5
       0.0.0.0:32768
       Waiting for SSH service on localhost:32768, retrying in 3 seconds
       [SSH] Established
       Finished creating <linux-ubuntu-1804> (0m14.66s).
-----> Converging <linux-ubuntu-1804>...
       Preparing files for transfer
       Preparing modules
       Resolving module dependencies with R10K-Puppet 3.5.2...
       Preparing manifests
       Preparing files
       nothing to do for files
       Preparing hiera (global layer)
       Preparing hiera data
       Preparing spec files
       Finished Preparing files for transfer
       Installing puppet using puppet omnibus
-----> Installing Puppet Omnibus
       downloading https://raw.githubusercontent.com/petems/puppet-install-shell/master/install_puppet_6_agent.sh
         to file /tmp/install_puppet.sh
       trying wget...
       22:33:41 +0000 INFO: Version parameter defined: 6
       22:33:41 +0000 INFO: Downloading Puppet 6 for ubuntu...
       22:33:41 +0000 INFO: Ubuntu platform! Lets get you a DEB...
       22:33:41 +0000 INFO: Downloading http://apt.puppetlabs.com/puppet6-release-bionic.deb
       22:33:41 +0000 INFO:   to file /tmp/install.sh.86.429369996/puppet6-release-bionic.deb
       22:33:41 +0000 INFO: Trying wget...
       22:33:41 +0000 INFO: installing puppetlabs apt repo with dpkg...
       Selecting previously unselected package puppet6-release.
(Reading database ... 10162 files and directories currently installed.)
       Preparing to unpack .../puppet6-release-bionic.deb ...
       Unpacking puppet6-release (6.0.0-8bionic) ...
       Setting up puppet6-release (6.0.0-8bionic) ...
Get:1 http://apt.puppetlabs.com bionic InRelease [100 kB]
Get:2 http://apt.puppetlabs.com bionic/puppet6 all Packages [21.9 kB]          
Get:3 http://apt.puppetlabs.com bionic/puppet6 amd64 Packages [54.3 kB]        
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]  
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease 
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]      
Get:7 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [14.6 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]    
Get:9 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [193 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2104 kB]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1693 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1341 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [220 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2110 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [45.2 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
Fetched 8172 kB in 3s (3054 kB/s)                             
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
       E: Version '6-1bionic' for 'puppet-agent' was not found
       22:33:47 +0000 CRIT: Installation failed
       22:33:47 +0000 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
       22:33:47 +0000 CRIT: 
       22:33:47 +0000 CRIT: Version: 6
       22:33:47 +0000 CRIT: Platform: ubuntu
       22:33:47 +0000 CRIT: Platform Version: 18.04
       22:33:47 +0000 CRIT: Machine: x86_64
       22:33:47 +0000 CRIT: OS: Linux
       22:33:47 +0000 CRIT: 
       22:33:47 +0000 CRIT: Please detail your operating system type, version and any other relevant details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>>     Converge failed on instance <linux-ubuntu-1804>.  Please see .kitchen/logs/linux-ubuntu-1804.log for more details
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

:latest is resolving to 4.9

As of yesterday, 4.9.0 is the latest gem available and as such things kinda fall down in the switch which looks for 4.8.

Puppet 4.5?

I've restored a snapshot of a dev vagrant box and puppet upgrade didn't work.
I use vagrant-puppet-install 4.1.0.
As requested in error output, I file an issue here.

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

sh install.sh -v 4.5.0 2>&1

Stdout from the command:

08:41:35 +0000 INFO: Version parameter defined: 4.5.0
08:41:35 +0000 INFO: Matching Puppet version to puppet-agent package version (See http://docs.puppetlabs.com/puppet/latest/reference/about_agent.html for more details)
08:41:35 +0000 CRIT: Unable to match requested puppet version to puppet-agent version - Check http://docs.puppetlabs.com/puppet/latest/reference/about_agent.html
08:41:35 +0000 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
08:41:35 +0000 CRIT: 
08:41:35 +0000 CRIT: Version: 4.5.0
08:41:35 +0000 CRIT: Platform: ubuntu
08:41:35 +0000 CRIT: Platform Version: 14.04
08:41:35 +0000 CRIT: Machine: x86_64
08:41:35 +0000 CRIT: OS: Linux
08:41:35 +0000 CRIT: 
08:41:35 +0000 CRIT: Please detail your operating system type, version and any other relevant details

[Ubuntu 14.04] Unable to retrieve a valid package

I'm wondering if this is a name change issue.

This file returns a 404 (like in the error)

http://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.deb

But this file seems to exist:

http://apt.puppetlabs.com/puppet-release-trusty.deb

Stdout from the command:

10:17:28 -0700 INFO: Version parameter defined: 4.10.1
10:17:28 -0700 INFO: Matching Puppet version to puppet-agent package version (See http://docs.puppetlabs.com/puppet/latest/reference/about_agent.html for more details)
10:17:28 -0700 INFO: Downloading Puppet 4.10.1 for ubuntu...
10:17:28 -0700 INFO: Ubuntu platform! Lets get you a DEB...
10:17:28 -0700 INFO: Downloading http://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.deb
10:17:28 -0700 INFO:   to file /tmp/install.sh.2156.random_hexdump/puppetlabs-release-pc1-trusty.deb
10:17:28 -0700 INFO: Trying wget...
10:17:28 -0700 CRIT: ERROR 404
10:17:28 -0700 CRIT: Unable to retrieve a valid package!
10:17:28 -0700 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
10:17:28 -0700 CRIT: 
10:17:28 -0700 CRIT: Version: 4.10.1
10:17:28 -0700 CRIT: Platform: ubuntu
10:17:28 -0700 CRIT: Platform Version: 14.04
10:17:28 -0700 CRIT: Machine: x86_64
10:17:28 -0700 CRIT: OS: Linux
10:17:28 -0700 CRIT: 
10:17:28 -0700 CRIT: Please detail your operating system type, version and any other relevant details

Parallels (MacOS) -- Ubuntu 20.04 -- Unable to retrieve a valid package!

I get this error message:

==> default: Installing Puppet 6.17.0 package...
==> default: 09:13:24 -0700 INFO: Version parameter defined: 6.17.0
==> default: 
==> default: 09:13:24 -0700 INFO: Downloading Puppet 6.17.0 for ubuntu...
==> default: 
==> default: 09:13:24 -0700 INFO: Ubuntu platform! Lets get you a DEB...
==> default: 
==> default: 09:13:24 -0700 INFO: Downloading http://apt.puppetlabs.com/puppet6-release-.deb
==> default: 
==> default: 09:13:24 -0700 INFO:   to file /tmp/install.sh.6306.random_hexdump/puppet6-release-.deb
==> default: 
==> default: 09:13:24 -0700 INFO: Trying wget...
==> default: 
==> default: 09:13:25 -0700 CRIT: ERROR 404
==> default: 
==> default: 09:13:25 -0700 CRIT: Unable to retrieve a valid package!
==> default: 
==> default: 09:13:25 -0700 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
==> default: 
==> default: 09:13:25 -0700 CRIT: 
==> default: 
==> default: 09:13:25 -0700 CRIT: Version: 6.17.0
==> default: 
==> default: 09:13:25 -0700 CRIT: Platform: ubuntu
==> default: 
==> default: 09:13:25 -0700 CRIT: Platform Version: 20.04
==> default: 
==> default: 09:13:25 -0700 CRIT: Machine: x86_64
==> default: 
==> default: 09:13:25 -0700 CRIT: OS: Linux
==> default: 
==> default: 09:13:25 -0700 CRIT: 
==> default: 
==> default: 09:13:25 -0700 CRIT: Please detail your operating system type, version and any other relevant details
==> default: 
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

sh install.sh -v 6.17.0 2>&1

Stdout from the command:

09:13:24 -0700 INFO: Version parameter defined: 6.17.0
09:13:24 -0700 INFO: Downloading Puppet 6.17.0 for ubuntu...
09:13:24 -0700 INFO: Ubuntu platform! Lets get you a DEB...
09:13:24 -0700 INFO: Downloading http://apt.puppetlabs.com/puppet6-release-.deb
09:13:24 -0700 INFO:   to file /tmp/install.sh.6306.random_hexdump/puppet6-release-.deb
09:13:24 -0700 INFO: Trying wget...
09:13:25 -0700 CRIT: ERROR 404
09:13:25 -0700 CRIT: Unable to retrieve a valid package!
09:13:25 -0700 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
09:13:25 -0700 CRIT: 
09:13:25 -0700 CRIT: Version: 6.17.0
09:13:25 -0700 CRIT: Platform: ubuntu
09:13:25 -0700 CRIT: Platform Version: 20.04
09:13:25 -0700 CRIT: Machine: x86_64
09:13:25 -0700 CRIT: OS: Linux
09:13:25 -0700 CRIT: 
09:13:25 -0700 CRIT: Please detail your operating system type, version and any other relevant details


Stderr from the command:


Vagrantfile:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  config.vm.box       = 'bento/ubuntu-20.04'
  config.vm.host_name = 'canvas-dev'
  config.puppet_install.puppet_version = :latest

  config.vm.provider "parallels" do |prl|
    prl.update_guest_tools = true
    prl.memory = 1024
  end

  config.vm.network "forwarded_port", guest: 3000, host: 3000

  config.vm.provision :puppet,
    :manifests_path => 'puppet/manifests',
    :module_path    => 'puppet/modules',
    :options        => [ "--pluginsync" ]
end

E: Version '1.7.4-1puppetlabs1' for 'facter' was not found

Was working fine last week.
Looks like latest change doesn't have Ubuntu trusty/14.04

I noticed the version was being ignored

I think the issue is the glob expression in install_puppet.sh:422'
[^2.7.])

I believe this will match any string and it can optionally contain '^' and/or '2', and/or '.' and/or '7',' in the middle of the string

I think this might be the intent:

        case "$version" in
          *2.7* | 2.7*)
             echo "2.7.* Puppet deb package tied to Facter < 2.0.0, specifying Facter 1.7.4"
            ;;
          *)
           echo "Everything else"
            ;;
        esac
----------------   output  -----------------
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

sh install.sh -v 3.7.3 2>&1

Stdout from the command:

19:00:45 +0000 INFO: Version parameter defined: 3.7.3
19:00:45 +0000 INFO: Downloading Puppet 3.7.3 for ubuntu...
19:00:45 +0000 INFO: Ubuntu platform! Lets get you a DEB...
19:00:45 +0000 INFO: Downloading http://apt.puppetlabs.com/puppetlabs-release-trusty.deb
19:00:45 +0000 INFO:   to file /tmp/install.sh.2336.18920/puppetlabs-release-trusty.deb
19:00:45 +0000 INFO: Trying wget...
19:00:45 +0000 INFO: installing with dpkg...
Selecting previously unselected package puppetlabs-release.
(Reading database ... 32400 files and directories currently installed.)
Preparing to unpack .../puppetlabs-release-trusty.deb ...
Unpacking puppetlabs-release (1.0-11) ...
Setting up puppetlabs-release (1.0-11) ...
Ign http://apt.puppetlabs.com trusty InRelease
Ign http://security.ubuntu.com trusty-security InRelease
Get:1 http://apt.puppetlabs.com trusty Release.gpg [876 B]
Get:2 http://security.ubuntu.com trusty-security Release.gpg [933 B]
Ign http://us.archive.ubuntu.com trusty InRelease
Get:3 http://apt.puppetlabs.com trusty Release [22.3 kB]
Get:4 http://security.ubuntu.com trusty-security Release [62.0 kB]
Ign http://us.archive.ubuntu.com trusty-updates InRelease
Ign http://us.archive.ubuntu.com trusty-backports InRelease
Get:5 http://apt.puppetlabs.com trusty/main Sources [12.6 kB]
Hit http://us.archive.ubuntu.com trusty Release.gpg
Get:6 http://apt.puppetlabs.com trusty/dependencies Sources [1,418 B]
Get:7 http://us.archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:8 http://security.ubuntu.com trusty-security/main Sources [57.2 kB]
Get:9 http://apt.puppetlabs.com trusty/main amd64 Packages [22.0 kB]
Get:10 http://us.archive.ubuntu.com trusty-backports Release.gpg [933 B]
Get:11 http://apt.puppetlabs.com trusty/dependencies amd64 Packages [932 B]
Hit http://us.archive.ubuntu.com trusty Release
Get:12 http://security.ubuntu.com trusty-security/restricted Sources [2,057 B]
Get:13 http://apt.puppetlabs.com trusty/main i386 Packages [22.0 kB]
Get:14 http://us.archive.ubuntu.com trusty-updates Release [62.0 kB]
Get:15 http://security.ubuntu.com trusty-security/universe Sources [17.4 kB]
Get:16 http://apt.puppetlabs.com trusty/dependencies i386 Packages [932 B]
Get:17 http://security.ubuntu.com trusty-security/multiverse Sources [705 B]
Get:18 http://security.ubuntu.com trusty-security/main amd64 Packages [182 kB]
Get:19 http://us.archive.ubuntu.com trusty-backports Release [62.0 kB]
Hit http://us.archive.ubuntu.com trusty/main Sources
Hit http://us.archive.ubuntu.com trusty/restricted Sources
Get:20 http://security.ubuntu.com trusty-security/restricted amd64 Packages [8,861 B]
Hit http://us.archive.ubuntu.com trusty/universe Sources
Get:21 http://security.ubuntu.com trusty-security/universe amd64 Packages [76.0 kB]
Hit http://us.archive.ubuntu.com trusty/multiverse Sources
Hit http://us.archive.ubuntu.com trusty/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty/restricted amd64 Packages
Get:22 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [1,143 B]
Hit http://us.archive.ubuntu.com trusty/universe amd64 Packages
Get:23 http://security.ubuntu.com trusty-security/main i386 Packages [174 kB]
Hit http://us.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty/main i386 Packages
Hit http://us.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse i386 Packages
Get:24 http://security.ubuntu.com trusty-security/restricted i386 Packages [8,832 B]
Get:25 http://security.ubuntu.com trusty-security/universe i386 Packages [76.0 kB]
Hit http://us.archive.ubuntu.com trusty/main Translation-en
Ign http://apt.puppetlabs.com trusty/dependencies Translation-en_US
Ign http://apt.puppetlabs.com trusty/dependencies Translation-en
Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en
Ign http://apt.puppetlabs.com trusty/main Translation-en_US
Get:26 http://security.ubuntu.com trusty-security/multiverse i386 Packages [1,395 B]
Ign http://apt.puppetlabs.com trusty/main Translation-en
Get:27 http://security.ubuntu.com trusty-security/main Translation-en [91.4 kB]
Hit http://us.archive.ubuntu.com trusty/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty/universe Translation-en
Get:28 http://us.archive.ubuntu.com trusty-updates/main Sources [149 kB]
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Get:29 http://us.archive.ubuntu.com trusty-updates/restricted Sources [2,057 B]
Get:30 http://security.ubuntu.com trusty-security/restricted Translation-en [2,266 B]
Get:31 http://us.archive.ubuntu.com trusty-updates/universe Sources [95.6 kB]
Get:32 http://security.ubuntu.com trusty-security/universe Translation-en [41.5 kB]
Get:33 http://us.archive.ubuntu.com trusty-updates/multiverse Sources [3,539 B]
Get:34 http://us.archive.ubuntu.com trusty-updates/main amd64 Packages [387 kB]
Get:35 http://us.archive.ubuntu.com trusty-updates/restricted amd64 Packages [8,861 B]
Get:36 http://us.archive.ubuntu.com trusty-updates/universe amd64 Packages [229 kB]
Get:37 http://us.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [9,356 B]
Get:38 http://us.archive.ubuntu.com trusty-updates/main i386 Packages [379 kB]
Get:39 http://us.archive.ubuntu.com trusty-updates/restricted i386 Packages [8,832 B]
Get:40 http://us.archive.ubuntu.com trusty-updates/universe i386 Packages [230 kB]
Get:41 http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages [9,539 B]
Get:42 http://us.archive.ubuntu.com trusty-updates/main Translation-en [181 kB]
Hit http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en
Get:43 http://us.archive.ubuntu.com trusty-updates/restricted Translation-en [2,266 B]
Get:44 http://us.archive.ubuntu.com trusty-updates/universe Translation-en [117 kB]
Get:45 http://us.archive.ubuntu.com trusty-backports/main Sources [4,438 B]
Get:46 http://us.archive.ubuntu.com trusty-backports/restricted Sources [14 B]
Get:47 http://us.archive.ubuntu.com trusty-backports/universe Sources [18.0 kB]
Get:48 http://us.archive.ubuntu.com trusty-backports/multiverse Sources [1,883 B]
Get:49 http://us.archive.ubuntu.com trusty-backports/main amd64 Packages [5,151 B]
Get:50 http://us.archive.ubuntu.com trusty-backports/restricted amd64 Packages [14 B]
Get:51 http://us.archive.ubuntu.com trusty-backports/universe amd64 Packages [20.1 kB]
Get:52 http://us.archive.ubuntu.com trusty-backports/multiverse amd64 Packages [1,231 B]
Get:53 http://us.archive.ubuntu.com trusty-backports/main i386 Packages [5,162 B]
Get:54 http://us.archive.ubuntu.com trusty-backports/restricted i386 Packages [14 B]
Get:55 http://us.archive.ubuntu.com trusty-backports/universe i386 Packages [20.0 kB]
Get:56 http://us.archive.ubuntu.com trusty-backports/multiverse i386 Packages [1,235 B]
Get:57 http://us.archive.ubuntu.com trusty-backports/main Translation-en [3,043 B]
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/restricted Translation-en
Get:58 http://us.archive.ubuntu.com trusty-backports/universe Translation-en [17.4 kB]
Ign http://us.archive.ubuntu.com trusty/main Translation-en_US
Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US
Fetched 2,923 kB in 5s (555 kB/s)
Reading package lists...
19:00:53 +0000 INFO: 2.7.* Puppet deb package tied to Facter < 2.0.0, specifying Facter 1.7.4
Reading package lists...
Building dependency tree...
Reading state information...
E: Version '1.7.4-1puppetlabs1' for 'facter' was not found
19:00:53 +0000 CRIT: Installation failed
19:00:53 +0000 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
19:00:53 +0000 CRIT: 
19:00:53 +0000 CRIT: Version: 3.7.3
19:00:53 +0000 CRIT: Platform: ubuntu
19:00:53 +0000 CRIT: Platform Version: 14.04
19:00:53 +0000 CRIT: Machine: x86_64
19:00:53 +0000 CRIT: OS: Linux
19:00:53 +0000 CRIT: 
19:00:53 +0000 CRIT: Please detail your operating system type, version and any other relevant details


Stderr from the command:

stdin: is not a tty

Process finished with exit code 1

Update on CentOS fails due to keys

Using vagrant
Update fails due to gpg keys.

config.vm.box = 'puppetlabs/centos-7.0-64-puppet'

13:40:43 +0000 INFO: Version parameter defined: 4.10.1
13:40:43 +0000 INFO: Matching Puppet version to puppet-agent package version (See http://docs.puppetlabs.com/puppet/latest/reference/about_agent.html for more details)
13:40:43 +0000 INFO: Downloading Puppet 4.10.1 for el...
13:40:43 +0000 INFO: Red hat like platform! Lets get you an RPM...
13:40:43 +0000 INFO: Downloading http://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm
13:40:43 +0000 INFO:   to file /tmp/install.sh.4160.random_hexdump/puppetlabs-release-pc1-el-7.noarch.rpm
13:40:43 +0000 INFO: Trying wget...
13:40:44 +0000 INFO: installing puppetlabs yum repo with rpm...
warning: /tmp/install.sh.4160.random_hexdump/puppetlabs-release-pc1-el-7.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID ef8d349f: NOKEY
Preparing...                          ########################################
Updating / installing...
puppetlabs-release-pc1-1.1.0-5.el7    ######################################warning: /etc/yum.repos.d/puppetlabs-pc1.repo created as /etc/yum.repos.d/puppetlabs-pc1.repo.rpmnew
##
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.sov.uk.goscomb.net
 * extras: mirror.sov.uk.goscomb.net
 * updates: mirror.sov.uk.goscomb.net
Resolving Dependencies
--> Running transaction check
---> Package puppet-agent.x86_64 0:1.2.2-1.el7 will be updated
---> Package puppet-agent.x86_64 0:1.10.1-1.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package            Arch         Version             Repository            Size
================================================================================
Updating:
 puppet-agent       x86_64       1.10.1-1.el7        puppetlabs-pc1        26 M

Transaction Summary
================================================================================
Upgrade  1 Package

Total download size: 26 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7/puppetlabs-pc1/packages/puppet-agent-1.10.1-1.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID ef8d349f: NOKEY
Public key for puppet-agent-1.10.1-1.el7.x86_64.rpm is not installed
Retrieving key from http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs


The GPG keys listed for the "Puppet Labs PC1 Repository el  - x86_64" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.


 Failing package is: puppet-agent-1.10.1-1.el7.x86_64
 GPG Keys are configured as: http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs

13:41:20 +0000 CRIT: Installation failed
13:41:20 +0000 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
13:41:20 +0000 CRIT: 
13:41:20 +0000 CRIT: Version: 4.10.1
13:41:20 +0000 CRIT: Platform: el
13:41:20 +0000 CRIT: Platform Version: 7
13:41:20 +0000 CRIT: Machine: x86_64
13:41:20 +0000 CRIT: OS: Linux
13:41:20 +0000 CRIT: 
13:41:20 +0000 CRIT: Please detail your operating system type, version and any other relevant details

setup fails on fedora 21 due to missing packages

It appears that the fedora 21 repos were reindexed about half an hour ago and all of the fedora 21 packages were removed. While not an actual issue with the install script, others might run into this problem.

http://yum.puppetlabs.com/fedora/f21/products/x86_64/

[DIR]   Parent Directory        -    
[ ] puppetlabs-release-21-11.noarch.rpm 29-Jan-2015 09:26   14K  
[DIR]   repodata/   30-Mar-2015 16:12   -    

23:40:27 +0000 INFO: Version parameter defined: 3.7.5
23:40:27 +0000 INFO: Downloading Puppet 3.7.5 for fedora...
23:40:27 +0000 INFO: Fedora platform! Lets get the RPM...
23:40:27 +0000 INFO: Downloading http://yum.puppetlabs.com/fedora/f21/products/x86_64/puppetlabs-release-21-11.noarch.rpm
23:40:27 +0000 INFO: to file /tmp/install.sh.2244.33831/puppetlabs-release-21-11.noarch.rpm
23:40:27 +0000 INFO: Trying wget...
23:40:27 +0000 INFO: installing puppetlabs yum repo with rpm...
warning: /tmp/install.sh.2244.33831/puppetlabs-release-21-11.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 4bd6ec30: NOKEY
Preparing... ########################################
Updating / installing...
puppetlabs-release-21-11 ########################################
No package puppet-3.7.5 available.
Error: Nothing to do
23:40:30 +0000 CRIT: Installation failed
23:40:30 +0000 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
23:40:30 +0000 CRIT:
23:40:30 +0000 CRIT: Version: 3.7.5
23:40:30 +0000 CRIT: Platform: fedora
23:40:30 +0000 CRIT: Platform Version: 21
23:40:30 +0000 CRIT: Machine: x86_64
23:40:30 +0000 CRIT: OS: Linux
23:40:30 +0000 CRIT:
23:40:30 +0000 CRIT: Please detail your operating system type, version and any other relevant details

Doesnt work on Utopic Unicorn

10:01:39 -0500 INFO: Version parameter defined: 3.7.3
10:01:39 -0500 INFO: Downloading Puppet 3.7.3 for ubuntu...
10:01:39 -0500 INFO: Ubuntu platform! Lets get you a DEB...
10:01:39 -0500 INFO: Downloading http://apt.puppetlabs.com/puppetlabs-release-.deb
10:01:39 -0500 INFO: to file /tmp/install.sh.1748.12265/puppetlabs-release-.deb
10:01:39 -0500 INFO: Trying wget...
10:01:39 -0500 CRIT: ERROR 404
10:01:39 -0500 CRIT: Unable to retrieve a valid package!
10:01:39 -0500 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
10:01:39 -0500 CRIT:
10:01:39 -0500 CRIT: Version: 3.7.3
10:01:39 -0500 CRIT: Platform: ubuntu
10:01:39 -0500 CRIT: Platform Version: 14.10
10:01:39 -0500 CRIT: Machine: i686
10:01:39 -0500 CRIT: OS: Linux
10:01:39 -0500 CRIT:
10:01:39 -0500 CRIT: Please detail your operating system type, version and any other relevant details

puppet version 3.7.2 installation not working for ubuntu/xenial64

with:

config.vm.box = "ubuntu/xenial64"

and

config.puppet_install.puppet_version = "3.7.2"

I got:

==> default: 13:56:30 +0000 INFO: 2.7.* Puppet deb package tied to Facter < 2.0.0, specifying Facter 1.7.4
==> default: Reading package lists...

==> default: Building dependency tree...
==> default: 
==> default: Reading state information...
==> default: E: Version '3.7.2-1puppetlabs1' for 'puppet-common' was not found
==> default: E: Version '3.7.2-1puppetlabs1' for 'puppet' was not found
==> default: E: Version '1.7.4-1puppetlabs1' for 'facter' was not found
==> default: 13:56:30 +0000 CRIT: Installation failed
==> default: 13:56:30 +0000 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
==> default: 13:56:30 +0000 CRIT: 
==> default: 13:56:30 +0000 CRIT: Version: 3.7.2
==> default: 13:56:30 +0000 CRIT: Platform: ubuntu
==> default: 13:56:30 +0000 CRIT: Platform Version: 16.04
==> default: 13:56:30 +0000 CRIT: Machine: x86_64
==> default: 13:56:30 +0000 CRIT: OS: Linux
==> default: 13:56:30 +0000 CRIT: 
==> default: 13:56:30 +0000 CRIT: Please detail your operating system type, version and any other relevant details
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

sh install.sh -v 3.7.2 2>&1

Stdout from the command:

13:56:10 +0000 INFO: Version parameter defined: 3.7.2
13:56:10 +0000 INFO: Downloading Puppet 3.7.2 for ubuntu...
13:56:10 +0000 INFO: Ubuntu platform! Lets get you a DEB...
13:56:10 +0000 WARN: Puppet only offers Puppet 4 packages for Xenial, so only 3.7.2 package avaliable
13:56:10 +0000 WARN: Skipping download of Puppet repistory, using distro upstream instead
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:5 http://security.ubuntu.com/ubuntu xenial-security/main Sources [99.1 kB]
Get:6 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,600 B]
Get:7 http://archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]
Get:8 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [43.9 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [1,140 B]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [381 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [168 kB]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [177 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial/restricted Sources [4,808 B]
Get:14 http://archive.ubuntu.com/ubuntu xenial/universe Sources [7,728 kB]
Get:15 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [94.0 kB]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3,208 B]
Get:17 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1,336 B]
Get:18 http://archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7,532 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4,354 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/main Sources [280 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [3,404 B]
Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [177 kB]
Get:26 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [7,592 B]
Get:27 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [652 kB]
Get:28 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [273 kB]
Get:29 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [543 kB]
Get:30 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [221 kB]
Get:31 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.2 kB]
Get:32 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [7,996 B]
Get:33 http://archive.ubuntu.com/ubuntu xenial-backports/main Sources [3,432 B]
Get:34 http://archive.ubuntu.com/ubuntu xenial-backports/universe Sources [4,376 B]
Get:35 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4,860 B]
Get:36 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [3,220 B]
Get:37 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [5,896 B]
Get:38 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [3,060 B]
Fetched 24.4 MB in 16s (1,437 kB/s)
Reading package lists...
13:56:30 +0000 INFO: 2.7.* Puppet deb package tied to Facter < 2.0.0, specifying Facter 1.7.4
Reading package lists...
Building dependency tree...
Reading state information...
E: Version '3.7.2-1puppetlabs1' for 'puppet-common' was not found
E: Version '3.7.2-1puppetlabs1' for 'puppet' was not found
E: Version '1.7.4-1puppetlabs1' for 'facter' was not found
13:56:30 +0000 CRIT: Installation failed
13:56:30 +0000 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
13:56:30 +0000 CRIT: 
13:56:30 +0000 CRIT: Version: 3.7.2
13:56:30 +0000 CRIT: Platform: ubuntu
13:56:30 +0000 CRIT: Platform Version: 16.04
13:56:30 +0000 CRIT: Machine: x86_64
13:56:30 +0000 CRIT: OS: Linux
13:56:30 +0000 CRIT: 
13:56:30 +0000 CRIT: Please detail your operating system type, version and any other relevant details


Stderr from the command:


[Ubuntu 18.04] Unable to retrieve a valid package

  • petems/vagrant-puppet-install 5.0.0
  • config.vm.box = "bento/ubuntu-18.04"
  • config.vm.box_version = "201803.24.0"
  • config.puppet_install.puppet_version = :latest
==> default: Installing Puppet 5.5.1 package...
==> default: 15:18:19 +0000 INFO: Version parameter defined: 5.5.1
==> default: 15:18:19 +0000 INFO: Downloading Puppet 5.5.1 for ubuntu...
==> default: 15:18:19 +0000 INFO: Ubuntu platform! Lets get you a DEB...
==> default: 15:18:19 +0000 INFO: Downloading http://apt.puppetlabs.com/puppet5-release-.deb
==> default: 15:18:19 +0000 INFO:   to file /tmp/install.sh.1732.random_hexdump/puppet5-release-.deb
==> default: 15:18:19 +0000 INFO: Trying wget...
==> default: 15:18:20 +0000 CRIT: ERROR 404
==> default: 15:18:20 +0000 CRIT: Unable to retrieve a valid package!
==> default: 15:18:20 +0000 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
==> default: 15:18:20 +0000 CRIT:
==> default: 15:18:20 +0000 CRIT: Version: 5.5.1
==> default: 15:18:20 +0000 CRIT: Platform: ubuntu
==> default: 15:18:20 +0000 CRIT: Platform Version: 18.04
==> default: 15:18:20 +0000 CRIT: Machine: x86_64
==> default: 15:18:20 +0000 CRIT: OS: Linux
==> default: 15:18:20 +0000 CRIT:
==> default: 15:18:20 +0000 CRIT: Please detail your operating system type, version and any other relevant details

ubuntu 12.04

Hi, ubuntu 12.04 has only 1.10.0 as puppet-agent version for 4.10.*
these mean that cabling the 1.10.8-1precise is actually wrong.
can we use a :latest or :pc1 as tag to install the latest pc1 version?
looks more simpler

Support to Linux Mint ?

hi guys !

i'm using script your to install many workstations with S.Os based in debian, perfect so far , but i have a workstation with linux mint and your script brought me here !
Would I like know Linux Mint will be a enhancement ? or this it's a bug ?
Machines with Debian or Ubuntu are perfect, but Mint no run

screen

Debian 11 Bullseye is missing in install_puppet_6_agent.sh

case $major_version in
"5") deb_codename="lenny";;
"6") deb_codename="squeeze";;
"7") deb_codename="wheezy";;
"8") deb_codename="jessie";;
"9") deb_codename="stretch";;
"10") deb_codename="buster";;
esac

Debian 11 Bullseye is missing

        case $major_version in
          "5") deb_codename="lenny";;
          "6") deb_codename="squeeze";;
          "7") deb_codename="wheezy";;
          "8") deb_codename="jessie";;
          "9") deb_codename="stretch";;
          "10") deb_codename="buster";;
          "11") deb_codename="bullseye";;
        esac

Fails trying to find the right package

Hi, I'm trying to use the vagrant plugin and get the following error on vagrant up. I'm guessing it's because my box is Ubuntu 16.10 Yakkety, which is not available here: https://apt.puppetlabs.com/
Is there a way to override and get Xenial instead, for example? And is that advisable, or should I downgrade my box to Xenial? (Note: this is a desktop box, not a server).

sh install.sh -v 4.8.1 2>&1

Stdout from the command:

16:05:47 -0500 INFO: Version parameter defined: 4.8.1
16:05:47 -0500 INFO: Matching Puppet version to puppet-agent package version (See http://docs.puppetlabs.com/puppet/latest/reference/about_agent.html for more details)
16:05:47 -0500 INFO: Downloading Puppet 4.8.1 for ubuntu...
16:05:47 -0500 INFO: Ubuntu platform! Lets get you a DEB...
16:05:47 -0500 INFO: Downloading http://apt.puppetlabs.com/puppetlabs-release-pc1-.deb
16:05:47 -0500 INFO:   to file /tmp/install.sh.1956.random_hexdump/puppetlabs-release-pc1-.deb
16:05:47 -0500 INFO: Trying wget...
16:05:47 -0500 CRIT: ERROR 404
16:05:47 -0500 CRIT: Unable to retrieve a valid package!
16:05:47 -0500 CRIT: Please file a bug report at https://github.com/petems/puppet-install-shell/
16:05:47 -0500 CRIT: 
16:05:47 -0500 CRIT: Version: 4.8.1
16:05:47 -0500 CRIT: Platform: ubuntu
16:05:47 -0500 CRIT: Platform Version: 16.10
16:05:47 -0500 CRIT: Machine: x86_64
16:05:47 -0500 CRIT: OS: Linux

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.