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.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.


Reply via email to