Problem deploying global configurations to remote servers

Support requests, bug reports, questions etc.
vash666
beginner
beginner
Posts: 6
Joined: Wed Nov 09, 2011 11:04

Problem deploying global configurations to remote servers

Post by vash666 » Thu Feb 16, 2012 00:54

Hi,

I'm having some problems when i made a remote deploy. The problem is that if i have more than 1 server configured for remote deployment, in the web i see OK deployment for the 3 servers but the files are only copied to the local server and the last remote server configured in the deployment.ini. If i remove the last server on the configuration the deployment is done in the server configured before. This is an example of my global deployment:


[extract config]
type = local
source_file = "/var/www/nconf/output/NagiosConfig.tgz"
target_file = "/tmp/"
action = extract

[copy global config]
type = local
source_file = "/tmp/global/"
target_file = "/usr/local/nagios/etc/objects/global/"
action = copy

[scp upload global config]
type = scp
host = "192.168.1.1"
source_file = "/tmp/global/"
target_file = "/usr/local/nagios/etc/objects/"
user = "root"
reload_command = "/etc/init.d/nagios reload"

[scp upload global config]
type = scp
host = "192.168.2.1"
source_file = "/tmp/global/"
target_file = "/usr/local/nagios/etc/objects/"
user = "root"
reload_command = "/etc/init.d/nagios reload"

[scp upload global config]
type = scp
host = "192.168.3.1"
source_file = "/tmp/global/"
target_file = "/usr/local/nagios/etc/objects/"
user = "root"
reload_command = "/etc/init.d/nagios reload"

For example, the global configuration is only sent to the server 3.1, if i remove this server on the configuration, the configuration is only sent to the server 2.1 and so on.

The remote deployment of the collector configuration is copied without problems in the remote servers, the only problem is with the global configuration.

Can i send the global configuration to more than one remote server?

Thanks for your help in advance.

Regards,

vash

User avatar
agargiulo
NConf developer
NConf developer
Posts: 725
Joined: Fri Mar 06, 2009 17:50
Location: Zurich, Switzerland
Contact:

Re: Problem deploying global configurations to remote serve

Post by agargiulo » Mon Mar 12, 2012 12:40

Hi.

This sounds like a bug in the deployment mechanism. I have opened a task in our bugtracker and we will look into it.

Thank you.

User avatar
fgander
NConf developer
NConf developer
Posts: 308
Joined: Mon Mar 16, 2009 14:23
Location: Bern, Switzerland
Contact:

Re: Problem deploying global configurations to remote serve

Post by fgander » Sun Jul 08, 2012 01:29

Hey

I just saw this issue after some inactivity. Is the problem not your named "array"-keys ?
I don't have any setup right now to test this, so would be great if you can test this and give feedback.

Try to name the 3 servers differently, I guess you are overwriting the config parts , so instead of using

Code: Select all

[scp upload global config]
try something like this:

Code: Select all

[scp upload global config 1]
[scp upload global config 2]
[scp upload global config 3]
If you check the documentation, there is also described how to set or override a title.

Please test and give feedback, thanks!
F.G. - NConf developer
http://www.nconf.org
Image
Follow NConf on Twitter!

Locked