Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#543: Unable to install nodejs 5x during vagrant build #544

Merged
merged 5 commits into from
Jan 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ Vagrant.configure(2) do |config|
config.r10k.puppet_dir = 'puppet/environment/development'
config.r10k.puppetfile_path = 'puppet/environment/development/Puppetfile'

## Custom Manifest: general system configurations
#
# Note: future parser allow array iteration in the puppet manifest
config.vm.provision "puppet" do |puppet|
puppet.environment_path = 'puppet/environment'
puppet.environment = 'development'
puppet.manifests_path = 'puppet/environment/development/manifests'
puppet.module_path = 'puppet/environment/development/modules_contrib'
puppet.manifest_file = 'configure_system.pp'
end

## Custom Manifest: install, and configure database
#
# Note: future parser allow array iteration in the puppet manifest
Expand Down
24 changes: 10 additions & 14 deletions puppet/environment/development/Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@ mod 'git',
:git => '[email protected]:puppetlabs/puppetlabs-git.git',
:ref => '0.4.0'

## Install Module: gpg (nodejs dependency)
mod 'puppet-gpg_key',
:git => '[email protected]:treydock/puppet-gpg_key.git'

## Install Module: stdlib (nodejs, redis dependency)
## Install Module: stdlib (redis dependency)
mod 'stdlib',
:git => '[email protected]:puppetlabs/puppetlabs-stdlib.git',
:ref => '4.12.0'
:ref => '4.14.0'

## Install Module: apt (redis dependency)
mod 'apt',
Expand All @@ -32,15 +28,10 @@ mod 'puppet-redis',
:git => '[email protected]:arioch/puppet-redis.git',
:ref => '1.2.3'

## Install Module: wget (nodejs dependency)
mod 'wget',
:git => '[email protected]:maestrodev/puppet-wget.git',
:ref => 'v1.7.1'

## Install Module: nodejs
mod 'nodejs',
:git => '[email protected]:puppet-community/puppet-nodejs.git',
:ref => 'v1.3.0'
:git => '[email protected]:voxpupuli/puppet-nodejs.git',
:ref => 'v2.2.0'

## Install Module: mysql (to be used for mariadb)
mod 'mysql',
Expand Down Expand Up @@ -80,4 +71,9 @@ mod 'drush',
## Install Module: wget
mod 'wget',
:git => '[email protected]:maestrodev/puppet-wget.git',
:ref => 'v1.7.3'
:ref => 'v1.7.3'

## Install Module: timezone
mod 'timezone',
:git => '[email protected]:BashtonLtd/puppet-timezone.git',
:commit => '1672983'
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
require install_nodejs_dependencies

class { 'nodejs':
repo_url_suffix => '5.x',
repo_url_suffix => '5.x',
npm_package_ensure => 'present',
}
}

Expand Down
6 changes: 6 additions & 0 deletions puppet/environment/development/manifests/configure_system.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### configure_system.pp: configures general system configurations.

## define system timezone
class { 'timezone':
locality => 'UTC',
}