Hi Peter,

maybe the following is possible:

Identify the home directory and the shell of the user:
grep <user> /etc/passwd

if the user has a bash, add a .bashrc
add export LANG=en_US.UTF-8 to the file.

hth,
Martin


> On 5. Sep 2018, at 03:13, Peter K <pe...@beetlebolt.com> wrote:
> 
> Martin, that was definitely the answer.
> Now do you have any idea how to export that variable for the user that runs 
> the puppet service...on a mac?
> thx,
> -peter
> 
> On Saturday, September 1, 2018 at 4:07:11 AM UTC-7, Martin Alfke wrote:
> Hi Peter, 
> 
> please check the locale setting and set it to en_US.UTF-8 
> 
> export LANG=en_US.UTF.8 
> 
> Best, 
> Martin 
> 
> 
> > On 31. Aug 2018, at 20:48, Henrik Lindberg <henrik....@puppet.com> wrote: 
> > 
> > On 2018-08-31 20:23, Peter K wrote: 
> >> I'm getting this error when I try and create a user on osx: 
> >> '''Error: Failed to apply catalog: undefined method `each' for 
> >> nil:NilClass''' 
> >> My code looks like this: 
> >> '''  class fakeadmin2 { 
> >>   user { 'fakeadmin2': 
> >>     name    => 'fakeadmin2', 
> >>     ensure  => 'present', 
> >>     uid       => '504', 
> >>     gid       => '501', 
> >>     home   => '/Users/fakeadmin2', 
> >>   } 
> >> }''' 
> >> ubuntu server package: puppetserver    2.8.0-1puppetlabs1 
> >> puppet master 4.10.9 
> >> puppet agent version 4.10.9 
> >> Any help with how to debug this would be helpful too. 
> > 
> > A stack trace is required to have any guess at what is going wrong. (Run 
> > puppet apply with --trace) 
> > 
> > Also check here (https://puppet.com/docs/puppet/4.10/release_notes.html) 
> > for release notes for versions newer that 4.10.9 (think we are up to 12 
> > now). 
> > 
> > 
> > - henrik 
> > 
> >> thx 
> >> -- 
> >> 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 
> >> <mailto:puppet-users+unsubscr...@googlegroups.com>. 
> >> To view this discussion on the web visit 
> >> https://groups.google.com/d/msgid/puppet-users/7114fc76-ba6e-4ecf-a4b9-efe12f5c297b%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/7114fc76-ba6e-4ecf-a4b9-efe12f5c297b%40googlegroups.com?utm_medium=email&utm_source=footer>.
> >>  
> >> For more options, visit https://groups.google.com/d/optout. 
> > 
> > 
> > -- 
> > 
> > Visit my Blog "Puppet on the Edge" 
> > http://puppet-on-the-edge.blogspot.se/ 
> > 
> > -- 
> > 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/pmc2e2%24tdg%241%40blaine.gmane.org.
> >  
> > 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 puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/68a68332-1f6e-4d16-9f33-32ef3216b0f7%40googlegroups.com.
> 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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/4774E5F9-8D47-441B-A7DB-2A5303BC0DA5%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to