Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions issue on hieradata directory w/ vagrant #114

Closed
mmarseglia opened this issue Feb 4, 2016 · 1 comment
Closed

Permissions issue on hieradata directory w/ vagrant #114

mmarseglia opened this issue Feb 4, 2016 · 1 comment

Comments

@mmarseglia
Copy link

When hieradata is located within the puppet-control repo permissions cannot be set on the shared vagrant folder within the VM.

[root@master modules]# puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for master.vagrant.vm
Info: Applying configuration version '1454621749'
Error: Failed to set owner to '494': Operation not permitted @ lchown_internal - /vagrant/hieradata
Error: /Stage[main]/Hiera/File[/vagrant/hieradata]/owner: change from vagrant to pe-puppet failed: Failed to set owner to '494': Operation not permitted @ lchown_internal - /vagrant/hieradata
Error: Failed to set group to '495': Operation not permitted @ lchown_internal - /vagrant/hieradata
Error: /Stage[main]/Hiera/File[/vagrant/hieradata]/group: change from vagrant to pe-puppet failed: Failed to set group to '495': Operation not permitted @ lchown_internal - /vagrant/hieradata
Notice: /Stage[main]/Puppet_enterprise::Master::Puppetserver/Service[pe-puppetserver]: Dependency File[/vagrant/hieradata] has failures: true
Warning: /Stage[main]/Puppet_enterprise::Master::Puppetserver/Service[pe-puppetserver]: Skipping because of failed dependencies
Notice: Applied catalog in 9.35 seconds

ws-marsegm:puppet-control marsegm$ tree -L 2
.
├── Puppetfile
├── Readme.md
├── Vagrantfile
├── environment.conf
├── hieradata
│   ├── domain
│   ├── global.yaml
│   ├── nodes
│   └── tier
├── hooks
│   ├── commit_hooks
│   ├── pre-commit
│   └── pre-receive
├── manifests
│   └── site.pp
├── pe-install.txt
├── provision
│   ├── config
│   └── ssh
├── reference
│   └── Puppet\ Code\ Promotion\ Workflow.jpeg
└── site
├── profiles
└── roles

@hunner
Copy link
Member

hunner commented Feb 4, 2016

Pass datadir_manage => false to the base hiera class and it won't try to adjust the permissions.

@hunner hunner closed this as completed Feb 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants