Ich begann vor kurzem mit Vagrant und Puppet, und ich habe ein bisschen Schwierigkeiten, Marionette zu arbeiten.Problem Konfiguration Puppetlabs/Apache-Modul mit Vagrant
Mit Puppet möchte ich Apache Benutzer und Gruppe zu vagrant ändern, um Berechtigungsprobleme beim Teilen des Ordners zu lösen.
möchte ich es mit Hilfe folgenden Puppen Config tun
class { "apache":
user => "vagrant",
group => "vagrant",
}
Referenz: diese http://ryansechrest.com/2014/04/unable-set-permissions-within-shared-folder-using-vagrant-virtualbox/
Für i Puppe auf meinem Wirt und Gast-Maschine installiert, auf Host-Maschine hinzugefügt i folgende cofig in Vagrantfile
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests'
puppet.module_path = 'puppet/modules'
end
und erstellt die Datei puppet/Manifeste/default.pp auf Host-Maschine mit Inhalt folgenden
node 'node1' {
include apache
class { "apache":
user => "vagrant",
group => "vagrant",
}
}
Wenn ich vagrant Bestimmung laufen lasse, erhalte ich folgende Fehlermeldung
==> default: Error: Could not find default node or by name with 'localhost' on node localhost
==> default: Error: Could not find default node or by name with 'localhost' on node localhost
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.
Wohin gehe ich falsch?
Ich habe das Modul installiert, ich habe es vor einer Weile zu arbeiten, aber es gibt mir einige Hinweise, die sagen, dass einige Syntax veraltet sind, ist es normal? –
oh richtig, könnte diese 'allow_virtual => true' Sache hinzufügen, meine Antwort editieren, sollte es ok so passieren –