Issue #2403 has been updated by Sam Rowe.

Yea, works fine in 24.7.

Solaris, perhaps by accident says: 

Found multiple default providers for service: base, init; using init.

Which is what we want, as you can see in the code below. HP-UX says the same 
thing, but "using base." which is not what we want.

>From our /etc/puppet/manifests/site.pp

case $kernel {                                                                  
    hp-ux: {                                                                    
        Service { path => "/sbin/init.d" }                                      
        Service { provider => "init" }                                          
        User { shell => "/opt/TWWfsw/bin/bash" }                                
        $pathtobash = "/opt/TWWfsw/bin/bash"                                    
    }                                                                           
    linux: {                                                                    
        Service { enable => true }                                              
        Service { hasstatus => true }                                           
        User { shell => "/bin/bash" }                                           
        $pathtobash = "/bin/bash"                                               
    }                                                                           
    sunos: {                                                                    
        User { shell => "/opt/TWWfsw/bin/bash" }                                
        case $operatingsystemrelease {                                          
            "5.9": { Service { provider => "init" } }                           
            "9_u8": { Service { provider => "init" } }                          
            default: { Service { provider => "smf" } }                          
        }                                                                       
        $pathtobash = "/opt/TWWfsw/bin/bash"                                    
    }                                                                           
}
----------------------------------------
Bug #2403: Provider warnings and override shenaniganz on HP-UX and Solaris
http://projects.reductivelabs.com/issues/2403

Author: Sam Rowe
Status: Needs more information
Priority: Normal
Assigned to: Sam Rowe
Category: RAL
Target version: 0.25.0
Complexity: Unknown
Affected version: 0.25.0beta2
Keywords: 


We finally got around to testing 25b2 on HP-UX and Solaris and we're seeing an 
oddity.

Both OSes will issue this report:

Found multiple default providers for service: base, init; using base            
                                                                                
  

We override the default provider for both OSes in manifests/site.pp. Solaris 
will follow this override, HP-UX will not. Let us know if you'd like some sort 
of trace for this.

Also, since we've provided defaults/overrides for the default service provider, 
why print a warning about it?


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to