On Mon, 1 Jul 2019 13:54:47 +1000 William Brown <wbrown@suse.de> wrote:
Hi there,
I'm trying to update autoyast to support 389 directory server as part of the auth-server module. I'm having a hard time understanding how the autoyast specification such as https://doc.opensuse.org/projects/autoyast/#Configuration.Network.Ldap relates to the yast-auth-server module? For example, in the new auth-server module for 389, I'm not sure how to give options from auto-yast that would configure the auth-server module correctly.
This seems like it would be a great addition to the https://yastgithubio.readthedocs.io/en/latest/README/ guide as well, since there are probably other people beside me who want to know how to get from a yast-module to the autoyast xml.
Any advice would be much appreciated!
Hi William, let me answer here and when all team members fine tune answer, we can add it to guide. So where to start? Ideally desktop file: for example lets see bootloader[1] autoinst related parts are: X-SuSE-YaST-AutoInst=configure X-SuSE-YaST-AutoInstResource= X-SuSE-YaST-AutoInstPath=install X-SuSE-YaST-AutoInstSchema=bootloader.rnc for documentation see desktop file documentation - https://github.com/yast/yast-yast2/blob/master/doc/desktop_file.md#autoyast-... so there is rnc file which specify schema. You can find it in src/autoyast_rnc directory [2]. And where it is processed? For generic modules in client defined in X-SuSE-YaST-AutoInstClient or in {module name}_auto if not defined. For API of such client we document it in auto client helper at [3]. For example client see e.g. bootloader one[4]. And when you have all this, do not forget to bump and add requirement to yast2-schema, which collects rnc files and create final autoyast schema file. So to sum it up what to do if you want to add support to yast2-auth-server: 1. enhance desktop file ([2]) 2. have auto client [3] 3. add requirement and bump yast2-schema I hope I do not forget anything. Please anyone correct me or clarify whatever part of my email, as I am not fluence in autoyast. Josef [1] https://github.com/yast/yast-bootloader/blob/master/src/desktop/org.opensuse... [2] https://github.com/yast/yast-bootloader/blob/master/src/autoyast-rnc/bootloa... [3] https://github.com/yast/yast-yast2/blob/30a9253009a02a8fb0366c372fe82cdb746d... [4] https://github.com/yast/yast-bootloader/blob/master/src/clients/bootloader_a... respective implementation at https://github.com/yast/yast-bootloader/blob/master/src/lib/bootloader/auto_...
— Sincerely,
William Brown
Senior Software Engineer, 389 Directory Server SUSE Labs
-- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org