Guest User

Untitled

a guest
Jul 20th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. ## input
  2. class transparant_inheritance {
  3. $inherit = "abc"
  4.  
  5. include inherit_class
  6.  
  7. inherit_class::proper_test { "dummy value":; }
  8. }
  9.  
  10. class inherit_class {
  11. search $inherit
  12. include test
  13.  
  14. define proper_test () {
  15. test::def { "$name":; }
  16. }
  17. }
  18.  
  19. class abc::test {
  20. define def () {
  21. notify { "This is abc.":; }
  22. }
  23. }
  24.  
  25.  
  26. ##output
  27. err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find resource type test::def at /srv/puppet/test/env/transparant_inheritance/manifests/init.pp:16 on node etch
  28. notice: Using cached catalog
Add Comment
Please, Sign In to add comment