I don't have an answer, but did you verify that when you remove the tilde, the resource applies properly? If so, this does sound like a bug of some sort.
Rob Nelson [email protected] On Thu, Nov 10, 2016 at 9:16 AM, Fabrice Bacchella < [email protected]> wrote: > I need a file called /etc/cron.hourly/~cronalive. I don't like the ~ but > don't have real choice here. > > So I defined the following resource: > > file{'/etc/cron.hourly/~cronalive': > .... > } > > But if fails with: > > Error: Could not set 'file' on ensure: user cronalive20161110-32243-1wx31rr > doesn't exist at .../manifests/node.pp:35 > > I think it resolve ~cronalive using shell resolution and looks for the > homedir of this user. Is there any work around for that ? Adding a \ create > a file whose name starts with a \, using path => > '/etc/cron.hourly/~cronalive' gives the same result. > > -- > 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 [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/puppet-users/45C5718D-14EA-4C2F-BBE0-04AB750075AE%40orange.fr. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAC76iT8mv7-jcTO8S8w3Qw4DaHjahvAU7w9z2HR15zEoeSvqFQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
