Skip to content

Commit

Permalink
fix ignition
Browse files Browse the repository at this point in the history
Signed-off-by: YZ775 <yuzuki-mimura@cybozu.co.jp>
  • Loading branch information
YZ775 committed Oct 11, 2023
1 parent ec5203b commit 3590be5
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 1 deletion.
61 changes: 61 additions & 0 deletions mtest/host-ign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,67 @@ storage:
etcd:
endpoints: [http://__HOST1__:2379]
mode: 0644
- path: "/etc/sabakan/sabakan-tls.crt"
filesystem: root
mode: 0644
contents:
inline: |
-----BEGIN CERTIFICATE-----
MIID2jCCAsKgAwIBAgIURDoNhBD/wjaJVE83uuvaQnaPWYowDQYJKoZIhvcNAQEL
BQAwUzEOMAwGA1UEBhMFSmFwYW4xDjAMBgNVBAgTBVRva3lvMRUwEwYDVQQKEwxD
eWJvenUsIEluYy4xDTALBgNVBAsTBE5lY28xCzAJBgNVBAMTAmNhMB4XDTE4MDgw
MjA0NTAwMFoXDTI4MDczMDA0NTAwMFowXDEOMAwGA1UEBhMFSmFwYW4xDjAMBgNV
BAgTBVRva3lvMRUwEwYDVQQKEwxDeWJvenUsIEluYy4xDTALBgNVBAsTBE5lY28x
FDASBgNVBAMTC2V4YW1wbGUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
CgKCAQEAsPpcApp6mY7zN0ZRdRoHqpOagj94jlpWGfFJtjfhUFjEHUBV/YWkylcj
vqTCuf9Y9hRc+e3sIqcaEcDx6pW249k3SBio5O1Q+nNiHkPswLj1uXwMOuFgz28T
IGUFVgykVw5sWtCFZ0CNJhRdoT5sqxVRewJ67slGJ9+gnvOT8tPYhcKdvq87tCzb
Onxa1iE7DEmVoAAv32Ad+n5J1QcEv1Gx/CdCQZrBdxY/5xCINQ4frjTkhEgCrP3F
ZdIr57ykJKsxSUyEQetZVRHIB+51FVQrbkLKZi/coaEhduYpGQHEnrKmLrTT+P2n
Fyi6VW/cNlSZHhRiq4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XVewRA64uDVl/tn8bHdz5Zl+spAnOhaFgvS8RdzkJ5A+4+dQf7VJ
j3g69L7A6Eey8J2PZdG2YJ7ou9MXNv/1fsfRDMNfXUV8jcOr7z/1OMysqOCS1B/c
VtLtJG+DMKg1cNzH81xqNY8rBYfbfkrY3TcEa5DZkc8aTrzR4Tjc
-----END RSA PRIVATE KEY-----
directories:
- filesystem: root
Expand Down
21 changes: 21 additions & 0 deletions mtest/ignitions/files/etc/sabakan/neco.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
-----BEGIN CERTIFICATE-----
MIIDdjCCAl6gAwIBAgIUYE7jJIo5oRrmye5+eRZ11pMkwuowDQYJKoZIhvcNAQEL
BQAwUzEOMAwGA1UEBhMFSmFwYW4xDjAMBgNVBAgTBVRva3lvMRUwEwYDVQQKEwxD
eWJvenUsIEluYy4xDTALBgNVBAsTBE5lY28xCzAJBgNVBAMTAmNhMB4XDTE4MDgw
MjA0NTAwMFoXDTI4MDczMDA0NTAwMFowUzEOMAwGA1UEBhMFSmFwYW4xDjAMBgNV
BAgTBVRva3lvMRUwEwYDVQQKEwxDeWJvenUsIEluYy4xDTALBgNVBAsTBE5lY28x
CzAJBgNVBAMTAmNhMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwqYd
vRd5PJ0CcZRG9qECaaI7IlAi6JxBMAI/IajdDG+d5UAWBMrnT6h6g9drmn3rP1fd
+ZRF9SSrYItuEU4mSTxFP3XNjwpdT/nDIYoLjUGQsG0/7EsRhKnkEZXP3xVMVaIt
umNu4TnOxX3T5exetTlNTKYHqROZUEiLh62HvAoXZJEnykm4QVAvN1A6I4yO2y2+
bFKaWwMMcRPUmIvHt/v0fOMXJTOGHwOtfrF8MTOJ2QgiIo/vDlp/oPcUABDfyP2F
7QnyUp1GmOQX3K3+s4qNIbeyZNx2gf5xsE1nhzREmarbhglwvkEa9rXhmv1q5tuX
u4lVOKyWcG4QHAls/wIDAQABo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/
BAUwAwEB/zAdBgNVHQ4EFgQU12dcKEHAMz2JJZXbE2QnLkThBUgwDQYJKoZIhvcN
AQELBQADggEBAAZVooYrKCiPldHnSzvhTk2Y4FRUjcBH+j4ONPtdXzDlyH8Oo31R
zZeiEk65SKKme81pGPLfOQfo6g1sbqEpy8oOBFro/KgT8omOTVofeY1wisme92mm
eblYhRYuVCgwKBvOgJhSJXPASb0HzTlkqknjktDkDvNeDEt9Kc5bAPyqGQurMfcr
0wqixNYxcl8uf0LYOGPj1yt0qEqZBijDEnPBvMF/rJMF/HXjOOYFR0mmkLZQEjkF
9e5y/UW1ruysFKCdy5eJkrgcaSgKWmxgOBf/M0g5qZt/2NwZxIE00rgp7GGXzfor
IhxcFaKJBbdCDITsC6VRdP2NrYb2nE3eyOk=
-----END CERTIFICATE-----
2 changes: 1 addition & 1 deletion mtest/ignitions/systemd/sabakan-cryptsetup.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Wants=network-online.target

[Service]
Type=oneshot
Environment="SABAKAN_URL={{ MyURL }}"
Environment="SABAKAN_URL={{ MyURLHTTPS }}"
ExecStart=/bin/mkdir -p /opt/sbin
ExecStart=/usr/bin/curl -f -s -o /opt/sbin/sabakan-cryptsetup {{ MyURL }}/api/v1/cryptsetup
ExecStart=/bin/chmod a+x /opt/sbin/sabakan-cryptsetup
Expand Down
1 change: 1 addition & 0 deletions mtest/ignitions/worker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
passwd: passwd.yml
files:
- /etc/hostname
- /etc/sabakan/neco.crt
networkd:
- 10-eth0.network
systemd:
Expand Down

0 comments on commit 3590be5

Please sign in to comment.