Compare commits
10 Commits
a4853b8691
...
ce98d76dba
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce98d76dba | ||
|
|
cd9b1c5c78 | ||
|
|
026baf968e | ||
|
|
dd53ef9f9e | ||
|
|
a905e2c3a8 | ||
|
|
7b1ec7d0d6 | ||
|
|
2a5aec2681 | ||
|
|
7ce9e80b5c | ||
|
|
1320b8f0f4 | ||
|
|
e9e2c92329 |
35
README.md
35
README.md
@ -3,28 +3,39 @@
|
||||
#### 介绍
|
||||
Afterburn is a one-shot agent for cloud-like platforms which interacts with provider-specific metadata endpoints. It is typically used in conjunction with Ignition.
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
#### Features
|
||||
It comprises several modules which may run at different times during the lifecycle of an instance.
|
||||
|
||||
Depending on the specific platform, the following services may run in the initramfs on first boot:
|
||||
|
||||
-setting local hostname
|
||||
-injecting network command-line arguments
|
||||
|
||||
The following features are conditionally available on some platforms as systemd service units:
|
||||
|
||||
-installing public SSH keys for local system users
|
||||
-retrieving attributes from instance metadata
|
||||
-checking in to the provider in order to report a successful boot or instance provisioning
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
Install afterburn rpm package:
|
||||
|
||||
yum install afterburn
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
afterburn 是云底座操作系统NestOS的必需组件
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
master分支使用最新的上游版本,如果检测到上游有最新版本发布,先形成issue后再提交对应PR更新,流程如下。
|
||||
1. 提交issue
|
||||
2. Fork 本仓库
|
||||
3. 新建 Feat_xxx 分支
|
||||
4. 提交代码
|
||||
5. 新建 Pull Request
|
||||
|
||||
|
||||
#### 特技
|
||||
|
||||
Binary file not shown.
Binary file not shown.
BIN
afterburn-5.3.0.crate
Normal file
BIN
afterburn-5.3.0.crate
Normal file
Binary file not shown.
4
afterburn.yaml
Normal file
4
afterburn.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: coreos/afterburn
|
||||
tag_prefix: "v"
|
||||
separator: "."
|
||||
@ -1,5 +1,4 @@
|
||||
%bcond_without check
|
||||
%define debug_package %{nil}
|
||||
%global __cargo_skip_build 0
|
||||
|
||||
%global dracutmodulesdir %(pkg-config --variable=dracutmodulesdir dracut || echo '/usr/lib/dracut/modules.d')
|
||||
@ -7,12 +6,11 @@
|
||||
%global crate afterburn
|
||||
|
||||
Name: rust-%{crate}
|
||||
Version: 5.1.0
|
||||
Release: 1
|
||||
Version: 5.3.0
|
||||
Release: 2
|
||||
Summary: Simple cloud provider agent
|
||||
|
||||
# Upstream license specification: Apache-2.0
|
||||
License: ASL 2.0
|
||||
License: Apache-2.0
|
||||
URL: https://crates.io/crates/afterburn
|
||||
Source0: %{crate}-%{version}.crate
|
||||
Source1: %{crate}-%{version}-vendor.tar.gz
|
||||
@ -27,7 +25,7 @@ Simple cloud provider agent.}
|
||||
|
||||
%package -n %{crate}
|
||||
Summary: %{summary}
|
||||
License: ASL 2.0 and MIT and BSD and zlib
|
||||
License: ASL 2.0 and MIT and BSD and 0BSD
|
||||
%{?systemd_requires}
|
||||
|
||||
%description -n %{crate} %{_description}
|
||||
@ -76,15 +74,9 @@ to run in the initramfs on boot.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
# afterburn-sshkeys@.service is by default enabled for the 'core' user in NestOS
|
||||
|
||||
tar xvf %{SOURCE1}
|
||||
|
||||
sed -e 's,@DEFAULT_INSTANCE@,core,' < \
|
||||
systemd/afterburn-sshkeys@.service.in > \
|
||||
systemd/afterburn-sshkeys@.service
|
||||
%cargo_prep
|
||||
|
||||
mkdir -p .cargo
|
||||
cat >.cargo/config << EOF
|
||||
|
||||
@ -95,6 +87,12 @@ replace-with = "vendored-sources"
|
||||
directory = "vendor"
|
||||
EOF
|
||||
|
||||
# afterburn-sshkeys@.service is by default enabled for the 'core' user in NestOS
|
||||
sed -e 's,@DEFAULT_INSTANCE@,core,' < \
|
||||
systemd/afterburn-sshkeys@.service.in > \
|
||||
systemd/afterburn-sshkeys@.service
|
||||
|
||||
|
||||
%build
|
||||
%cargo_build
|
||||
|
||||
@ -105,8 +103,17 @@ install -Dpm0644 -t %{buildroot}%{_unitdir} \
|
||||
mkdir -p %{buildroot}%{dracutmodulesdir}
|
||||
cp -a dracut/* %{buildroot}%{dracutmodulesdir}
|
||||
|
||||
cp -r $RPM_BUILD_DIR/afterburn-5.1.0/.cargo/bin %{buildroot}/usr
|
||||
cp -r $RPM_BUILD_DIR/afterburn-5.3.0/.cargo/bin %{buildroot}/usr
|
||||
|
||||
%changelog
|
||||
* Fri Dec 9 2022 duyiwei <duyiwei@kylinos.cn> - 5.3.0-2
|
||||
- Enable debuginfo for fix strip
|
||||
|
||||
* Fri Nov 4 2022 duyiwei <duyiwei@kylinos.cn> - 5.3.0-1
|
||||
- upgrade version to 5.3.0
|
||||
|
||||
* Thu Jun 2 2022 duyiwei <duyiwei@kylinos.cn> - 5.2.0-1
|
||||
- upgrade version to 5.2.0
|
||||
|
||||
* Fri Dec 24 2021 duyiwei <duyiwei@kylinos.cn> - 5.1.0-1
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user