Hello, still upgrading to .20.1 and i have another issue that puppet does not regonize anymore my definitions, i use some ensure lines definition in a function.pp file and since then i am unable to make it work. puppetmasterd tells me this: Unknown function sudoensure_line in file /etc/puppet/manifests/./classes/backup.pp the import of the function is my 2 line of the site.pp and i also wrapped them into a class and then included it but this does not change anything. I wonder where i messed up :) the debug shows: debug: importing ''functions.pp'' ... debug: importing ''./classes/backup.pp'' Unknown function sudoensure_line in file /etc/puppet/manifests/./classes/backup.pp at line 46 and grep ''sudoensure_line'' /etc/puppet/manifests/functions.pp define sudoensure_line($ligne) { any idea ? -- Cordialement, Ghislain _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Adnet Ghislain wrote:> Hello, > > > still upgrading to .20.1 and i have another issue that puppet does not > regonize anymore my definitions, i use some ensure lines definition in a > function.pp file and since then i am unable to make it work. > puppetmasterd tells me this: > > Unknown function sudoensure_line in file > /etc/puppet/manifests/./classes/backup.pp > > the import of the function is my 2 line of the site.pp and i also > wrapped them into a class and then included it but this does not change > anything. I wonder where i messed up :) > the debug shows: > > debug: importing ''functions.pp'' > ... > debug: importing ''./classes/backup.pp'' > Unknown function sudoensure_line in file > /etc/puppet/manifests/./classes/backup.pp at line 46 > > and > grep ''sudoensure_line'' /etc/puppet/manifests/functions.pp > define sudoensure_line($ligne) {Is the definition contained within a class? I know that was a bug in 0.20.0, and I think it''s still in 0.20.1. It''s fixed in trunk, but it won''t be released until I get purging working, which should be soon. -- No one who cannot rejoice in the discovery of his own mistakes deserves to be called a scholar. --Donald Foster --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
i have included it in a class and done import function.pph include functions but still it fails to see them. Cordialement, Ghislain> > Is the definition contained within a class? I know that was a bug in > 0.20.0, and I think it''s still in 0.20.1. It''s fixed in trunk, but it > won''t be released until I get purging working, which should be soon. > >_______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Adnet Ghislain wrote:> i have included it in a class and done > > import function.pph > include functions > > but still it fails to see them.Is the definition itself defined within a class? If so, move the definition outside of the class. E.g., this won''t work in 0.20.[0-1]: class mystuff { define mydefine { ... } } Move the define outside: define mydefine { ... } class mystuff { ... } -- I happen to feel that the degree of a person''s intelligence is directly reflected by the number of conflicting attitudes she can bring to bear on the same topic. -- Lisa Alther --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
no it still does not work, the funny thing is that if i add the very same define to site.pp i got: debug: importing ''functions.pp'' sudoensure_line is already defined at line 29 on line 29 in file /etc/puppet/manifests/site.pp in file /etc/puppet/manifests/site.pp at line 40 if i remove it from site.pp then : debug: importing ''./classes/backup.pp'' Unknown function sudoensure_line in file /etc/puppet/manifests/./classes/backup.pp at line 46 Cordialement, Ghislain _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Adnet Ghislain wrote:> no it still does not work, the funny thing is that if i add the very > same define to site.pp i got: > > debug: importing ''functions.pp'' > sudoensure_line is already defined at line 29 on line 29 in file > /etc/puppet/manifests/site.pp in file /etc/puppet/manifests/site.pp at > line 40 > > > if i remove it from site.pp then : > > > debug: importing ''./classes/backup.pp'' > Unknown function sudoensure_line in file > /etc/puppet/manifests/./classes/backup.pp at line 46Can you post your code somewhere so I can look at it? -- ACHTUNG!!! Das machine is nicht fur gefingerpoken und mittengrabben. Ist easy schnappen der springenwerk, blowenfusen und corkenpoppen mit spitzensparken. Ist nicht fur gewerken by das dummkopfen. Das rubbernecken sightseeren keepen hands in das pockets. Relaxen und vatch das blinkenlights!!! --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com