XMLRPC Sync Squid
-
Hey Everyone,
I have like 10 squid instance running at different locations
In Squid:-
Is it possible to sync only few Tabs, like :-
1. Squid Traffic Managment Settings
2. Squid Access Control ListsI don't want to sync Authentication information from my primary squid. (because i have different radius key for all my locations with different ldap servers)
Thanks :)
-
@RootMd5:
Hey Everyone,
I have like 10 squid instance running at different locations
In Squid:-
Is it possible to sync only few Tabs, like :-
1. Squid Traffic Managment Settings
2. Squid Access Control ListsI don't want to sync Authentication information from my primary squid. (because i have different radius key for all my locations with different ldap servers)
Thanks :)
Any suggestion guys?
-
@marcelloc
Hi marcello can you give suggestion please :) -
@rootvallum said in XMLRPC Sync Squid:
@marcelloc
Hi marcello can you give suggestion please :)You will need to code a bit to get it working. Take a look on sync replication code under squid.inc. You will see all the "tabs" it includes before pushing to backup server.
If you comment tabs you do not want to sync, you can forward your configuration to other boxes.$xml = array(); $xml['squid'] = $config['installedpackages']['squid']; $xml['squidupstream'] = $config['installedpackages']['squidupstream']; $xml['squidcache'] = $config['installedpackages']['squidcache']; $xml['squidantivirus'] = $config['installedpackages']['squidantivirus']; $xml['squidnac'] = $config['installedpackages']['squidnac']; $xml['squidtraffic'] = $config['installedpackages']['squidtraffic']; $xml['squidreversegeneral'] = $config['installedpackages']['squidreversegeneral']; $xml['squidreversepeer'] = $config['installedpackages']['squidreversepeer']; $xml['squidreverseuri'] = $config['installedpackages']['squidreverseuri']; $xml['squidauth'] = $config['installedpackages']['squidauth']; $xml['squidusers'] = $config['installedpackages']['squidusers']; /* Assemble XMLRPC payload */ $params = array(XML_RPC_encode($password), XML_RPC_encode($xml));
Remember to disable replication on squid before any package update/upgrade.
-
@marcelloc said in XMLRPC Sync Squid:
@rootvallum said in XMLRPC Sync Squid:
@marcelloc
Hi marcello can you give suggestion please :)You will need to code a bit to get it working. Take a look on sync replication code under squid.inc. You will see all the "tabs" it includes before pushing to backup server.
If you comment tabs you do not want to sync, you can forward your configuration to other boxes.$xml = array(); $xml['squid'] = $config['installedpackages']['squid']; $xml['squidupstream'] = $config['installedpackages']['squidupstream']; $xml['squidcache'] = $config['installedpackages']['squidcache']; $xml['squidantivirus'] = $config['installedpackages']['squidantivirus']; $xml['squidnac'] = $config['installedpackages']['squidnac']; $xml['squidtraffic'] = $config['installedpackages']['squidtraffic']; $xml['squidreversegeneral'] = $config['installedpackages']['squidreversegeneral']; $xml['squidreversepeer'] = $config['installedpackages']['squidreversepeer']; $xml['squidreverseuri'] = $config['installedpackages']['squidreverseuri']; $xml['squidauth'] = $config['installedpackages']['squidauth']; $xml['squidusers'] = $config['installedpackages']['squidusers']; /* Assemble XMLRPC payload */ $params = array(XML_RPC_encode($password), XML_RPC_encode($xml));
Remember to disable replication on squid before any package update/upgrade.
Thanks for your Guidance marcello .
I'll try this :)