summaryrefslogtreecommitdiff
path: root/puppet/modules/leap
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-12-20 22:36:47 +0100
committervarac <varacanero@zeromail.org>2016-12-20 22:36:47 +0100
commit3d254dcd1899fa266d0170f18da7b556a8114302 (patch)
tree4ae72ac1213f24720f5ec43173257e3f9bc216bd /puppet/modules/leap
parentda70f97f9478281c296c3412dc1f25ada989eeb2 (diff)
[Vagrant] Install leap_cli gem dependencies
Diffstat (limited to 'puppet/modules/leap')
-rw-r--r--puppet/modules/leap/manifests/cli/install.pp16
1 files changed, 12 insertions, 4 deletions
diff --git a/puppet/modules/leap/manifests/cli/install.pp b/puppet/modules/leap/manifests/cli/install.pp
index 25e87033..d009316b 100644
--- a/puppet/modules/leap/manifests/cli/install.pp
+++ b/puppet/modules/leap/manifests/cli/install.pp
@@ -1,13 +1,20 @@
# installs leap_cli on node
class leap::cli::install ( $source = false ) {
+
+ # nokogiri is a dependency gem of leap_cli and
+ # needs build tools in order to get compiled
+ ensure_packages (['gcc', 'make', 'zlib1g-dev'])
+ class { '::ruby':
+ install_dev => true,
+ require => [ Package['gcc'], Package['make'], Package['zlib1g-dev'] ]
+ }
+
+
if $source {
# needed for building leap_cli from source
include ::git
include ::rubygems
- class { '::ruby':
- install_dev => true
- }
class { 'bundler::install': install_method => 'package' }
@@ -40,7 +47,8 @@ class leap::cli::install ( $source = false ) {
else {
package { 'leap_cli':
ensure => installed,
- provider => gem
+ provider => gem,
+ require => Class['ruby']
}
}
}