From 3a1025b9d03c2a37ca4f5c9ad4d6c873c065e85a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuli=20Sepp=C3=A4nen?= Date: Wed, 20 Mar 2019 08:39:01 +0200 Subject: [PATCH] Lock Kafo version and install it directly without puppet-kafo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The puppet-kafo module is not used outside of this installer and is quite simplistic. Therefore move its code into kafo.pp into this installer. URL: https://github.com/Puppet-Finland/puppet-puppetmaster/issues/87 Signed-off-by: Samuli Seppänen --- Puppetfile | 3 --- vagrant/kafo.pp | 24 +++++++++++++++++++++--- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/Puppetfile b/Puppetfile index 3f28543..6c8fe41 100644 --- a/Puppetfile +++ b/Puppetfile @@ -27,9 +27,6 @@ mod 'theforeman/git', :git => 'https://github.com/theforeman/puppet-git', :commit => 'c7662b61cf31e45e13f28f7ce6a7a3a1b892cff6' mod 'chrekh-hosts', '2.3.1' -mod 'puppetfinland-kafo', - :git => 'https://github.com/Puppet-Finland/puppet-kafo.git', - :tag => '1.0.2' mod 'saz-locales', '2.5.1' mod 'puppet-make', '2.1.0' mod 'saz-memcached', '3.3.0' diff --git a/vagrant/kafo.pp b/vagrant/kafo.pp index 0967a0f..f5e43b1 100644 --- a/vagrant/kafo.pp +++ b/vagrant/kafo.pp @@ -1,6 +1,24 @@ -notify { 'Installing Kafo': } +notify { 'Installing Kafo and its dependencies': } -class { '::kafo': - gem_provider => 'puppet_gem', +package { 'rubygems': + ensure => 'present', } +# We need to use a stable version of Highline module or kafo installers +# won't work +package { 'highline': + ensure => '1.7.10', + provider => 'puppet_gem', +} + +package { 'kafo': + ensure => '2.1.0', + provider => 'puppet_gem', +} + +$gems = [ 'rdoc', 'yard', 'puppet-strings', 'librarian-puppet' ] + +package { $gems: + ensure => 'present', + provider => 'puppet_gem', +}