The repository contains ansible codes for automatic setup of Raspberry Pi 3 on Raspbian OS.
Customization:
--------------
Set local timezone to CEST
Install Python packages: virtualenv
Install OS Packages: vi, tree, docker, nodejs, locate, dnsutils, dos2unix, tightvnc-server
Reomve OS Packages: wolfram-engine
Set history command to display date time format
SSH config change: PermitRootLogin_NO, AllowUsers_pi
- Hardware: Raspberry Pi 3
- Operating System: Raspbian GNU/Linux 8 (jessie)
- Softwares: Ansible 2.3.1.0 or higher, git
- Others: Stable internet connectivity
- Login to RPi with user "pi" and PUTTY, to create "projects" folder: cd ~ && mkdir projects && cd projects
- Clone the git repository: git clone https://github.com/saptadip/ansible.git
- Go inside "ansible" directory: cd ansible
- Add target server names/IPs in the "host" file under the group "[docker-nodes]"
- Run the playbook: ansible-playbook rpi-setup-master-playbook.yml
- Most of the customization parameters are defined under "ansible/group_vars/docker-nodes.yml" file.
- To install any additional OS package, add the package name under apt_packages_to_install variable.
- To uninstall any additional OS package, add the package name under apt_packages_to_uninstall variable.
- To install any additional Python package, add the package name under pip_packages_to_install variable.
- To set a different timezone, change local_timezone variable.
- To install different version of NodeJs, change value of nodejs_version variable.
- To allow more users to connect through ssh to RPi, add the user name to allowed_ssh_users variable seperated by single space. Example: To allow three users with user name "user1", "user2" & "user3", set the variable to:
allowed_ssh_users: user1 user2 user3