Skip to content

Commit

Permalink
Lock Kafo version and install it directly without puppet-kafo
Browse files Browse the repository at this point in the history
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: #87
Signed-off-by: Samuli Seppänen <[email protected]>
  • Loading branch information
mattock committed Mar 20, 2019
1 parent 9bdef5e commit 3a1025b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
3 changes: 0 additions & 3 deletions Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
24 changes: 21 additions & 3 deletions vagrant/kafo.pp
Original file line number Diff line number Diff line change
@@ -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',
}

0 comments on commit 3a1025b

Please sign in to comment.