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

Add genisys-firstboot.service for launching first boot script #43

Merged
merged 6 commits into from
Jan 31, 2024

Conversation

xeluior
Copy link
Owner

@xeluior xeluior commented Jan 19, 2024

Adds a SystemD service unit file to the templates dir to be packaged with the application. Service file requires network to be enabled, allowing the majority of admin tasks to be complete. Also requires an executable file to be placed at /first-boot/entrypoint.

@xeluior xeluior linked an issue Jan 19, 2024 that may be closed by this pull request
@xeluior xeluior marked this pull request as draft January 19, 2024 19:10
@xeluior xeluior marked this pull request as ready for review January 25, 2024 15:19
@xeluior xeluior merged commit 36741ce into main Jan 31, 2024
9 checks passed
@xeluior xeluior deleted the firstboot.service branch January 31, 2024 21:35
xeluior added a commit that referenced this pull request Feb 15, 2024
* Create firstboot.py

* Wrote generate function with POST as transmission method

* Added shebang to script

* Added port config to YAML file

* Add genisys-firstboot.service for launching first boot script (#43)

* added service file

* added simple module to "install" the service file to the FTP dir

* added new module to main

* fixed lineter error

* fixed install path

* Ansible (#44)

* added playbooks for ansible

* Added j2 template for install docker and then selenium

* Rename template.j2 to docker_selinum.yml

* updated README with new prereq and some competitor listing (#49)

* updated README with new prereq and some competitor listing

* added puppet

* Added JSON object to POSt request, added install_location

* Removed redundant/unused var

* Created sub directory

* Added port config to YAML file

* Created sub directory

* Fixed the BS caused by rebase

Inshallah I didn't change anything outside of these modules

* Added module imports to main

* Reformatted from list of strings to single string

* Remove newline

* Change Requests 1

* Removed "Install()" to use default behavior
* Updated "Install_Path()" to return correct file path.

* Fixed curl_command formatting

* Created tests file, updated old tests

* Test 1

* Fixed casting bug

* Fixed test 1

* Fixed test bug 2

* Test fix 3

* Added second test

* Removed comment

* Added robert's parsing fix

* Fixed test cases

* Fixed yaml file setup

* Changed working directory in service file

* Updated curl command and test cases

* Final script fix (hopefully)

---------

Co-authored-by: Robert <developer@three-point-five.dev>
Co-authored-by: Benny Bergle <58752312+BBergle@users.noreply.github.com>
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.

First-boot service file
5 participants