Node.js module won't reinstall using puppet / vagrant -
previously had similar configuration working added hiera puppet build started having problems. error have after running vagrant provision
follows:
==> default: [vagrant-hostsupdater] checking host entries ==> default: [vagrant-hostsupdater] found entry for: 192.168.33.10 local.mysite ==> default: configuring cache buckets... ==> default: running provisioner: puppet... ==> default: running puppet app.pp... ==> default: stdin: not tty ==> default: error: not find class nodejs local.mysite on node local.mysite ==> default: error: not find class nodejs local.mysite on node local.mysite ssh command responded non-zero exit status. vagrant assumes means command failed. output command should in log above. please read output determine went wrong.
my vagrant config is:
# -*- mode: ruby -*- # vi: set ft=ruby : require "yaml" # load yaml configuration config_file = "#{file.dirname(__file__)}/config/vm_config.yml" default_config_file = "#{file.dirname(__file__)}/config/.vm_config_default.yml" vm_external_config = yaml.load_file(config_file) # configure vagrant vagrant.configure("2") |config| config.vm.box = "ubuntu/trusty64" config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box" config.vm.network :private_network, ip: vm_external_config["ip"] config.vm.hostname = vm_external_config["hostname"] config.vm.network "forwarded_port", guest: vm_external_config["port"], host: 2368 config.vm.synced_folder vm_external_config["ghost_path"], "/var/www/mysite.com", :nfs => true config.vm.provider :virtualbox |vb| vb.customize ["modifyvm", :id, "--memory", vm_external_config["memory"]] end config.cache.scope = :box config.librarian_puppet.placeholder_filename = ".gitkeep" config.vm.provision :puppet |puppet| puppet.hiera_config_path = "puppet/hiera/hiera.yaml" puppet.manifests_path = "puppet/manifests" puppet.manifest_file = "app.pp" puppet.module_path = "puppet/modules" puppet.facter = { "environment" => env['env'] ? env['env'] : 'local' } end end
my source tree looks (much of isn't relevant aside folders structure custom blog module , hiera config):
├── vagrantfile ├── config │ └── vm_config.yml └── puppet ├── puppetfile ├── hiera │ ├── common.yaml │ ├── hiera.yaml │ ├── local │ │ └── site.yaml │ └── production │ └── site.yaml ├── manifests │ └── app.pp └── modules ├── blog │ └── manifests │ └── app.pp ├── ghost │ └── manifests │ └── app.pp ├── init.d │ └── files │ ├── webhookserver │ └── ghost ├── mailgunner ├── nginx │ ├── files │ │ ├── local │ │ │ ├── mysite.com │ │ │ └── mail.mysite.com │ │ └── production │ │ ├── mysite.com │ │ └── mail.mysite.com │ └── manifests │ └── server.pp ├── tools │ ├── files │ │ ├── local │ │ │ ├── backup.sh │ │ │ ├── ghostsitemap.sh │ │ │ └── init-mysite.sh │ │ └── production │ │ ├── backup.sh │ │ ├── ghostsitemap.sh │ │ └── init-mysite.sh │ └── manifests │ └── install.pp └── webhooks ├── files │ ├── local │ │ └── init-webhook.sh │ ├── production │ │ └── init-webhook.sh │ ├── webhook.sh │ └── webhooks.rb └── manifests └── install.pp
hiera.yaml:
--- :backends: - yaml :yaml: :datadir: /vagrant/hieradata :hierarchy: - "%{::environment}/site - common
common.yaml
-- classes: - site
local/site.yaml
-- :site: environment: local name: local.mysite mailserver: local.mail.mysite
blog/manifests/app.pp
class blog::app { class { 'nodejs': version => 'v0.10.25', } -> package { 'pm2': ensure => present, provider => 'npm', require => class['nodejs'], } }
puppetfile
forge 'https://forgeapi.puppetlabs.com' mod 'willdurand/nodejs', '1.9.4'
basically, problem puppet install not reinstalling nodejs (i'd removed using rm -rf puppet/modules/nodejs
)
does have ideas how or why puppet refusing install nodejs puppet module in puppet/modules directory?
fyi - i've installed willdurand/nodejs module using puppet module install willdurand/nodejs
any appreciated - i've been banging head against brick wall on few days now!
the puppetfile
used vagrant-librarian-puppet install puppet module should install.
make sure plugin installed
$ vagrant plugin list vagrant-librarian-puppet (0.9.2) ....
if dont see plugin, make sure install it
$ vagrant plugin install vagrant-librarian-puppet
Comments
Post a Comment