You can create arrays of identical resources:
file { [ '/etc/motd',Under the hood, when the catalog is compiled, it still gets split out into 3 separate resources that are managed independently, but in your manifests you can define them as a single block.
The other option, if these 3 files are always to be the same, is
to pick one to put the actual content into and then use symlinks
or hardlinks for the other two files.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c78a1ca7-7839-433f-8483-8976ecad9532%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi, thanks Peter.
I am writing this module to write it based on the design I have had because... being a little lazy I guess you might say/think. I know that I could do a link, but I believe for something like this an actual file might be required, because if the main file is deleted, then the banner is lost entirely because the links will be broken.
Thanks.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/af6dfdab-311d-7968-1aac-c958386e4829%40alter3d.ca.
That's only true if you use symlinks. Hard links wouldn't have
that issue, though Puppet currently can't handle those with the
file{} resource.
However, the above point is almost irrelevant, because if you
have people going around and randomly deleting files in /etc, I
would argue that you have a WAY bigger problem than being worried
about whether or not a MOTD is displayed, and one that can't be
solved with configuration management software.
- Peter
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a587b59f-03b1-2c5a-d456-c655a9d0cde6%40gmail.com.
Very true Peter, thank you sir.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c5a84f86-60fd-1984-fa5d-e9e761d2a341%40alter3d.ca.
Hi, thanks Peter.
I am writing this module to write it based on the design I have had because... being a little lazy I guess you might say/think. I know that I could do a link, but I believe for something like this an actual file might be required, because if the main file is deleted, then the banner is lost entirely because the links will be broken.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/98a119b6-067c-4fe6-a513-a5b83704f772%40googlegroups.com.