this must be your agent box's hostname contain some invalid characters. --puppet option will load sys/ruby/lib/ruby/1.8/ipaddr.rb on windows, and this will override IPSocket.getaddres method. it will check the hostname and the hostname must match [-A-Za-z\d._]+ pattern.
On Wednesday, March 27, 2013 4:38:49 PM UTC+8, windops wrote: > > The Agent on win2003 can't retrieve the agent's $::ipaddress params. When > I use $::ipaddress in class, I always got the Master ipaddress. > > I tried the facter on the Agent,the result is find: > >> C:\Program Files\Puppet Labs\Puppet\bin>facter |findstr ip >> ipaddress => 168.1.193.97 > > > But if I use the 'puppet' env like this: > >> C:\Program Files\Puppet Labs\Puppet\bin>facter --puppet|findstr ip >> Could not retrieve ipaddress: invalid address >> ipaddress => 168.1.193.189 > > > 168.1.193.189 is the Master's ip address. > > > -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-dev?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
