OpenWISP 2 successfully installed on raspbian jessie (raspberry pi)

1,034 views
Skip to first unread message

Federico Capoano

unread,
Feb 27, 2017, 7:24:51 AM2/27/17
to OpenWISP
Hi everyone,

I wanted to try this for a while, so after another thread was started regarding how to install OpenWISP on a raspberry pi2, I decided to finally give it a try.

I have just installed successfully OpenWISP 2 on a raspberry pi 3 which is flashed with raspbian jessie without any issue. Since raspbian is based on debian, I assumed it would work straightaway and I'm glad I have found out I was right.

The procedure is the same as the documented one, but I will describe it here anyway to help those who'll find this post.

Create an inventory file called "hosts" with the following contents:

[pi]
<IP-ADDRESS-HERE>


Replace <IP-ADDRESS-HERE> with your raspberry pi's IP address or even better a hostname if you have set up a DNS record that points to your pi.

Now create a file playbook.yml with the following contents:

- hosts:
   
- pi
  become
: true
  roles
:
   
- openwisp2
  vars
:
    openwisp2_shared_secret
: <ANY-VALUE-OF-YOUR-LIKING-HERE>


Replace <ANY-VALUE-OF-YOUR-LIKING-HERE> with a password/secret you want to use.

ansible-playbook -i hosts -l pi -u pi --ask-pass --ask-sudo-pass playbook.yml

The process was a bit slow during the first steps of installing the dependencies, but after that everything ran quickly as usual

 The web UI of OpenWISP 2 runs smoothly but apart from a few simple test I did not perform any stress test.

I hope it will be useful.
Federico

Edward Um

unread,
Nov 23, 2017, 11:58:23 PM11/23/17
to OpenWISP
Hi Fredrico, 

Could you clarify where I create a the "hosts" file? its confusing as there already is a hosts file in /etc

Thanks, 

Federico Capoano

unread,
Nov 24, 2017, 1:21:17 AM11/24/17
to open...@googlegroups.com
Hi Edward,

the ansible inventory is not to be confused with the system host file.

Put the ansible files anywhere you like, eg: in your home directory.

The procedure is documented step by step here: https://github.com/openwisp/ansible-openwisp2#usage-tutorial

Federico


--
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.
For more options, visit https://groups.google.com/d/optout.

Edward Um

unread,
Nov 24, 2017, 1:24:34 AM11/24/17
to open...@googlegroups.com
Thanks Fredrico, 

I'll let you know how i go, 


Edward UmNetwork Consultant
CCIE #43286
Telephone               +612 8016 1117
Mobile                      +61 449 051 894
Email                        edwa...@cloudearth.com



This e-mail message (including attachments, if any) is intended for the use of the individual or the entity to whom it is addressed and may contain information that is privileged, proprietary, confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and delete this E-mail message immediately.

Hi Edward,

To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "OpenWISP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openwisp/NuKeugcSsU4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openwisp+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages