Thanks, Ohad! I will read documentation more attentively. After configure puppetmasterd with use external node - all has worked fine.
On 27 ноя, 04:11, Ohad Levy <ohadl...@gmail.com> wrote: > did you configure puppet to actually query foreman for node information? > e.g.http://theforeman.org/wiki/foreman/External_Nodes#Example-puppet-exte... > > you can also have a look at this puppet module (which configures foreman > )http://theforeman.org/repositories/entry/foreman/extras/puppet/foreman > > the idea is that you don't need to define each of your nodes in the manifest > anymore > > Ohad > > On Thu, Nov 26, 2009 at 11:18 PM, koliama <a...@billing.ru> wrote: > > Hello, > > I try config puppet with foreman frontend. Into puppetmasterd I create > > modules "test" and create init.pp: > > # Create "/tmp/testfile" if it doesn't exist. > > class test_class { > > file { "/tmp/testfile": > > ensure => present, > > mode => 644, > > owner => root, > > group => root > > } > > } > > Configure nodes in site.pp and import module: > > import "test" > > > node "srv2-svc8.net.billing.ru" { > > include test_class > > } > > > Run puppetmasterd and restart puppetd on node. File /tmp/testfile is > > created. > > Next time I configure foreman: > > 1. Untar in /var/rails/foreman > > 2. Run RAILS_ENV=production rake db:migrate > > 3. Run RAILS_ENV=production rake puppet:import:hosts_and_facts > > (in /var/rails/foreman) > > Importing from /var/puppet/yaml/facts > > Importing srv2-svc8.net.billing.ru > > 4. Run rake puppet:import:puppet_classes --trace RAILS_ENV=production > > (in /var/rails/foreman) > > Environment old:0 current:1 > > PuppetClasses old:0 current:1 > > 5. Start foreman: ./script/server -e production - OK > > Into web-interface I see srv2-svc8 node with all facts, environment > > "prodaction" and class "test_calss" > > 6. After this I create new host in Foreman web page. I include class > > "test_calss" to new host. And I do not add new host in site.pp > > manifest in puppet. > > 7. After restart puppetd on new node file /tmp/testfile is not > > created :( > > > I don't understand - if I create host within foreman interface I all > > the same should create node in site.pp and adhere class "test_class" > > to it? > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Puppet Users" group. > > To post to this group, send email to puppet-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/puppet-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.