- edit documentation
This commit is contained in:
31
README.md
31
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
|
||||
|
||||
|
||||
14
main.yaml
14
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
|
||||
|
||||
Reference in New Issue
Block a user