From 107eb82518240e4ddb3d1cae51e26bf808a55930 Mon Sep 17 00:00:00 2001 From: Pi Date: Thu, 18 Jul 2019 09:34:37 -0400 Subject: [PATCH] - edit documentation --- README.md | 31 ++++++++++++++++++++----------- main.yaml | 14 +++++++------- 2 files changed, 27 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 39b8c64..144dc13 100644 --- a/README.md +++ b/README.md @@ -40,17 +40,26 @@ The Goal is to evenually be able to spin up a "real" network, generating real tr * Currently working. Ansible install of scripts and cron jobs ## Getting Started -TBD: On first PI: -* connect to Comcast network to access Github Enterprise -* install updates -* set password for *pi* account -* add *pi" to sudo group (for generic Ubuntu VM) - * usermod -a -G sudo pi -* remove password requirement for sudo group - * sudo visudo - * change line "%sudo ALL=(ALL:ALL) ALL" to "%sudo ALL=(ALL:ALL) NOPASSWD: ALL" -* git clone this repo -* edit hosts per example +TBD: +* Boot NOOBS and select the Raspbian Lite option: +* On each Pi + * log in as 'pi' with the password 'raspberry' + * execute 'sudo update-rc.d ssh enable' + * execute 'sudo invoke-rc.d ssh start' + * execute 'sudo apt update -y' +* Designate one of the Pi's to be the "main" device and do the following + * execute 'sudo apt install -y ansible sshpass git' + * execute 'git clone ssh://pi@96.82.16.164:/srv/git/ansible.git' + * execute 'cd ansible' + * execute 'nano hosts' and follow the instructions in that file to add all of your Pi devices + * execute 'ssh-keygen -t rsa' you will need to press enter three times to accept the defaults + * execute 'PUBKEY="'$(<~/.ssh/id_rsa.pub)'" && ansible-playbook -i hosts deploy_authorized_keys.yml --ask-pass --extra-vars="pubkey=$PUBKEY"' it will prompt for the password which is still 'raspberry' + * execute 'ansible-playbook -i hosts main.yaml --ask-become-pass' it will ask for the password which is still 'raspberry' + * after it completes without errors + * execute 'ansible-playbook -i hosts reboot.yaml' and wait for it to complete + * execute 'sudo reboot' + +At this point, the configuration of all of the Raspberry Pi devices will be completed and they will start generating traffic as configured while editing the hosts file. ### Prerequisites diff --git a/main.yaml b/main.yaml index 28db304..69d7280 100644 --- a/main.yaml +++ b/main.yaml @@ -19,10 +19,10 @@ - vnc - domainname - pi -# vars_prompt: -# - name: rocommunity -# prompt: "Enter SNMP RO community name" -# default: "public" + vars_prompt: + - name: rocommunity + prompt: "Enter SNMP RO community name" + default: "public" - hosts: youtube roles: - youtube @@ -35,9 +35,9 @@ - hosts: salesforce roles: - salesforce -#- hosts: all -# roles: -# - nrpe +- hosts: all + roles: + - nrpe - hosts: sipclient roles: - sipp