Re: [openwisp] Push protocol in place of Pull configuration

2020-10-25 Thread Federico Capoano
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


On Wednesday, March 25, 2020 at 1:07:35 AM UTC-5, Amit wrote:
>
> Hi Federico
>
> ok Thanks . 
>
> On Tuesday, March 24, 2020 at 8:12:55 PM UTC+5:30, Federico Capoano wrote:
>>
>>
>>
>> On Tue, Mar 24, 2020 at 2:35 AM Amit Goyal  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.
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/b1b76896-720b-4222-8a79-c62cdd1380cdo%40googlegroups.com.


Re: [openwisp] Push protocol in place of Pull configuration

2020-03-25 Thread Amit Goyal
Hi Federico

ok Thanks . 

On Tuesday, March 24, 2020 at 8:12:55 PM UTC+5:30, Federico Capoano wrote:
>
>
>
> On Tue, Mar 24, 2020 at 2:35 AM Amit Goyal  > 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.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/b7ddd268-41cb-4cc1-9741-b4047f6768d6%40googlegroups.com.


Re: [openwisp] Push protocol in place of Pull configuration

2020-03-24 Thread Federico Capoano
On Tue, Mar 24, 2020 at 2:35 AM Amit Goyal  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.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/CAERYH6Vk5PBmPOhcLVdOJ3%2B4Xi0_GEiuuKQWZN9XKSQ%3Dzm0JVA%40mail.gmail.com.


Re: [openwisp] Push protocol in place of Pull configuration

2020-03-20 Thread Federico Capoano
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  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+unsubscr...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/openwisp/08bcd38f-7efb-4e8e-976c-78a58fb13a44%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/CAERYH6WhZp4yuJ6hFLwmgr2dOgxazPezqRThB6hc5EWOXynEig%40mail.gmail.com.


Re: [openwisp] Push protocol in place of Pull configuration

2020-03-20 Thread Oliver Kraitschy
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+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/20200320095535.GA23262%40okWS.


Re: [openwisp] Push protocol in place of Pull configuration

2020-03-20 Thread Amit Goyal
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 . 
> > To view this discussion on the web, visit 
> https://groups.google.com/d/msgid/openwisp/71d2e803-3bc7-4cff-829b-591f5e9a0e6b%40googlegroups.com.
>  
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/a33b3216-8408-44fc-ac16-be9d17638fef%40googlegroups.com.


Re: [openwisp] Push protocol in place of Pull configuration

2020-03-20 Thread Oliver Kraitschy
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 openwisp+unsubscr...@googlegroups.com.
> To view this discussion on the web, visit 
> https://groups.google.com/d/msgid/openwisp/71d2e803-3bc7-4cff-829b-591f5e9a0e6b%40googlegroups.com.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/20200320073740.GA1806%40okWS.