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

Volume Setup fails when strict_variables = true & disabled interfaces #33

Open
hypnotortoise opened this issue Feb 20, 2015 · 0 comments

Comments

@hypnotortoise
Copy link

Problematic line in in volume.pp. To find the valid VIP we are parsing through all existing interfaces via facter lookup and matching results from facter lookup for ipaddress_[interface]. However ipaddress_[interface] must not be available for all interfaces found by facter, which results in a undefined variable error.

    $vipif = inline_template("<%= scope.lookupvar('interfaces').split(',').find_all {|x| '${valid_vip}' == scope.lookupvar('ipaddress_'+x) }[0,1].join('') %>")

ErrorLog:

debug: catalog supports formats: b64_zlib_yaml dot pson raw yaml; using pson
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse inline template: Undefined variable "ipaddress_eth0" at /etc/puppet/environments/production/modules/gluster/manifests/volume.pp:169 on node gfs01.sclocal
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
debug: report supports formats: b64_zlib_yaml pson raw yaml; using pson
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

No branches or pull requests

1 participant