2

現在取り組んでいるプロジェクトの仮想マシンのマニフェストを作成するために PuPHPet を使用しました。

最後まですべて問題ありません (「通知: カタログの実行が xxx.xx 秒で終了しました」の後)。次に、次のように述べています。

Stderr from the command:

stdin: is not a tty
Warning: Could not retrieve fact fqdn
Error: Failed to set owner to '0': Operation not permitted - /var/www
Error: /Stage[main]//File[/var/www]/owner: change from vagrant to root failed: Failed to set owner to '0': Operation not permitted - /var/www
Error: Failed to set group to '33': Operation not permitted - /var/www
Error: /Stage[main]//File[/var/www]/group: change from vagrant to www-data failed: Failed to set group to '33': Operation not permitted - /var/www
Warning: /Stage[main]//Apache::Vhost[ARbCsyrS6ueR]/File[/var/www/12_PHP_david_wright_images/src/web]: Skipping because of failed dependencies
Warning: /Stage[main]/Apache/Apache::Vhost[default]/File[15-default.conf]: Skipping because of failed dependencies
Warning: /Stage[main]//Apache::Vhost[ARbCsyrS6ueR]/File[25-ARbCsyrS6ueR.conf]: Skipping because of failed dependencies
Warning: /Stage[main]//Apache::Vhost[ARbCsyrS6ueR]/File[25-ARbCsyrS6ueR.conf symlink]: Skipping because of failed dependencies
Warning: /Stage[main]/Apache/Apache::Vhost[default]/File[15-default.conf symlink]: Skipping because of failed dependencies
Warning: /Stage[main]/Apache::Service/Service[httpd]: Skipping because of failed dependencies

代わりに通常の共有フォルダーを使用してみましたが、他の問題が発生しました。さらに、共有フォルダーの速度は NFS ほど良くないと言われています。

ホスト オペレーティング システムとして Ubuntu 13.10 を実行しており、ゲストは Ubuntu 12.04 です。構成はかなり標準的です。必要に応じて、これを編集して、PuPHPet が作成したファイルを含めることができます。

この問題を解決するにはどうすればよいですか?

4

2 に答える 2

1

/var/wwwが実際に NFS マウントである場合は、norootsquashオプションを使用してエクスポートする必要があります (勇気がある場合)。そうしないと、Puppet (通常は root として実行されます) はその権限を変更できません。

rootsquashNFS アクセス許可サーバー側を使用および管理する方が安全であることに注意してください。

于 2014-05-05T15:21:31.787 に答える