2013-11-26 2 views
2

저는 현재 작업중인 프로젝트의 가상 컴퓨터에 대한 매니페스트를 만들기 위해 PuPHPet을 사용했습니다.Vagrant가 NFS 공유에 대한 사용 권한을 설정할 수 없습니다.

모든 것이 정상적으로 끝날 때까지 ("알림 : 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만큼 좋은 근처 없을 말한다.

저는 호스트 운영 체제로 우분투 13.10을 실행 중이며 게스트는 우분투 12.04입니다. 구성은 상당히 표준 적이며, 필요한 경우 PuPHPet이 생성 한 파일을 포함하도록이 파일을 편집 할 수 있습니다.

이 문제를 해결하기 위해 수행 할 수있는 작업은 무엇입니까?

+0

당신의 Vagrantfile도 보여줄 수 있습니까? –

+0

나는 내 자신의 Vagrant와 Puppet 설정을 만들고, 약간의 학습을했지만, 효과가 있다고 생각합니다. 적어도 실제로 작동합니다. 필자는 더 이상 설정 파일을 가지고 있지 않지만, 편집하지 않고 PuPHPet에서 곧바로 한 파일이었습니다. – Seer

+0

나는 PuPHPet을 직접 사용했고 수동으로 파일을 편집하여 교정해야하는 사소한 문제도 거의 발생하지 않았습니다. PuPHPet은 현재 적극적으로 개발되고 있으므로 예상되는 동작입니다. 그러나 전반적으로 정말 멋진 도구입니다. –

답변

1

실제로 /var/www이 NFS 마운트 인 경우 norootsquash 옵션을 사용하여 내 보내야합니다. 그렇지 않으면 Puppet (일반적으로 루트로 실행)은 권한을 변경할 수 없습니다.

rootsquash을 사용하고 NFS 사용 권한 서버 측을 관리하는 것이 더 안전합니다.

0

PuPHPet을 사용하면 같은 문제가 발생합니다. 내가 그것을 그래서이 "synced_folders는"나를 위해 속임수를 썼는지은 "후"값을 변경이

 machine_id.bindfs.bind_folder "/mnt/vagrant-#{i}", "#{folder['target']}", 
      after: :synced_folders, 

같다고 puphpet/방랑/방랑 로컬에서 라인 (152)을 변경하는 솔루션이었다. "넝마란트 파괴"와 "넝마 부식"으로 완상 기계를 재 조립하는 것을 잊지 마세요

관련 문제