- break out packages by os distro/version
This commit is contained in:
70
host.git
Normal file
70
host.git
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
# list all of the raspberry PI devices in the network
|
||||||
|
# the host name on each will be set to the first column
|
||||||
|
# it can be 1-20 characters, letters, digits, and hyphens
|
||||||
|
wes-host1 ansible_host=192.168.88.217
|
||||||
|
wes-host2 ansible_host=192.168.88.240
|
||||||
|
wes-host3 ansible_host=192.168.88.218
|
||||||
|
|
||||||
|
[ansible-hosts]
|
||||||
|
# there must only be one ansible-host. this is the device
|
||||||
|
# that will act as the configuration server
|
||||||
|
wes-host1
|
||||||
|
|
||||||
|
[pi]
|
||||||
|
# include all Raspberry Pi devces here
|
||||||
|
wes-host1
|
||||||
|
wes-host2
|
||||||
|
wes-host3
|
||||||
|
|
||||||
|
# use variables for passwords
|
||||||
|
# currently not implemented
|
||||||
|
[pi:vars]
|
||||||
|
vncpassword=vncpass99
|
||||||
|
pipassword=pipassword99
|
||||||
|
|
||||||
|
[samba-server]
|
||||||
|
# it is best to have only one samba-server host
|
||||||
|
wes-host1
|
||||||
|
|
||||||
|
[smbclient]
|
||||||
|
# it would probably be best to limit this to 10 clients
|
||||||
|
wes-host2
|
||||||
|
wes-host3
|
||||||
|
|
||||||
|
[public]
|
||||||
|
# not currently used
|
||||||
|
#
|
||||||
|
[snmpd]
|
||||||
|
# installs SNMP daemon
|
||||||
|
#
|
||||||
|
[netflows]
|
||||||
|
# installs flow client
|
||||||
|
#
|
||||||
|
[facebook]
|
||||||
|
# devices can be set up for facebook, salesforce or youtube
|
||||||
|
# these are mutually exclusive and must be checked by you as there
|
||||||
|
# is no automated process for that
|
||||||
|
wes-host1
|
||||||
|
|
||||||
|
[salesforce]
|
||||||
|
# see comment for facebook
|
||||||
|
wes-host2
|
||||||
|
|
||||||
|
[youtube]
|
||||||
|
# see comment for facebook
|
||||||
|
wes-host3
|
||||||
|
|
||||||
|
[ftpclient]
|
||||||
|
|
||||||
|
[sipclient]
|
||||||
|
# generates VoIP traffic, signaling and media
|
||||||
|
wes-host1
|
||||||
|
wes-host3
|
||||||
|
|
||||||
|
[sipserver]
|
||||||
|
# there must only be one sipserver
|
||||||
|
wes-host2
|
||||||
|
|
||||||
|
[ntopng]
|
||||||
|
# hosts running ntop
|
||||||
|
|
||||||
182
hosts
182
hosts
@@ -1,70 +1,112 @@
|
|||||||
# list all of the raspberry PI devices in the network
|
sdwcltm2 ansible_host=192.168.50.2 site_clli=CRHMNJAW
|
||||||
# the host name on each will be set to the first column
|
sdwcltm3 ansible_host=192.168.201.55 site_clli=MTLRNJIK
|
||||||
# it can be 1-20 characters, letters, digits, and hyphens
|
sdwcltm5 ansible_host=192.168.35.1 site_clli=PHLJPAMT
|
||||||
wes-host1 ansible_host=192.168.88.217
|
sdwsrvm ansible_host=192.168.60.2 site_clli=WLGRPABW
|
||||||
wes-host2 ansible_host=192.168.88.240
|
sdwcltm8 ansible_host=192.168.150.2 site_clli=FTCLCORN
|
||||||
wes-host3 ansible_host=192.168.88.218
|
ubuntu-server-2 ansible_host=192.168.198.2 site_clli=CMCYCOJL
|
||||||
|
sdwcltm7 ansible_host=192.168.199.2 site_clli=SRSPNYGN
|
||||||
[ansible-hosts]
|
sdwsrvl ansible_host=192.168.90.2 site_clli=LSBGFL59
|
||||||
# there must only be one ansible-host. this is the device
|
sdwcltm4 ansible_host=192.168.100.2 site_clli=PROVUTZZ
|
||||||
# that will act as the configuration server
|
sdwcltm6 ansible_host=192.168.200.34 site_clli=PHLJPAMT
|
||||||
wes-host1
|
ubuntu-server-1 ansible_host=192.168.201.2 site_clli=MTLRNJIK
|
||||||
|
sdwcltm9 ansible_host=192.168.200.163 site_clli=NRCRGAQN
|
||||||
[pi]
|
#192.168.201.3
|
||||||
# include all Raspberry Pi devces here
|
ipsectest1 ansible_host=192.168.201.90
|
||||||
wes-host1
|
ssh-jump ansible_host=192.168.201.9
|
||||||
wes-host2
|
|
||||||
wes-host3
|
[pi]
|
||||||
|
sdwcltm2
|
||||||
# use variables for passwords
|
sdwcltm3
|
||||||
# currently not implemented
|
sdwcltm5
|
||||||
[pi:vars]
|
sdwsrvm
|
||||||
vncpassword=vncpass99
|
sdwcltm8
|
||||||
pipassword=pipassword99
|
sdwcltm6
|
||||||
|
sdwcltm7
|
||||||
[samba-server]
|
sdwsrvl
|
||||||
# it is best to have only one samba-server host
|
sdwcltm4
|
||||||
wes-host1
|
#192.168.201.3
|
||||||
|
|
||||||
[smbclient]
|
[samba-server]
|
||||||
# it would probably be best to limit this to 10 clients
|
ipsectest1
|
||||||
wes-host2
|
|
||||||
wes-host3
|
[smbclient]
|
||||||
|
sdwcltm2
|
||||||
[public]
|
sdwcltm3
|
||||||
# not currently used
|
ubuntu-server-1
|
||||||
#
|
sdwcltm5
|
||||||
[snmpd]
|
sdwsrvm
|
||||||
# installs SNMP daemon
|
sdwcltm8
|
||||||
#
|
sdwcltm6
|
||||||
[netflows]
|
sdwcltm7
|
||||||
# installs flow client
|
sdwsrvl
|
||||||
#
|
sdwcltm4
|
||||||
[facebook]
|
sdwcltm9
|
||||||
# devices can be set up for facebook, salesforce or youtube
|
|
||||||
# these are mutually exclusive and must be checked by you as there
|
[public]
|
||||||
# is no automated process for that
|
ubuntu-server-1
|
||||||
wes-host1
|
|
||||||
|
[snmpd]
|
||||||
[salesforce]
|
#192.168.201.3
|
||||||
# see comment for facebook
|
sdwcltm2
|
||||||
wes-host2
|
sdwcltm3
|
||||||
|
sdwcltm6
|
||||||
[youtube]
|
sdwcltm8
|
||||||
# see comment for facebook
|
|
||||||
wes-host3
|
[netflows]
|
||||||
|
sdwcltm2
|
||||||
[ftpclient]
|
sdwcltm3
|
||||||
|
sdwcltm5
|
||||||
[sipclient]
|
sdwcltm6
|
||||||
# generates VoIP traffic, signaling and media
|
sdwcltm7
|
||||||
wes-host1
|
sdwcltm4
|
||||||
wes-host3
|
sdwcltm8
|
||||||
|
sdwcltm9
|
||||||
[sipserver]
|
sdwsrvm
|
||||||
# there must only be one sipserver
|
sdwsrvl
|
||||||
wes-host2
|
ubuntu-server-1
|
||||||
|
ubuntu-server-2
|
||||||
[ntopng]
|
|
||||||
# hosts running ntop
|
[facebook]
|
||||||
|
sdwcltm5
|
||||||
|
sdwsrvm
|
||||||
|
sdwcltm4
|
||||||
|
|
||||||
|
[salesforce]
|
||||||
|
sdwcltm3
|
||||||
|
sdwcltm6
|
||||||
|
sdwcltm7
|
||||||
|
sdwsrvl
|
||||||
|
sdwcltm8
|
||||||
|
|
||||||
|
[youtube]
|
||||||
|
sdwcltm2
|
||||||
|
sdwcltm3
|
||||||
|
|
||||||
|
[ftpclient]
|
||||||
|
sdwcltm2
|
||||||
|
sdwcltm3
|
||||||
|
sdwcltm4
|
||||||
|
sdwcltm5
|
||||||
|
sdwcltm6
|
||||||
|
sdwcltm7
|
||||||
|
sdwcltm8
|
||||||
|
sdwsrvm
|
||||||
|
ubuntu-server-1
|
||||||
|
|
||||||
|
[sipclient]
|
||||||
|
sdwcltm2
|
||||||
|
sdwcltm3
|
||||||
|
sdwcltm4
|
||||||
|
sdwcltm5
|
||||||
|
sdwcltm6
|
||||||
|
sdwcltm7
|
||||||
|
sdwcltm8
|
||||||
|
sdwcltm9
|
||||||
|
sdwsrvl
|
||||||
|
sdwsrvm
|
||||||
|
|
||||||
|
[sipserver]
|
||||||
|
ubuntu-server-2
|
||||||
|
|
||||||
|
[ntopng]
|
||||||
|
sdwcltm6
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
- name: Include OS-specific variables
|
||||||
|
include_vars: "os_{{ ansible_lsb.id }}_{{ ansible_lsb.major_release }}.yml"
|
||||||
|
|
||||||
- name: Upgrade all packages to the latest version
|
- name: Upgrade all packages to the latest version
|
||||||
become: true
|
become: true
|
||||||
apt:
|
apt:
|
||||||
@@ -23,13 +26,10 @@
|
|||||||
content: "{{ lookup('template', '{{ role_path }}/templates/hosts.j2') }}"
|
content: "{{ lookup('template', '{{ role_path }}/templates/hosts.j2') }}"
|
||||||
state: present
|
state: present
|
||||||
tags: update_hosts
|
tags: update_hosts
|
||||||
- name: install programs and libraries
|
- name: install required packages
|
||||||
become: true
|
package:
|
||||||
apt:
|
name: "{{ dependency_packages }}"
|
||||||
name: [ 'expect', 'ftp', 'cadaver', 'iperf', 'iperf3', 'libpcap0.8', 'libsctp1', 'libsctp-dev', 'libncurses-dev', 'libssl-dev', 'libpcap-dev', 'vim', 'mc', 'smbclient', 'ncurses-dev', 'build-essential', 'openvpn', 'lightdm', 'lxde', 'realvnc-vnc-server', 'aptitude', 'chromium-browser', 'raspberrypi-ui-mods' ]
|
state: present
|
||||||
update_cache: true
|
|
||||||
state: present
|
|
||||||
tags: install_packages
|
|
||||||
- name: set hostname
|
- name: set hostname
|
||||||
become: true
|
become: true
|
||||||
hostname:
|
hostname:
|
||||||
|
|||||||
25
roles/common/vars/os_Raspbian_10.yml
Normal file
25
roles/common/vars/os_Raspbian_10.yml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
dependency_packages:
|
||||||
|
- name:
|
||||||
|
- expect
|
||||||
|
- ftp
|
||||||
|
- cadaver
|
||||||
|
- iperf
|
||||||
|
- iperf3
|
||||||
|
- libpcap0.8
|
||||||
|
- libsctp1
|
||||||
|
- libsctp-dev
|
||||||
|
- libncurses-dev
|
||||||
|
- libssl-dev
|
||||||
|
- libpcap-dev
|
||||||
|
- vim
|
||||||
|
- mc
|
||||||
|
- smbclient
|
||||||
|
- ncurses-dev
|
||||||
|
- build-essential
|
||||||
|
- openvpn
|
||||||
|
- lightdm
|
||||||
|
- lxde
|
||||||
|
- realvnc-vnc-server
|
||||||
|
- aptitude
|
||||||
|
- chromium-browser
|
||||||
|
- raspberrypi-ui-mods
|
||||||
Reference in New Issue
Block a user