[yast-devel] SCR Agents: etc_ssh_sshd_config.scr vs sshd.scr
Hi Hackers, Please, before you write your own SCR agent, check whether such agent doesn't already exist. We currently have two different SCR agents that modify the very same file 'etc_ssh_sshd_config.scr' [0] and 'sshd.scr' [1]. On the other hand, creating a dependency on another YaST module just because of such agent doesn't make sense. In such cases, it is better to unify and move the client(s) to some other package (often yast2.rpm). Why am I writing this here? Well, this is an example I've found unintentionally... [0]http://svn.opensuse.org/svn/yast/trunk/kerberos-client/agents/etc_ssh_sshd_c... [1]http://svn.opensuse.org/svn/yast/trunk/sshd/agents/sshd.scr -- Lukas Ocilka, YaST Developer (xn--luk-gla45d) ----------------------------------------------------------------- Ano, ano. Moudry rozkaz. Sam jsem nemel v tech gratulacich jasno.
On st 2. dubna 2008, Lukas Ocilka wrote:
Hi Hackers,
Please, before you write your own SCR agent, check whether such agent doesn't already exist.
I checked /usr/share/YaST2/scrconf/, but didn't find your agent, because I didn't have yast2-sshd installed :-( Please, move it to yast2.rpm j -- Jiri Suchomel SUSE LINUX, s.r.o. e-mail: jsuchome@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Praha 9, Czech Republic http://www.suse.cz -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Jiří Suchomel napsal(a):
On st 2. dubna 2008, Lukas Ocilka wrote:
Hi Hackers,
Please, before you write your own SCR agent, check whether such agent doesn't already exist.
I checked /usr/share/YaST2/scrconf/, but didn't find your agent, because I didn't have yast2-sshd installed :-(
Please, move it to yast2.rpm
OK, will do. See "YaST SCR Agents" documentation: http://forgeftp.novell.com/yast/doc/SL11.0/scr/index.html You can find all SCR agents we have (actually 'had' when I generated that page, of course ;)!). L.
On Wednesday 02 April 2008 15:13, Lukas Ocilka wrote:
See "YaST SCR Agents" documentation: http://forgeftp.novell.com/yast/doc/SL11.0/scr/index.html
This is documentation? You're kidding, right? CU -- Stefan Hundhammer <sh@suse.de> Penguin by conviction. YaST2 Development SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Nürnberg, Germany -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Stefan Hundhammer napsal(a):
On Wednesday 02 April 2008 15:13, Lukas Ocilka wrote:
See "YaST SCR Agents" documentation: http://forgeftp.novell.com/yast/doc/SL11.0/scr/index.html
This is documentation? You're kidding, right?
Click on an agent path to see what happens. L.
Lukas Ocilka schrieb:
Stefan Hundhammer napsal(a):
On Wednesday 02 April 2008 15:13, Lukas Ocilka wrote:
See "YaST SCR Agents" documentation: http://forgeftp.novell.com/yast/doc/SL11.0/scr/index.html
This is documentation? You're kidding, right?
Click on an agent path to see what happens.
L.
It is nice documented. And examples are even there. What are you expecting more? Greetings Stefan -- ******************************************************************************* Stefan Schubert SUSE LINUX GmbH - Maxfeldstrasse 5 - D-90409 Nuernberg, Germany e-mail: schubi@suse.de ------------------------------------------------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Wednesday 02 April 2008 15:16, Lukas Ocilka wrote:
This is documentation? You're kidding, right?
Click on an agent path to see what happens.
Well, yes - sometimes I get a rudimentary example (no real explanation, of course), sometimes not even that. Often there is not even any word about parameter or return values. Really, IMHO this is completely worthless. A few examples: http://forgeftp.novell.com/yast/doc/SL11.0/scr/108.passwd.html http://forgeftp.novell.com/yast/doc/SL11.0/scr/109.pattern.html http://forgeftp.novell.com/yast/doc/SL11.0/scr/105.network.html Lately there was a discussion about YCP and why many people consider it inferior to other scripting languages. But frankly, I see many of our other "tools" (in particular SCR) as a much bigger obstacle for community involvement. Who would like to program in a development environment like this? CU -- Stefan Hundhammer <sh@suse.de> Penguin by conviction. YaST2 Development SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Nürnberg, Germany -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Stefan Hundhammer napsal(a):
On Wednesday 02 April 2008 15:16, Lukas Ocilka wrote:
This is documentation? You're kidding, right? Click on an agent path to see what happens.
Well, yes - sometimes I get a rudimentary example (no real explanation, of course), sometimes not even that. Often there is not even any word about parameter or return values.
Really, IMHO this is completely worthless. A few examples:
http://forgeftp.novell.com/yast/doc/SL11.0/scr/108.passwd.html http://forgeftp.novell.com/yast/doc/SL11.0/scr/109.pattern.html http://forgeftp.novell.com/yast/doc/SL11.0/scr/105.network.html
Lately there was a discussion about YCP and why many people consider it inferior to other scripting languages. But frankly, I see many of our other "tools" (in particular SCR) as a much bigger obstacle for community involvement. Who would like to program in a development environment like this?
You might be interested in the fact the developers of those agents are responsible for the documentation as well. Is is a generated documentation. http://forgeftp.novell.com/yast/doc/SL11.0/tdg/documentation_SCR.html Someone might go through all the SCR agents and report missing documentation, any volunteer? L.
Hello, On Apr 2 15:16 Lukas Ocilka wrote (shortened):
See "YaST SCR Agents" documentation: http://forgeftp.novell.com/yast/doc/SL11.0/scr/index.html ... Click on an agent path to see what happens.
Nothing happens when I click on "/usr/share/YaST2/scrconf/etc_ssh_ssh_config.scr" at http://forgeftp.novell.com/yast/doc/SL11.0/scr/66.etc.ssh.ssh_config.html Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany AG Nuernberg, HRB 16746, GF: Markus Rex -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Johannes Meixner napsal(a):
Hello,
On Apr 2 15:16 Lukas Ocilka wrote (shortened):
See "YaST SCR Agents" documentation: http://forgeftp.novell.com/yast/doc/SL11.0/scr/index.html ... Click on an agent path to see what happens.
Nothing happens when I click on "/usr/share/YaST2/scrconf/etc_ssh_ssh_config.scr" at http://forgeftp.novell.com/yast/doc/SL11.0/scr/66.etc.ssh.ssh_config.html
Oh, right ... Please, try `less /usr/share/YaST2/scrconf/etc_ssh_ssh_config.scr` that might help (if you have that file installed, of course). L.
Jiří Suchomel napsal(a):
On st 2. dubna 2008, Lukas Ocilka wrote:
Hi Hackers,
Please, before you write your own SCR agent, check whether such agent doesn't already exist.
I checked /usr/share/YaST2/scrconf/, but didn't find your agent, because I didn't have yast2-sshd installed :-(
Please, move it to yast2.rpm
Moved from yast2-sshd 2.16.1 to yast2-2.16.41. The agent file name is 'etc_ssh_sshd_config.scr', path '.etc.ssh.sshd_config'. Please, adapt kerberos to require JaST2 >= 2.16.41 ;) (Will be in autobuild soon) L.
Dne Wednesday 02 of April 2008 16:30:52 Lukas Ocilka napsal(a):
Jiří Suchomel napsal(a):
On st 2. dubna 2008, Lukas Ocilka wrote:
Hi Hackers,
Please, before you write your own SCR agent, check whether such agent doesn't already exist.
I checked /usr/share/YaST2/scrconf/, but didn't find your agent, because I didn't have yast2-sshd installed :-(
Please, move it to yast2.rpm
Moved from yast2-sshd 2.16.1 to yast2-2.16.41. The agent file name is 'etc_ssh_sshd_config.scr', path '.etc.ssh.sshd_config'.
Please, adapt kerberos to require JaST2 >= 2.16.41 ;)
YaRA? (Yet another Rename Attempt) ;-) J. -- Regards, Jiri Srain YaST Team Leader --------------------------------------------------------------------- SUSE LINUX, s.r.o. e-mail: jsrain@suse.cz Lihovarska 1060/12 tel: +420 284 028 959 190 00 Praha 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz
On Wednesday 02 April 2008 14:55, Lukas Ocilka wrote:
Please, before you write your own SCR agent, check whether such agent doesn't already exist.
Do we have any documentation about that? CU -- Stefan Hundhammer <sh@suse.de> Penguin by conviction. YaST2 Development SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Nürnberg, Germany -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (6)
-
Jiri Srain
-
Jiří Suchomel
-
Johannes Meixner
-
Lukas Ocilka
-
Stefan Hundhammer
-
Stefan Schubert