From 36540162129243596a5ce1ecc00c999ba5ddc849 Mon Sep 17 00:00:00 2001 From: varac Date: Mon, 4 May 2015 20:09:40 +0200 Subject: moved leap_cli installation to leap module Change-Id: I385f7877d0816456e7c57179511604645a4740bc --- vagrant/install-platform.pp | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) (limited to 'vagrant/install-platform.pp') diff --git a/vagrant/install-platform.pp b/vagrant/install-platform.pp index 465ca78a..5ea834b1 100755 --- a/vagrant/install-platform.pp +++ b/vagrant/install-platform.pp @@ -3,34 +3,22 @@ File['/etc/apt/preferences'] -> Exec['refresh_apt'] -> Package <| ( title != 'lsb' ) |> -package { [ 'rsync', 'ruby-hiera-puppet', 'git', 'ruby1.9.1-dev', 'rake', 'jq' ]: - ensure => installed -} - -file { '/etc/gemrc': - content => "---\n:sources:\n - https://rubygems.org/" -} -vcsrepo { '/srv/leap/leap_cli': - ensure => present, - force => true, - revision => 'develop', - provider => 'git', - source => 'https://leap.se/git/leap_cli.git', - owner => 'root', - group => 'root', - notify => Exec['install_leap_cli'], - require => Package['git'] +if $::lsbdistcodename == 'wheezy' { + package { 'ruby-hiera-puppet': + ensure => installed + } } -exec { 'install_leap_cli': - command => '/usr/bin/rake build && /usr/bin/rake install', - cwd => '/srv/leap/leap_cli', - refreshonly => true, - require => [ Package['ruby1.9.1-dev'], File['/etc/gemrc'], Package['rake'] ] +# install leap_cli from source, so it will work with the develop +# branch of leap_platform +class { '::leap::cli::install': + source => true, } file { [ '/srv/leap', '/srv/leap/configuration', '/var/log/leap' ]: ensure => directory } +# install prerequisites for configuring the provider +include ::git -- cgit v1.2.3 From 67590f45a88eb1747bba56489e0957684b54ceac Mon Sep 17 00:00:00 2001 From: varac Date: Wed, 3 Feb 2016 19:55:29 +0100 Subject: Exec overrides need to be referred by their name not with their alias. Resolves https://github.com/pixelated/puppet-pixelated/issues/8 --- vagrant/install-platform.pp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'vagrant/install-platform.pp') diff --git a/vagrant/install-platform.pp b/vagrant/install-platform.pp index 5ea834b1..8d177156 100755 --- a/vagrant/install-platform.pp +++ b/vagrant/install-platform.pp @@ -1,7 +1,5 @@ class {'apt': } -File['/etc/apt/preferences'] -> - Exec['refresh_apt'] -> - Package <| ( title != 'lsb' ) |> +Exec['update_apt'] -> Package <||> if $::lsbdistcodename == 'wheezy' { -- cgit v1.2.3 From b8736b39e21251f9a888914822858c704fdb8e08 Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 25 Feb 2016 09:46:30 +0100 Subject: remove wheezy support --- vagrant/install-platform.pp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'vagrant/install-platform.pp') diff --git a/vagrant/install-platform.pp b/vagrant/install-platform.pp index 8d177156..223853c1 100755 --- a/vagrant/install-platform.pp +++ b/vagrant/install-platform.pp @@ -1,13 +1,6 @@ class {'apt': } Exec['update_apt'] -> Package <||> - -if $::lsbdistcodename == 'wheezy' { - package { 'ruby-hiera-puppet': - ensure => installed - } -} - # install leap_cli from source, so it will work with the develop # branch of leap_platform class { '::leap::cli::install': -- cgit v1.2.3