Hi guys! I need your help: I''ve installed "SQL-Lite3" on my puppetmaster. I activated "storeconfigs" both on my puppetmaster and puppetagent. I''m trying to collect all SSH-public keys from all Agents: site.pp: class exporter { @@file {$fqdn: path => "/var/lib/puppet/$fqdn", content => "$ipaddress\n", tag => "ip", } node "agentx.domain1" { include exporter } node "master.domain1" { File <<| tag == "ip" |>> } If i execute the following command, it works on the Puppetmaster:>puppet agent --testbut if I do that on the Agent "agentx.domain1" then I get this error message: Info: ActiveRecord 2.1 or later required for StoreConfigs err: Cached facts for agentx.domain1 failed: Could''nt autoload active record: uninitialized constant ActiveRecord Can someone give me a hint? -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
If I remove "storeconfigs=true" from the Agent''s "puppet.conf"-file then there is no error on the Agent. But the desired files aren''t created in the puppet-server''s "/var/lib/puppet"-directory. No files are created. So where is the data collected? Can anyone help me? -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
It looks like you do not have all the Ruby gems installed. Storeconfigs requires Activerecord version 2.1 or later. On your system depending on how you install your Ruby gems, you should run: #see if Activerecord is installed gem list if you do not find it installed then you should install from pacjage manager or do a gem install activerecord. http://projects.puppetlabs.com/projects/1/wiki/using_stored_configuration Also it should be noted that storeconfigs has been replaced by puppetdb and if you are doing this for the first time you should use PuppetDB instead of storeconfigs. http://docs.puppetlabs.com/puppetdb/latest/ HTH -Cory On Sun, Oct 6, 2013 at 6:58 AM, ytmp123 <tmp123@hotmail.de> wrote:> If I remove "storeconfigs=true" from the Agent''s "puppet.conf"-file then > there is no error on the Agent. But the desired files aren''t created in the > puppet-server''s "/var/lib/puppet"-directory. No files are created. So where > is the data collected? > > Can anyone help me? > > -- > 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+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users. > For more options, visit https://groups.google.com/groups/opt_out.-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.