- 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
- See if yaml starts with ---
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"),
Check if manifest has source
instead of content
Could not evaluate: Could not retrieve information from environment production source(s) puppet:///...
Check the source path - file shouldn't be in path.