Skip to content

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

Description

@hypnotortoise

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions