Re: [Puppet Users] puppet 3 to 4 deprication error

2016-01-24 Thread Ryan Anderson
In updating my code for puppet4, I've found simply enclosing the facts in double-quotes is all that is needed. These cases are generally an issue where the fact involved is parsed on a system where the fact isn't defined, so by putting double-quotes, you retain the fact for platforms that have i

Re: [Puppet Users] puppet 3 to 4 deprication error

2016-01-23 Thread Jeremiah Powell
The error might be confusing since it is a programmer-ese statement from the parser instead of simple English sentence. The programmer-ese is straightforward to decode from the provided example. One of the variables on the left side regular expressions or the left side of the string compariso

Re: [Puppet Users] puppet 3 to 4 deprication error

2016-01-22 Thread Hunter Haugen
I don't see anything in that line that is incompatible with puppet 4's parser. Perhaps previous lines that set the values of $enable_nfsd or $local_nfsd are affected by the parser? -Hunter On Fri, Jan 22, 2016 at 11:30 AM, wrote: > The values are defined and this class is working with puppet3

Re: [Puppet Users] puppet 3 to 4 deprication error

2016-01-22 Thread rhpuppetuser
The values are defined and this class is working with puppet3 but showing error when i use parser=future. Any syntax errors/pup4 compatibility issue with this code ? On Friday, January 22, 2016 at 12:53:57 PM UTC-6, Trevor Vaughan wrote: > > From the error, I would say that not all of those valu

Re: [Puppet Users] puppet 3 to 4 deprication error

2016-01-22 Thread Trevor Vaughan
>From the error, I would say that not all of those values are defined at that point and that's why you're seeing issues. You'll need to rewrite the statement to check if the variables are defined. Trevor On Fri, Jan 22, 2016 at 12:38 PM, wrote: > I typed the code here. It's a typo here in the

Re: [Puppet Users] puppet 3 to 4 deprication error

2016-01-22 Thread rhpuppetuser
I typed the code here. It's a typo here in the post. Still getting the error. On Friday, January 22, 2016 at 11:24:33 AM UTC-6, Trevor Vaughan wrote: > > If that's a copy/paste, then your second occurrence of enable_nfsd is > misspelled. > > Trevor > > On Fri, Jan 22, 2016 at 11:51 AM, > > wrot

Re: [Puppet Users] puppet 3 to 4 deprication error

2016-01-22 Thread Trevor Vaughan
If that's a copy/paste, then your second occurrence of enable_nfsd is misspelled. Trevor On Fri, Jan 22, 2016 at 11:51 AM, wrote: > I'm planning to migrate puppet3.8 to 4.x, so testing the compatibility of > code by using parser=future in puppet.conf file and was stuck at the > following error

[Puppet Users] puppet 3 to 4 deprication error

2016-01-22 Thread rhpuppetuser
I'm planning to migrate puppet3.8 to 4.x, so testing the compatibility of code by using parser=future in puppet.conf file and was stuck at the following error when i run puppet agent. The error is pointing at the regular expression. Any help is appreciated. Code: --- if ($::enable_n