Ich möchte eine CentOS 7 VirtualBox VM von Vagrant 1.9.5 bereitstellen und ich möchte einige lokal implementierte Marionettenmodule ausführen.Konnte Klasse nicht finden, wenn ich Puppet-Modul während Vagrant deploy laufen lasse
Unter meinen Vagrantfile:
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.hostname = "test01.virtual"
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.module_path = "puppet/modules/"
puppet.options = ['--verbose']
end
end
und meine default.pp Datei unter ./puppet/manifests:
Package { allow_virtual => true }
include mycode-dummy
Puppet-Modul ok scheint:
$ grep class puppet/modules/mycode-dummy/manifests/init.pp
class dummy($path = '/tmp/dummy',
Wenn ich laufen vagrant up Ich erhalte folgende Fehlermeldung:
....
==> default: Info: Loading facts
==> default: Error: Could not find class mycode-dummy for test01.virtual on node test01.virtual
==> default: Error: Could not find class mycode-dummy for test01.virtual on node test01.virtual
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
Es passiert auch mit anderen Modulen und mit anderen Vagrant Boxen.
ich nicht mochte, war falsch fangen ...
BR
fleX
==> default: Fehler: Puppet :: Parser :: AST :: Ressource mit Fehlerargument fehlgeschlagen: konnte nicht deklarierten Klasse Dummy im/tmp finden /vagrant-puppet/manifests-846018e2aa141a5eb79a64b4015fc5f3/default.pp:9 on node test01.virtual – FleX
sorry fix ein Tippfehler –
Vielen Dank, es funktioniert (nachdem ich das Modul von Mycode-Dummy in Dummy umbenennen) !!!! – FleX