Boolean to optionally purge unmanaged entries from hosts
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/9dc28aec-ed57-4929-825d-5342ab3239c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Johan De Wit Open Source Consultant Red Hat Certified Engineer (805008667232363) Puppet Certified Professional 2013/2014/2015 (PCP0000006) Puppet Certified Instructor blog : http://johan.koewacht.net/ _________________________________________________________
Upcoming Trainings:
Bacula Administrator I | http://www.open-future.be/bacula-administrator-i-training-23rd-till-25th-june
Zabbix Certified Specialist | http://www.open-future.be/zabbix-certified-specialist-training-7th-till-9thth-september
Zabbix Certified Professional | http://www.open-future.be/zabbix-certified-professional-training-10th-till-11th-september
Puppet Fundamentals | http://www.open-future.be/puppet-fundamentals-training-14th-till-16th-september
Puppet Architect | http://www.open-future.be/puppet-architect-training-17th-till-18th-september
Bacula Administrator I | http://www.open-future.be/bacula-administrator-i-training-22nd-till-24th-september
Linux Training | http://www.open-future.be/linux-training-28th-till-2nd-october
Subscribe to our newsletter: http://eepurl.com/BUG8H
'hosts::hostentries':
'puppet.mybluebolt.com':
'ip': '10.150.28.8'
'host_aliases': 'puppet' # optional; may also be an array
## THIS FILE IS MANAGED BY PUPPET# /etc/puppetlabs/puppet/environments/production/modules/hosts/templates/trusty/etc/hosts.erb#
127.0.0.1 localhost10.150.28.4 AVC2-WUS1-APP01.AVC2-WUS1-CS1.d6.internal.cloudapp.net AVC2-WUS1-APP01
# The following lines are desirable for IPv6 capable hosts::1 localhost ip6-localhost ip6-loopbackff02::1 ip6-allnodesff02::2 ip6-allrouters
# THIS FILE IS MANAGED BY PUPPET# /etc/puppetlabs/puppet/environments/production/modules/hosts/templates/trusty/etc/hosts.erb sudo puppet agent --testInfo: Retrieving pluginfactsInfo: Retrieving pluginInfo: Loading factsError: Could not retrieve catalog from remote server: Error 400 on SERVER: can't convert Array into Hash at /etc/puppetlabs/puppet/environments/production/modules/hosts/manifests/init.pp:149 on node146 if $host_entries != undef {147 $host_entries_real = delete($host_entries,$::fqdn)148 validate_hash($host_entries_real)149 create_resources(host,$host_entries_real)150 }
So I started over from scratch, and now I get the following error on the agent:sudo puppet agent --testInfo: Retrieving pluginfactsInfo: Retrieving pluginInfo: Loading factsError: Could not retrieve catalog from remote server: Error 400 on SERVER: can't convert Array into Hash at /etc/puppetlabs/puppet/environments/production/modules/hosts/manifests/init.pp:149 on nodeline 149 is146 if $host_entries != undef {147 $host_entries_real = delete($host_entries,$::fqdn)148 validate_hash($host_entries_real)149 create_resources(host,$host_entries_real)150 }
What is wrong with my syntax?