Issue #19233 has been updated by Charlie Sharpsteen.

Category changed from node to language
Status changed from Unreviewed to Investigating
Assignee set to Charlie Sharpsteen
Keywords changed from regex node to node regex variable

Variable interpolation in Puppet regular expressions is currently not supported.

Our docs do say "Regular expressions are written as standard Ruby regular 
expressions", I will work on updating that to include a caveat about variable 
interpolation.
----------------------------------------
Bug #19233: Embedding variables in regex when defining nodes is valid syntax, 
but not parsed correctly.
https://projects.puppetlabs.com/issues/19233#change-87053

Author: Aaron Hicks
Status: Investigating
Priority: Normal
Assignee: Charlie Sharpsteen
Category: language
Target version: 
Affected Puppet version: 3.1.0
Keywords: node regex variable
Branch: 


Puppet does not permit passing a variable as a node name when defining a node, 
but Ruby-like regex is permitted. When a variable is embedded in a regex, the 
syntax is valid and Puppet does not reject the node definition, but the 
variable is not parsed correctly and will never match a node.

    $nodename = 'foo.local'
    
    node /#{foo.local}/ {
        # stuff
    }




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to