Hi all, Giving the following code:
https://github.com/Inuits/puppet-acl/commit/7bf09e329dc08641089780f0104b9b93101f8ddc And the following file tree: # mkdir -p /tmp/foobar/bar # touch /tmp/foobar/{,foo,barfoo,bar/foo} When I run the following command: # puppet apply -e "acl {'/tmp/foobar': permission => 'u:puppet:rwx', recursemode => 'deep', recursive => true}" I get the following output: Notice: Compiled catalog for foo.example.com in environment production in 0.53 seconds Notice: /Stage[main]/Main/Acl[/tmp/foobar]/permission: permission changed 'group::r-x,other::r-x,user::rwx' to 'user:puppet:rwx' Notice: /Stage[main]/Main/Acl[/tmp/foobar/bar]/permission: permission changed 'group::r-x,other::r-x,user::rwx' to 'user:puppet:rwx' Notice: /Stage[main]/Main/Acl[/tmp/foobar/barfoo]/permission: permission changed 'group::r--,other::r--,user::rw-' to 'user:puppet:rwx' Notice: /Stage[main]/Main/Acl[/tmp/foobar/foo]/permission: permission changed 'group::r--,other::r--,user::rw-' to 'user:puppet:rwx' Warning: /Acl[/tmp/foobar/bar]: Cannot schedule without a schedule-containing catalog Warning: /Acl[/tmp/foobar/barfoo]: Cannot schedule without a schedule-containing catalog Warning: /Acl[/tmp/foobar/foo]: Cannot schedule without a schedule-containing catalog Notice: Applied catalog in 0.25 seconds It does the same with: "def generate" instead of "def eval_generate" (L222) "Puppet::Type.type(:acl)" instead of "self.class.new" (L219) The warnings also appear when the ressource is already applied. My questions: 1. Why do I get those "Cannot schedule without a schedule-containing catalog" ? 2. Are the "generate" and "eval_generate" functions "public"? Are they recommended to be used in custom types? If not, how can I achieve the same thing? gr, -- (o- Julien Pivotto //\ Open-Source Consultant V_/_ Inuits - https://www.inuits.eu -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/20150810064433.GA2281%40nitrogen. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: PGP signature