On Feb 9, 2007, at 12:23 PM, Robert Mombro wrote:
> Hello,
>
> I am attempting to extend the standard manifest generated by
> puppetd --genmanifest. Interestingly, it seems like my file
> configurations are not being honored in terms of permissions and
> ownership. Instead, the default permissions and owners are being
> set. Is there some way to override the defaults from within a
> manifest?
>
> Also, I attempted to use the special parameters in the
> configuration file; owner, group, and mode. These did not appear
> to work correctly and the mode of many of the files and directories
> was set quite strangely such as d-w--wxrwT on classes.txt. Is
> there some special syntax for properly utilizing these variables?
The current mechanisms for doing this are kind of broken and filed as
a bug.
If you change things in your normal manifest, Puppet will just change
them back; you have to override them in the configuration file.
If you''re getting weird mode behaviour, it''s probably because
I''m
doing something stupid like interpreting the mode as a decimal number
rather than octal. If you can confirm that (i.e., try using the
decimal version of the number you want), please file it as a bug (I''m
thinking it might already be...).
I''m planning on extending the config file format to directly support
setting these parameters per file, but for now set them above the
file you want it to affect, but note that the settings are in effect
for the rest of the file and thus will affect all settings after them.
--
It''s impossible to foresee the consequences of being clever.
-- Christopher Strachey
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com