forked from geissdoerfer/shepherd
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from orgua/dev
Dev
- Loading branch information
Showing
81 changed files
with
1,469 additions
and
1,002 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
# install shepherd-software, all dependencies & roles set in inventory-file | ||
|
||
- name: Install Shepherd-Software - Role-based | ||
hosts: all | ||
become: true | ||
|
||
pre_tasks: | ||
|
||
- name: Get time and date from ansible controller | ||
ansible.builtin.command: 'date -u +"%Y-%m-%dT%H:%M:%SZ"' | ||
delegate_to: localhost | ||
changed_when: false | ||
register: local_time | ||
become: false | ||
- name: Set correct time | ||
ansible.builtin.command: "date -s {{ local_time.stdout }}" | ||
changed_when: true | ||
|
||
- name: Role - PTP-Client only (not recommended! all should be server as well) | ||
hosts: ptp_clients | ||
become: true | ||
strategy: free # noqa: run-once[play] | ||
roles: | ||
- ptp_client | ||
|
||
- name: Role - NTP-Client | ||
hosts: ntp_clients | ||
become: true | ||
strategy: free # noqa: run-once[play] | ||
roles: | ||
- ntp_client | ||
|
||
- name: Role - GPS-Client | ||
hosts: gps_clients | ||
become: true | ||
strategy: free # noqa: run-once[play] | ||
roles: | ||
- gps_client | ||
# TODO: how to avoid allowing gps & ptp & ntp client? trouble ahead | ||
# -> could switch to components and argument_specs | ||
# https://steampunk.si/blog/ansible-role-argument-specification/ | ||
|
||
- name: Role - PTP-Server | ||
hosts: ptp_servers | ||
become: true | ||
strategy: free # noqa: run-once[play] | ||
roles: | ||
- ptp_server | ||
|
||
- name: Role - Secured Testbed | ||
hosts: secured | ||
become: true | ||
strategy: free # noqa: run-once[play] | ||
roles: | ||
- secure_testbed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,8 @@ | |
# select good AND exclude weak algorithms: TODO: just forbid | ||
- {regex: '^.*KexAlgorithms.*$', line: 'KexAlgorithms -ecdh-sha2*,diffie-hellman-group-exchange*,diffie-hellman-group14-sha1'} | ||
- {regex: '^.*HostKeyAlgorithms.*$', line: 'HostKeyAlgorithms -ecda-sha2*,ecdsa-sha2*'} | ||
- {regex: '^.*Ciphers.*$', line: 'Ciphers -arcfour*,[email protected],aes128-ctr,aes192-ctr,aes256-ctr'} | ||
- {regex: '^.*Ciphers.*$', line: 'Ciphers -arcfour*,[email protected],aes128-ctr,aes192-ctr'} | ||
# cipher aes256-ctr is used by paramico (herd) - last remaining option - so keep it for now even it is considered insecure | ||
- {regex: '^.*MACs.*$', line: 'MACs -umac-64*,hmac-sha1*,hmac-sha2-256,hmac-sha2-512,umac-128@open*'} | ||
# TODO: x11Forwarding is twice in file, one yes and one no | ||
|
||
|
@@ -65,6 +66,7 @@ | |
state: stopped | ||
enabled: false | ||
changed_when: true | ||
failed_when: false # RPi does not have this timer | ||
|
||
- name: CFG - Disable Terminal over Serial -> Services | ||
ansible.builtin.systemd: | ||
|
@@ -77,6 +79,7 @@ | |
- [email protected] | ||
- [email protected] | ||
changed_when: true | ||
failed_when: false # RPi does not have some services | ||
# change active ones with: sudo systemctl list-units | ||
|
||
- name: CFG - Disable Terminal over Serial -> Grub | ||
|
@@ -91,6 +94,7 @@ | |
dest: /boot/uEnv.txt | ||
regexp: '^console=' | ||
replace: '#console=' | ||
failed_when: false # RPi does not have this file | ||
|
||
# TODO: part 3 needed, terminal still active | ||
# TODO: uEnv has UART enabled | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
:::{include} ../../software/time_sync_analyzer/Readme.md | ||
:::{include} ../../software/debug_analyze_time_sync/Readme.md | ||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.