-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instructions to get this working out of the box #3
Comments
I agree, we need to add instructions on how to use the module. I've added some more comments for the torque parameters in params.pp. The problem with the missing torque queues is fixed, it should work without defining queues now. I'm thinking about rewriting the queue configuration at some point to use a torque::server::queue class, but I don't have the time right now. There is no need to add this as an option. It is up to the user on how to combine the classes. Wrapper classes such as torque::server are mere convenience classes for one general case, if you want to combine the modules differently then you can write your own wrapper class and only include the classes you want. For example you could use the following class:
The file definition is there to satisfy the dependency in maui::service. |
I made a few changes to the torque module. I hope that I have been able to I like the suggestion to use a wrapper class to get the aspects of the However, when I try to add two queues at once I get the following error: Notice: /Stage[main]/Torque::Server::Qmgrconfig/Exec[qmgr update]/returns: server commandsNotice: /Stage[main]/Torque::Server::Qmgrconfig/Exec[qmgr update]/returns: queue commandsNotice: /Stage[main]/Torque::Server::Qmgrconfig/Exec[qmgr update]/returns: node commandsNotice: /Stage[main]/Torque::Server::Qmgrconfig/Exec[qmgr update]: With this hiera configuration torque::params::torque_qmgr_queues: On 27 August 2013 15:15, rwf14f [email protected] wrote:
|
The problems with the queue configuration should be fixed now. I've had a quick look through the changes and they shouldn't cause any problem. I haven't tested them myself. I use my own fork of the module and I haven't merged your changes into it yet.
I would leave it to sites to put hiera calls into params, I think the module in HEP-puppet shouldn't. |
All the recent changes to this torque module are all very nice. I don't necessarily think the modules should work out of the box, but I think there should be some instructions to make them work. One of the design goals I think should be that anyone could look in params.pp and see what parameters were needed. There are at least some parameters that are undocumented, e.g. "torque_queues"
Also I think this module should work when there are no queues yet defined on the server when running some of the Execs that are defined. This just seemed to need a bit of error handling in the custom ruby. I am not sure about pushing partial fixes that I cant possibly test, so I am leaving that for now. I seem to be getting the following error:
Error: Could not retrieve local facts: private method `split' called for nil:NilClass
Finally, there should be the option not to manage the maui config file or the queues. In the spirit of collaboration on all of this, I was indenting to add this and push it up as a pull request, but I don't think I am the best person to handle this
The text was updated successfully, but these errors were encountered: