Hi Nan,
Tks much for your help, does it mean that every time a need to create
a custom resource my ruby file must be present at /var/opt/lib/pe-
puppet/lib/puppet/type and /opt/puppet/share/puppet/modules/stdlib/lib/
puppet/type/ilegra.rb?
I did a test, when I keep my file at /opt/puppet/share/puppet/modules/
stdlib/lib/puppet/type/ilegra.rb the following command doesn''t work
(puppet describe -s MYRESOURCE) , however when I keep a copy on both
location the command works and the file is not removed.
you see what I mean, my understanding based on system''s behavior is
that to have a custom resource I need a copy of ruby file at the
libdir directory, however to prevent puppet to remove my ruby file I
need a copy at modulepath directory.
Is that the expected behavior ?
best regards.
Cesar
On Feb 1, 9:18 pm, Nan Liu <n...@puppetlabs.com>
wrote:> On Tue, Jan 31, 2012 at 2:07 PM, Cesarbr
>
> <cesar.mesqu...@immediate.com.br> wrote:
> > I just installed "learn puppet" VM in my desktop, I
''m very interested
> > in know more about how often and how Puppet knows when a file or
> >directoryis changed? I changed an example file located at /var/opt/
> > lib/pe-puppet/lib/puppet/type/file_line.rb for testing purposes and
> > all of my changes were rolled back in few minutes. Is there a way to
> > figure out whichfilesin file system are managed through this
> > policy?
>
> This getting replaced during pluginsync. You don''t want to modify
> anything in the pluginsyncdirectory/var/opt/lib/pe-puppet/lib since
> it gets synchronized on each puppet agent run.
>
> The authoritative file is located in pe module path:
> /opt/puppet/share/puppet/modules/stdlib/lib/..
>
> Nan
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.