Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

future parser compatibility #68

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

pulecp
Copy link
Collaborator

@pulecp pulecp commented Apr 26, 2017

No description provided.

@pulecp pulecp force-pushed the master branch 2 times, most recently from 2398be0 to 562273a Compare April 26, 2017 15:34
@@ -29,7 +29,7 @@
$ips = false, # an optional list of ip's for each in hosts[]
$clients = [] # list of allowed client ip's # TODO: get from exported resources
) {
$FW = '$FW' # make using $FW in shorewall easier
$fw = '$fw' # make using $fw in shorewall easier
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't reviewed the whole patch, but this is obviously incorrect, meaning you probably did a quick search/replace. Could you fix this and have a quick look through the whole patch? Thanks!

@pulecp
Copy link
Collaborator Author

pulecp commented Apr 26, 2017

True, I simply renamed couple of variables and didn't noticed that a variable name is the same as a content :). I fixed it.

Copy link
Owner

@purpleidea purpleidea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch, I just need a bit more background on the specifics of why this is needed. Thanks!

@@ -29,7 +29,7 @@
$ips = false, # an optional list of ip's for each in hosts[]
$clients = [] # list of allowed client ip's # TODO: get from exported resources
) {
$FW = '$FW' # make using $FW in shorewall easier
$fw = '$FW' # make using $FW in shorewall easier
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to use a lowercase varname? Is it required in puppet 4? The reason I left it as caps is that this way the shorewall rules are perfectly readable as folks are used to them.

Copy link
Collaborator Author

@pulecp pulecp Apr 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The goal of my patch was to fix those errors when you check the code with enabled future parser:

Error: Node inheritance is not supported in Puppet >= 4.0.0. See http://links.puppetlabs.com/puppet-node-inheritance-deprecation at ./modules/gluster/vagrant/puppet/manifests/site.pp:10:22
Error: Node inheritance is not supported in Puppet >= 4.0.0. See http://links.puppetlabs.com/puppet-node-inheritance-deprecation at ./modules/gluster/vagrant/puppet/manifests/site.pp:41:28
Error: Node inheritance is not supported in Puppet >= 4.0.0. See http://links.puppetlabs.com/puppet-node-inheritance-deprecation at ./modules/gluster/vagrant/puppet/manifests/site.pp:108:29
Error: Illegal variable name, The given name 'FW' does not conform to the naming rule /^((::)?[a-z]\w*)*((::)?[a-z_]\w*)$/ at ./modules/gluster/vagrant/puppet/manifests/site.pp:137:2
Error: Illegal variable name, The given name 'FW' does not conform to the naming rule /^((::)?[a-z]\w*)*((::)?[a-z_]\w*)$/ at ./modules/gluster/vagrant/puppet/manifests/site.pp:182:22
Error: Illegal variable name, The given name 'FW' does not conform to the naming rule /^((::)?[a-z]\w*)*((::)?[a-z_]\w*)$/ at ./modules/gluster/vagrant/puppet/manifests/site.pp:183:22
Error: Illegal variable name, The given name 'FW' does not conform to the naming rule /^((::)?[a-z]\w*)*((::)?[a-z_]\w*)$/ at ./modules/gluster/vagrant/puppet/manifests/site.pp:187:23
Error: Illegal variable name, The given name 'FW' does not conform to the naming rule /^((::)?[a-z]\w*)*((::)?[a-z_]\w*)$/ at ./modules/gluster/vagrant/puppet/manifests/site.pp:188:22
Error: Illegal variable name, The given name 'FW' does not conform to the naming rule /^((::)?[a-z]\w*)*((::)?[a-z_]\w*)$/ at ./modules/gluster/vagrant/puppet/manifests/site.pp:189:22
Error: Illegal variable name, The given name 'FW' does not conform to the naming rule /^((::)?[a-z]\w*)*((::)?[a-z_]\w*)$/ at ./modules/gluster/vagrant/puppet/manifests/site.pp:193:15
Error: Found 11 errors. Giving up

So yes, they are not allowed in future versions of puppet.

Signed-off-by: Pavel Pulec <[email protected]>
@pulecp
Copy link
Collaborator Author

pulecp commented Apr 27, 2017

I also made one more change. File modes have to be defined as a string.

@purpleidea
Copy link
Owner

@pulecp Want to be added as a maintainer?

@pulecp
Copy link
Collaborator Author

pulecp commented May 2, 2017

@purpleidea it might be fine even when I don't puppetize gluster nowadays.

@purpleidea
Copy link
Owner

@pulecp Please excuse the delay. You've been added as a collaborator. Please only use fast-forward merges. (No merge commits.) Any major changes, please ping me before merging. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants