Push protocol in place of Pull configuration

53 weergaven
Naar het eerste ongelezen bericht

Amit Goyal

ongelezen,
20 mrt 2020, 02:39:4720-03-2020
aan OpenWISP
Hi 

Presently OpenWisp device pull configuration from openwisp and update conflagration on their side . 
Does OpenWisp support push configuration where we can push changes to openwisp Device . 

Please share if there any such implementation already exist in openwisp . 


Regards
Amit

Oliver Kraitschy

ongelezen,
20 mrt 2020, 03:37:4320-03-2020
aan open...@googlegroups.com
Hello Amit,

openwisp-controller has a connections feature which allows to push the
configuration to a device.
Under "Network Device Credentials" you need to define credentials which are
then used to connect to the devices via SSH to push the configuration.

For the connections feature it's also necessary that a celery worker is
running for the background jobs. See https://github.com/openwisp/openwisp-controller#id1

Unfortunately, I don't know about any documentation for this feature.

Greetings,
Oliver
> --
> You received this message because you are subscribed to the Google Groups "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/71d2e803-3bc7-4cff-829b-591f5e9a0e6b%40googlegroups.com.

Amit Goyal

ongelezen,
20 mrt 2020, 05:31:5920-03-2020
aan OpenWISP
Hi Oliver 

Thanks for prompt reply. 

Where I can find "Network Device Credentials" in openwisp ? 

Regards
Amit


On Friday, March 20, 2020 at 1:07:43 PM UTC+5:30, Oliver Kraitschy wrote:
Hello Amit,

openwisp-controller has a connections feature which allows to push the
configuration to a device.
Under "Network Device Credentials" you need to define credentials which are
then used to connect to the devices via SSH to push the configuration.

For the connections feature it's also necessary that a celery worker is
running for the background jobs. See https://github.com/openwisp/openwisp-controller#id1

Unfortunately, I don't know about any documentation for this feature.

Greetings,
Oliver

On Thu, Mar 19, 2020 at 11:39:46PM -0700, Amit Goyal wrote:
> Hi
>
> Presently OpenWisp device pull configuration from openwisp and update
> conflagration on their side .
> Does OpenWisp support push configuration where we can push changes to
> openwisp Device .
>
> Please share if there any such implementation already exist in openwisp .
>
>
> Regards
> Amit
>
> --
> You received this message because you are subscribed to the Google Groups "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to open...@googlegroups.com.

Oliver Kraitschy

ongelezen,
20 mrt 2020, 05:55:3820-03-2020
aan open...@googlegroups.com
Hi Amit,

it's in the admin index page - see the attached screenshot. You'll need
openwisp-controller >= 0.4.0.

Greetings,
Oliver
credentials.png

Amit Goyal

ongelezen,
20 mrt 2020, 05:59:3820-03-2020
aan OpenWISP
Hi Oliver 

Thanks for your help ! .. I got it ... 


Regards
Amit

Federico Capoano

ongelezen,
20 mrt 2020, 11:21:0920-03-2020
aan OpenWISP
For using a private key, you can put this as the value of the parameters field:

{
  "username": "root",
  "key": "-----BEGIN OPENSSH PRIVATE KEY-----\nline1\nline2...etc...\n-----END OPENSSH PRIVATE KEY-----"
}

key is basically the private key using \n instead of new lines (not great UX, I know, but that's the max we can do now).

If you flag it as audo-add it will add it as an available connection method in all devices of that organization.

You will still need to add the public key in the authorized keys of that device.

You may use a password as well, by using "password" instead of "key".

Keep in mind it's imperative that you keep your OpenWISP server even more secure if you enable this feature.

Federico

On Fri, Mar 20, 2020 at 4:59 AM Amit Goyal <amitg...@gmail.com> wrote:
Hi Oliver 

Thanks for your help ! .. I got it ... 


Regards
Amit

On Friday, March 20, 2020 at 3:25:38 PM UTC+5:30, Oliver Kraitschy wrote:
Hi Amit,

it's in the admin index page - see the attached screenshot. You'll need
openwisp-controller >= 0.4.0.

Greetings,
Oliver

On Fri, Mar 20, 2020 at 02:31:58AM -0700, Amit Goyal wrote:
> Hi Oliver
>
> Thanks for prompt reply.
>
> Where I can find "Network Device Credentials" in openwisp ?
>
> Regards
> Amit

--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/08bcd38f-7efb-4e8e-976c-78a58fb13a44%40googlegroups.com.

Amit Goyal

ongelezen,
24 mrt 2020, 03:35:5524-03-2020
aan OpenWISP
Hi Federico 

Thanks for information !

Can we enable API for this module too (Network Device Credentials ) like enabled for other module Device Registration , Template creation ! 

By API , We can push any conflagration to AP automatically 

Regards
Amit 
To unsubscribe from this group and stop receiving emails from it, send an email to open...@googlegroups.com.

Federico Capoano

ongelezen,
24 mrt 2020, 10:42:5524-03-2020
aan OpenWISP
On Tue, Mar 24, 2020 at 2:35 AM Amit Goyal <amitg...@gmail.com> wrote:
Hi Federico 

Thanks for information !

Can we enable API for this module too (Network Device Credentials ) like enabled for other module Device Registration , Template creation ! 

By API , We can push any conflagration to AP automatically 


There's no built in API for this feature yet but you can easily build your own using Django REST Framework

Soon we'll start adding a built-in REST API for the main objects in the system but I can't provide a timeline for this yet.

F.

Amit Goyal

ongelezen,
25 mrt 2020, 02:07:3525-03-2020
aan OpenWISP
Hi Federico

ok Thanks . 

Federico Capoano

ongelezen,
25 okt 2020, 16:10:5025-10-2020
aan OpenWISP
I've added a documentation page that explains how to configure push updates (SSH access), which is a pre-requisite also for firmware upgrades.

Federico Capoano
Allen beantwoorden
Auteur beantwoorden
Doorsturen
0 nieuwe berichten