-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bootstrap-containers: migrate to using configuration file
This migrates the bootstrap-containers tool to fetch its settings via a generated toml file. log: * add migrations and package changes * migrate bootstrap-containers to load from config file * add mount with secret_t
- Loading branch information
Showing
12 changed files
with
171 additions
and
108 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,17 @@ | ||
[required-extensions] | ||
bootstrap-containers = "v1" | ||
std = { version = "v1", helpers = ["if_not_null"] } | ||
+++ | ||
{{#if_not_null settings.bootstrap-containers}} | ||
{{#each settings.bootstrap-containers}} | ||
["{{@key}}"] | ||
source = "{{{this.source}}}" | ||
mode = "{{{this.mode}}}" | ||
{{#if_not_null this.user-data}} | ||
user-data = "{{{this.user-data}}}" | ||
{{/if_not_null}} | ||
{{#if_not_null this.essential}} | ||
essential = {{this.essential}} | ||
{{/if_not_null}} | ||
{{/each}} | ||
{{/if_not_null}} |
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 |
---|---|---|
|
@@ -35,6 +35,7 @@ Source14: certdog-toml | |
Source15: prairiedog-toml | ||
Source16: thar-be-updates-toml | ||
Source17: corndog-toml | ||
Source18: bootstrap-containers-toml | ||
Source19: host-containers-toml | ||
|
||
# 1xx sources: systemd units | ||
|
@@ -477,7 +478,7 @@ install -d %{buildroot}%{_cross_datadir}/updog | |
install -p -m 0644 %{_cross_repo_root_json} %{buildroot}%{_cross_datadir}/updog | ||
|
||
install -d %{buildroot}%{_cross_templatedir} | ||
install -p -m 0644 %{S:5} %{S:6} %{S:7} %{S:8} %{S:14} %{S:15} %{S:16} %{S:17} %{S:19} \ | ||
install -p -m 0644 %{S:5} %{S:6} %{S:7} %{S:8} %{S:14} %{S:15} %{S:16} %{S:17} %{S:18} %{S:19} \ | ||
%{buildroot}%{_cross_templatedir} | ||
|
||
install -d %{buildroot}%{_cross_unitdir} | ||
|
@@ -700,6 +701,7 @@ install -p -m 0644 %{S:400} %{S:401} %{S:402} %{buildroot}%{_cross_licensedir} | |
%{_cross_bindir}/bootstrap-containers | ||
%{_cross_unitdir}/[email protected] | ||
%{_cross_tmpfilesdir}/bootstrap-containers.conf | ||
%{_cross_templatedir}/bootstrap-containers-toml | ||
|
||
%files -n %{_cross_os}bloodhound | ||
%{_cross_bindir}/bloodhound | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.