Puppet 4.x 可以安装在 Ubuntu 14 上吗?

Can Puppet 4.x be installed on Ubuntu 14?

我正在尝试在 Ubuntu 14 上安装 puppet 4.x 遵循以下说明:https://docs.puppet.com/puppet/4.5/reference/install_linux.html#for-apt-based-systems

如果我使用:puppetlabs-release-trusty.deb 安装的最新版本是 3.8。

如果我使用:puppetlabs-release-pc1-trusty.deb 安装的最新版本是 3.4。

如何在 Ubuntu 14

上获得人偶 4.x

gem install puppet

因为 Puppet 4 支持返回到 ruby 1.9.3,或者使用 Puppetlabs apt repo 用于 Ubuntu 14,此处描述:

https://docs.puppet.com/guides/puppetlabs_package_repositories.html#apt-based-systems

并从那里正常安装 apt。

原始 gem 版 Puppet 未得到完全支持,并且存在一些问题。如果可能的话,最好使用一体机原生包(参见https://puppet.com/docs/puppet/4.10/about_agent.html

然后您可以通过以下方式安装 Puppet 4:

$ curl -O  http://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.deb
$ dpkg -i puppetlabs-release-pc1-trusty.deb
$ apt-get update
$ apt-get install puppet-agent

如果你觉得懒惰,可以使用我的一体化安装程序脚本 (https://github.com/petems/puppet-install-shell)

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

从那时起,Puppet 5 就出来了!没有破坏性的语言变化,但提高了一些性能并修复了错误。

同样适用,但步骤略有不同:

$ curl -O http://apt.puppetlabs.com/puppet5-release-trusty.deb
$ dpkg -i puppet5-release-trusty.deb
$ apt-get update
$ apt-get install puppet-agent

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