-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
308 changed files
with
3,936 additions
and
9,171 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Build pi-gen image | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
pi-gen-aryaos: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: dotenv | ||
uses: falti/[email protected] | ||
with: | ||
path: ./pi-gen/config | ||
- uses: usimd/pi-gen-action@v1 | ||
with: | ||
# Disable the renaming of the first user during the first boot. This make it so | ||
# 'username' stays activated. 'username' must be set for this to work. Please be | ||
# aware of the implied security risk of defining a default username and password | ||
# for your devices. | ||
disable-first-boot-user-rename: 1 | ||
|
||
# Enable SSH access to Pi. | ||
enable-ssh: 1 | ||
|
||
image-name: test | ||
stage-list: stage0 stage1 stage2 ./test-stage |
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 |
---|---|---|
|
@@ -14,40 +14,6 @@ | |
# | ||
|
||
|
||
build: pi-gen | ||
sudo ./build.sh | ||
|
||
pi-gen: | ||
git clone --branch arm64 https://github.com/RPI-Distro/pi-gen.git | ||
touch ./pi-gen/stage2/SKIP_IMAGES ./pi-gen/stage2/SKIP_NOOBS | ||
|
||
copy: | ||
rsync -va ../aryaos kelp.local:~/src/SNS/ | ||
# rsync -va ../aryaos titan2.local:~/src/SNS/ | ||
|
||
sync: copy | ||
|
||
skip: | ||
touch pi-gen/stage0/SKIP | ||
touch pi-gen/stage1/SKIP | ||
touch pi-gen/stage2/SKIP | ||
|
||
unskip: | ||
rm -f */SKIP | ||
rm -f pi-gen/*/SKIP | ||
|
||
copyback: | ||
scp pi-gen/deploy/image*.zip [email protected]:~ | ||
|
||
skip3: | ||
touch stage3*/SKIP | ||
|
||
skip4: | ||
touch stage4*/SKIP | ||
|
||
skip5: | ||
touch stage5*/SKIP | ||
|
||
mkdocs: | ||
pip install -r docs/requirements.txt | ||
mkdocs serve |
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,3 @@ | ||
{ | ||
"ansible.python.interpreterPath": "/Users/gba/.pyenv/versions/3.10.4/envs/ansible/bin/python" | ||
} |
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,2 @@ | ||
aryaaio: | ||
ansible-playbook -i inventory.yml -e '@secret' site.yml -l aryaaio |
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# code: language=ansible | ||
# adsbcot.yml - Install ADSBCOT. | ||
# | ||
# Copyright Sensors & Signals LLC https://www.snstac.com | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
- name: Download ADSBCOT Debian package | ||
ansible.builtin.get_url: | ||
url: "{{ adsbcot_deb_url }}" | ||
dest: /usr/src/{{ adsbcot_deb }} | ||
mode: "0644" | ||
|
||
- name: Install ADSBCOT Debian package | ||
ansible.builtin.apt: | ||
deb: /usr/src/{{ adsbcot_deb }} | ||
|
||
- name: Update ADSBCOT FEED_URL | ||
ansible.builtin.replace: | ||
path: /etc/default/adsbcot | ||
regexp: '^.*FEED_URL=.*$' | ||
replace: 'FEED_URL=file:///run/readsb/aircraft.json' | ||
notify: Restart ADSBCOT |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# code: language=ansible | ||
# readsb.yml - Install READSB. | ||
# | ||
# Copyright Sensors & Signals LLC https://www.snstac.com | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
- name: Download READSB Debian package | ||
ansible.builtin.get_url: | ||
url: "{{ readsb_deb_url }}" | ||
dest: /usr/src/{{ readsb_deb }} | ||
mode: "0644" | ||
|
||
- name: Install READSB Debian package | ||
ansible.builtin.apt: | ||
deb: /usr/src/{{ readsb_deb }} | ||
|
||
- name: Set SDR S/N in READSB config | ||
ansible.builtin.replace: | ||
path: /etc/default/readsb | ||
regexp: '^RECEIVER_OPTIONS.*$' | ||
replace: 'RECEIVER_OPTIONS="--device {{ adsb_sdr_sn }} --device-type rtlsdr --gain -10 --ppm 0"' | ||
notify: Restart READSB |
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,65 @@ | ||
# code: language=ansible | ||
# ais-catcher.yml - Build & Install AIS-catcher. | ||
# | ||
# Copyright Sensors & Signals LLC https://www.snstac.com | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
- name: Extract AIS-catcher source | ||
ansible.builtin.unarchive: | ||
src: "{{ shared_files }}/ais/AIS-catcher-main.zip" | ||
dest: /usr/src | ||
creates: /usr/src/AIS-catcher-main | ||
|
||
- name: Create AIS-catcher build directory | ||
ansible.builtin.file: | ||
path: /usr/src/AIS-catcher-main/build | ||
state: directory | ||
mode: "0755" | ||
|
||
- name: Build AIS-catcher | ||
ansible.builtin.shell: | ||
cmd: | | ||
cmake .. | ||
make | ||
make install | ||
creates: /usr/local/bin/AIS-catcher | ||
chdir: /usr/src/AIS-catcher-main/build | ||
|
||
- name: Copy AIS-catcher systemd config | ||
ansible.builtin.copy: | ||
src: "{{ shared_files }}/ais/AIS-catcher.service" | ||
dest: /lib/systemd/system/ais-catcher.service | ||
mode: "0644" | ||
|
||
- name: Copy AIS-catcher default config | ||
ansible.builtin.copy: | ||
src: ../../AIS-catcher.default.conf | ||
dest: /etc/default/ais-catcher | ||
mode: "0644" | ||
|
||
- name: Add ais-catcher to dialout (USB access) | ||
ansible.builtin.user: | ||
name: aiscatcher | ||
groups: dialout | ||
comment: ais-catcher system user | ||
append: true | ||
system: true | ||
create_home: false | ||
|
||
- name: Enable AIS-catcher service | ||
ansible.builtin.systemd_service: | ||
name: ais-catcher.service | ||
enabled: true | ||
daemon_reload: true |
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
Oops, something went wrong.