Skip to content

Instantly share code, notes, and snippets.

@nitinsatish
Last active June 18, 2018 08:41
Show Gist options
  • Save nitinsatish/60604386617f44eba4e8ebf3830045b6 to your computer and use it in GitHub Desktop.
Save nitinsatish/60604386617f44eba4e8ebf3830045b6 to your computer and use it in GitHub Desktop.
[Puppet Errors] common ones #puppet

Splunk error: Error 400 on SERVER: comparison of String with Float failed

  • Check and correct the redhat release
rm -f /etc/redhat-release
ln -s /etc/centos-release /etc/redhat-release
  • Check node defination matches hostname
  • Check facter hostname correct

Hiera lookup failure

  • See if yaml starts with ---

ERB template not found error

Eg:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find template 'profiles/etp/${::profiles::environment}/${::profiles::datacenter_region}/analytics_master/elasticsearch.yml.erb' at /etc/puppet/modules/profiles/manifests/etp/analytics_master.pp:7 on node smf-etp-analytics-master-stage-01.cso.fireeye.com
Warning: Not using cache on failed catalog

Use " instead of ' in manifest specifying template path Eg:

content => template("profiles/etp/${::profiles::environment}/${::profiles::datacenter_region}/analytics_master/elasticsearch.yml.erb"),

Failed to apply catalog: Parameter source failed on File : Could not understand source

Check if manifest has source instead of content

Puppet souce file fails

Could not evaluate: Could not retrieve information from environment production source(s) puppet:///... Check the source path - file shouldn't be in path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment