Re: [Puppet Users] user resource on darwin throws "undefined method `each' for nil:NilClass"

2018-09-08 Thread Martin Alfke
Hi Peter, maybe the following is possible: Identify the home directory and the shell of the user: grep /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 wrote: > > Martin, that was definitely the

Re: [Puppet Users] user resource on darwin throws "undefined method `each' for nil:NilClass"

2018-09-04 Thread Peter K
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

Re: [Puppet Users] user resource on darwin throws "undefined method `each' for nil:NilClass"

2018-09-04 Thread Peter K
Thank you Henrik. That was useful. I"ll keep that in my bag of tricks. -peter On Friday, August 31, 2018 at 11:48:52 AM UTC-7, Henrik Lindberg 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:

Re: [Puppet Users] user resource on darwin throws "undefined method `each' for nil:NilClass"

2018-09-01 Thread Martin Alfke
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 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

Re: [Puppet Users] user resource on darwin throws "undefined method `each' for nil:NilClass"

2018-08-31 Thread Henrik Lindberg
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 

[Puppet Users] user resource on darwin throws "undefined method `each' for nil:NilClass"

2018-08-31 Thread Peter K
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',