Puppet Directory and File ownership ignored

Posted by Phil Sturgeon on Server Fault See other posts from Server Fault or by Phil Sturgeon
Published on 2012-07-03T08:41:24Z Indexed on 2012/07/03 9:17 UTC
Read the original article Hit count: 391

Filed under:
|
|
|

Puppet seems to be lying to me, which is not very nice.

I am trying to set some files and directories included in /vagrant/src to be 666 and 777, and set the ownership group to the correct Apache user (using the PuppetLabs Apache module).

Output from Puppet says yes.

[default] Running provisioner: Vagrant::Provisioners::Puppet... [default] Running Puppet with /tmp/vagrant-puppet/manifests/default.pp... stdin: is not a tty No LSB modules are available. warning: require is a metaparam; this value will inherit to all contained resources

warning: notify is a metaparam; this value will inherit to all contained resources

notice: /Stage[main]//File[/vagrant/src/addons/]/owner: owner changed 'vagrant' to 'www-data'

notice: /Stage[main]//File[/vagrant/src/addons/]/group: group changed 'vagrant' to 'www-data'

notice: /Stage[main]//File[/vagrant/src/addons/]/mode: mode changed '0755' to '0777'

notice: /Stage[main]//Package[curl]/ensure: ensure changed 'purged' to 'present' notice: /Stage[main]//File[/vagrant/src/system/cms/config/]/owner: owner changed 'vagrant' to 'www-data'

notice: /Stage[main]//File[/vagrant/src/system/cms/config/]/group: group changed 'vagrant' to 'www-data'

notice: /Stage[main]//File[/vagrant/src/system/cms/config/]/mode: mode changed '0755' to '0777'

notice: /Stage[main]//File[/vagrant/src/system/cms/config/config.php]/owner: owner changed 'vagrant' to 'www-data'

notice: /Stage[main]//File[/vagrant/src/system/cms/config/config.php]/group: group changed 'vagrant' to 'www-data'

notice: /Stage[main]//File[/vagrant/src/system/cms/cache/]/owner: owner changed 'vagrant' to 'www-data'

notice: /Stage[main]//File[/vagrant/src/system/cms/cache/]/group: group changed 'vagrant' to 'www-data'

notice: /Stage[main]//File[/vagrant/src/system/cms/cache/]/mode: mode changed '0755' to '0777'

notice: /Stage[main]//File[/vagrant/src/uploads/]/owner: owner changed 'vagrant' to 'www-data'

notice: /Stage[main]//File[/vagrant/src/uploads/]/group: group changed 'vagrant' to 'www-data'

notice: /Stage[main]//File[/vagrant/src/uploads/]/mode: mode changed '0755' to '0777'

notice: /Stage[main]/Apache/Service[httpd]/ensure: ensure changed 'stopped' to 'running' notice: /Stage[main]//File[/vagrant/src/assets/cache/]/owner: owner changed 'vagrant' to 'www-data'

notice: /Stage[main]//File[/vagrant/src/assets/cache/]/group: group changed 'vagrant' to 'www-data'

notice: /Stage[main]//File[/vagrant/src/assets/cache/]/mode: mode changed '0755' to '0777'

notice: Finished catalog run in 2.29 seconds

Output from ls -lah says no:

$ ls -lah /vagrant/src/
total 36K
drwxr-xr-x 1 vagrant vagrant  510 2012-07-03 00:11 .
drwxr-xr-x 1 vagrant vagrant  340 2012-07-03 08:08 ..
drwxr-xr-x 1 vagrant vagrant  136 2012-07-03 00:11 addons
drwxr-xr-x 1 vagrant vagrant  102 2012-07-03 00:11 assets
drwxr-xr-x 1 vagrant vagrant  510 2012-07-03 07:45 .git
-rw-r--r-- 1 vagrant vagrant 1.3K 2012-07-03 00:11 .gitignore
-rwxr-xr-x 1 vagrant vagrant 1.4K 2012-07-03 00:11 .htaccess
-rwxr-xr-x 1 vagrant vagrant 8.8K 2012-07-03 00:11 index.php
drwxr-xr-x 1 vagrant vagrant  442 2012-07-03 00:11 installer
-rwxr-xr-x 1 vagrant vagrant 2.8K 2012-07-03 00:11 LICENSE
-rw-r--r-- 1 vagrant vagrant 1.1K 2012-07-03 00:11 phpdoc.dist.xml
-rw-r--r-- 1 vagrant vagrant 3.3K 2012-07-03 00:11 README.md
drwxr-xr-x 1 vagrant vagrant  204 2012-07-03 00:11 system
-rw-r--r-- 1 vagrant vagrant   42 2012-07-03 00:11 .travis.yml
drwxr-xr-x 1 vagrant vagrant  102 2012-07-03 00:11 uploads

Whats up with that?

My entire config can be found here.

© Server Fault or respective owner

Related posts about ubuntu

Related posts about permissions