Hi,
When using stored configs with exported resources, I''m getting an odd
sort
order for arrays. For example, I have the following resource exported by
all nodes ;
@@sshkey { "${::fqdn}_dsa":
host_aliases =>
["$::fqdn","$::hostname","$::hostip"],
type => dsa,
key => $::sshdsakey,
}
These resources are collected by a master server ;
class ssh::knownhosts {
Sshkey <<| |>> { ensure => present, }
}
Now, on every puppet run on the master server, I get the following change ;
host_aliases changed [''172.20.65.11'',
''rt'', ''rt.creditlink.com.au'']
to ''rt 172.20.65.11 rt.creditlink.com.au''
/Stage[main]/Ssh::Knownhosts/Sshkey[rt.creditlink.com.au_dsa]/host_aliases
So these are effectively the same, but in the wrong order. However, if I
run the puppet agent in the foreground on the master host, the sort order
appears correct.
In my efforts to correct this, I''ve changed collation on the MySQL
database
from latin1 to utf8_general_ci (which involved a full dump & load).
I''ve
also checked environment of the puppet agent on the master server ;
root 30357 0.2 1.8 70844 56032 ? Ssl 11:31 0:10
/usr/bin/ruby /usr/sbin/puppetd PATH=/sbin:/usr/sbin:/bin:/usr/bin PWD=/
LANG=en_US.UTF-8 SHLVL=2 _=/usr/sbin/puppetd
So, i''d expect sort order to be controlled by LC_COLLATE, which should
take
the value of LANG (en_US.UTF-8). This should result in numerics occuring
before alphabetic characters.
Does anyone have any ideas how I can fix or debug this?
Thanks,
Grant
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.