Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[next] recipes-ni: add nilrt-snac recipe #729

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

amstewart
Copy link
Contributor

@amstewart amstewart commented Sep 6, 2024

Summary of Changes

  1. Add a nilrt-snac recipe that ships the nilrt-snac project.
  2. Add the nilrt-snac package to the SNAC packagegroup.

Justification

AB#2744170

This patchset allows SNAC users to install the nilrt-snac configuration tool from the canonical package feeds.

Testing

root@NI-cRIO-903x-VM-15b7aebf:~# opkg info nilrt-snac
Package: nilrt-snac
Version: 0.1.1+git0+5488d5a779-r999
Depends: bash, opkg, python3-core
Recommends: nilrt-snac-lic
Status: install ok installed
Section: base
Architecture: core2-64
Maintainer: NI Linux Real-Time Maintainers <[email protected]>
MD5Sum: 7e633b3964d18b804d0639077d10d2fd
Size: 10382
Filename: nilrt-snac_0.1.1+git0+5488d5a779-r999_core2-64.ipk
Source: nilrt-snac_git.bb
Description: NILRT SNAC Configuration Tool
Installed-Size: 34257
Installed-Time: 1725642021
OE: nilrt-snac
HomePage: https://github.com/ni/nilrt-snac
License: MIT
  • The nilrt-snac recipe builds locally.
[0] usr0:nilrt-snac$ tree 0.1.1+git/image/
0.1.1+git/image/
├── etc
│   ├── init.d
│   │   └── ni-wireguard-labview
│   └── wireguard
│       └── wglv0.conf
└── usr
    ├── lib
    │   └── nilrt-snac
    │       └── nilrt_snac
    │           ├── _common.py
    │           ├── _configs
    │           │   ├── _base_config.py
    │           │   ├── _config_file.py
    │           │   ├── _console_config.py
    │           │   ├── _cryptsetup_config.py
    │           │   ├── _faillock_config.py
    │           │   ├── __init__.py
    │           │   ├── _niauth_config.py
    │           │   ├── _ntp_config.py
    │           │   ├── _opkg_config.py
    │           │   ├── _pwquality_config.py
    │           │   ├── _usbguard_config.py
    │           │   ├── _wifi_config.py
    │           │   ├── _wireguard_config.py
    │           │   └── _x11_config.py
    │           ├── __init__.py
    │           ├── __main__.py
    │           ├── OpkgHelper.py
    │           └── _pre_reqs.py
    ├── sbin
    │   └── nilrt-snac
    └── share
        ├── doc
        │   └── nilrt-snac
        │       ├── LICENSE
        │       └── README.md
        └── nilrt-snac
            └── nilrt-snac-conflicts.ipk

14 directories, 25 files
  • Installed the nilrt-snac package to a 24.8 dist-next VM.
    • Confirmed that nilrt-snac is in PATH.
    • Confirmed that nilrt-snac configure works and places the target into SNAC mode.
    • Confirmed that nilrt-verify works and verifies the configuration after installation.
root@NI-cRIO-903x-VM-15b7aebf:~# nilrt-snac verify
Checking EUID
Checking iptables
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
Validating SNAC mode.
Verifying NTP configuration...
Verifying opkg configuration...
Verifying wireguard configuration...
Verifying cryptsetup configuration...
Verifying NIAuth...
Verifying WiFi configuration...
Verifying PAM faillock...
Verifying X11 stack removal...
Verifying console access configuration...
Verifying Password quality...
  • Built the SNAC package group locally.
  • I have built the core package feed with this PR in place. (bitbake packagefeed-ni-core)

Procedure

This is a nilrt/master/next-only patchset.

nilrt-snac is an NI configuration tool for NILRT that allows a system
administrator to semi-automate the process of configuring the system
into the Secured, Network-Attached Controller (SNAC) configuration.

Add a recipe for it.

This recipe is NILRT-specific.

Signed-off-by: Alex Stewart <[email protected]>
Add the nilrt-snac configuration tool to the SNAC packagegroup to ensure
that it is always built into the core packagefeed. It should not be
installed to the base system image by default.

Signed-off-by: Alex Stewart <[email protected]>
@amstewart amstewart requested a review from chaitu236 September 6, 2024 17:44
@chaitu236 chaitu236 merged commit dcc67ef into ni:nilrt/master/next Sep 6, 2024
@amstewart amstewart deleted the dev/nilrt-snac branch September 6, 2024 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants