- 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
|
* Currently working. Ansible install of scripts and cron jobs
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
TBD: On first PI:
|
TBD:
|
||||||
* connect to Comcast network to access Github Enterprise
|
* Boot NOOBS and select the Raspbian Lite option:
|
||||||
* install updates
|
* On each Pi
|
||||||
* set password for *pi* account
|
* log in as 'pi' with the password 'raspberry'
|
||||||
* add *pi" to sudo group (for generic Ubuntu VM)
|
* execute 'sudo update-rc.d ssh enable'
|
||||||
* usermod -a -G sudo pi
|
* execute 'sudo invoke-rc.d ssh start'
|
||||||
* remove password requirement for sudo group
|
* execute 'sudo apt update -y'
|
||||||
* sudo visudo
|
* Designate one of the Pi's to be the "main" device and do the following
|
||||||
* change line "%sudo ALL=(ALL:ALL) ALL" to "%sudo ALL=(ALL:ALL) NOPASSWD: ALL"
|
* execute 'sudo apt install -y ansible sshpass git'
|
||||||
* git clone this repo
|
* execute 'git clone ssh://pi@96.82.16.164:/srv/git/ansible.git'
|
||||||
* edit hosts per example
|
* 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
|
### Prerequisites
|
||||||
|
|
||||||
|
|||||||
14
main.yaml
14
main.yaml
@@ -19,10 +19,10 @@
|
|||||||
- vnc
|
- vnc
|
||||||
- domainname
|
- domainname
|
||||||
- pi
|
- pi
|
||||||
# vars_prompt:
|
vars_prompt:
|
||||||
# - name: rocommunity
|
- name: rocommunity
|
||||||
# prompt: "Enter SNMP RO community name"
|
prompt: "Enter SNMP RO community name"
|
||||||
# default: "public"
|
default: "public"
|
||||||
- hosts: youtube
|
- hosts: youtube
|
||||||
roles:
|
roles:
|
||||||
- youtube
|
- youtube
|
||||||
@@ -35,9 +35,9 @@
|
|||||||
- hosts: salesforce
|
- hosts: salesforce
|
||||||
roles:
|
roles:
|
||||||
- salesforce
|
- salesforce
|
||||||
#- hosts: all
|
- hosts: all
|
||||||
# roles:
|
roles:
|
||||||
# - nrpe
|
- nrpe
|
||||||
- hosts: sipclient
|
- hosts: sipclient
|
||||||
roles:
|
roles:
|
||||||
- sipp
|
- sipp
|
||||||
|
|||||||
Reference in New Issue
Block a user