Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
ce98d76dba
!14 Specification NestOS Project Component Description File
From: @duyiwei7w 
Reviewed-by: @fu-shanqing 
Signed-off-by: @fu-shanqing
2023-06-21 03:27:35 +00:00
duyiwei
cd9b1c5c78
Specification NestOS Project Component Description File
Signed-off-by: duyiwei <duyiwei@kylinos.cn>
2023-06-21 02:42:14 +00:00
openeuler-ci-bot
026baf968e
!10 [sync] Enable debuginfo for fix strip
From: @duyiwei7w 
Reviewed-by: @fu-shanqing 
Signed-off-by: @fu-shanqing
2022-12-09 08:26:27 +00:00
duyiwei
dd53ef9f9e
Enable debuginfo for fix strip
Signed-off-by: duyiwei <duyiwei@kylinos.cn>
2022-12-09 07:05:38 +00:00
openeuler-ci-bot
a905e2c3a8
!8 【NestOS】22.03-LTS-SP1选型:升级至5.3.0版本
From: @duyiwei7w 
Reviewed-by: @fu-shanqing 
Signed-off-by: @fu-shanqing
2022-11-14 05:48:22 +00:00
openeuler-ci-bot
7b1ec7d0d6
!6 [sync] PR-4: 升级afterburn至5.2.0
From: @openeuler-sync-bot 
Reviewed-by: @duyiwei7w 
Signed-off-by: @duyiwei7w
2022-11-04 01:51:59 +00:00
duyiwei
2a5aec2681 upgrade version to 5.3.0 2022-11-02 01:24:20 +08:00
duyiwei
7ce9e80b5c upgrade version to 5.2.0
(cherry picked from commit 1b56ab58c189541d9d6e1fe0787080212550af41)
2022-06-08 09:09:45 +08:00
openeuler-ci-bot
1320b8f0f4
!2 Submit yaml file into this repository
From: @duyiwei7w 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2022-04-24 06:58:24 +00:00
duyiwei
e9e2c92329
add afterburn.yaml. 2022-04-21 03:18:29 +00:00
6 changed files with 47 additions and 25 deletions

View File

@ -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. 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 Install afterburn rpm package:
2. xxxx
3. xxxx yum install afterburn
#### 使用说明 #### 使用说明
1. xxxx afterburn 是云底座操作系统NestOS的必需组件
2. xxxx
3. xxxx
#### 参与贡献 #### 参与贡献
1. Fork 本仓库 master分支使用最新的上游版本如果检测到上游有最新版本发布先形成issue后再提交对应PR更新流程如下。
2. 新建 Feat_xxx 分支 1. 提交issue
3. 提交代码 2. Fork 本仓库
4. 新建 Pull Request 3. 新建 Feat_xxx 分支
4. 提交代码
5. 新建 Pull Request
#### 特技 #### 特技

Binary file not shown.

BIN
afterburn-5.3.0.crate Normal file

Binary file not shown.

4
afterburn.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: coreos/afterburn
tag_prefix: "v"
separator: "."

View File

@ -1,5 +1,4 @@
%bcond_without check %bcond_without check
%define debug_package %{nil}
%global __cargo_skip_build 0 %global __cargo_skip_build 0
%global dracutmodulesdir %(pkg-config --variable=dracutmodulesdir dracut || echo '/usr/lib/dracut/modules.d') %global dracutmodulesdir %(pkg-config --variable=dracutmodulesdir dracut || echo '/usr/lib/dracut/modules.d')
@ -7,12 +6,11 @@
%global crate afterburn %global crate afterburn
Name: rust-%{crate} Name: rust-%{crate}
Version: 5.1.0 Version: 5.3.0
Release: 1 Release: 2
Summary: Simple cloud provider agent Summary: Simple cloud provider agent
# Upstream license specification: Apache-2.0 License: Apache-2.0
License: ASL 2.0
URL: https://crates.io/crates/afterburn URL: https://crates.io/crates/afterburn
Source0: %{crate}-%{version}.crate Source0: %{crate}-%{version}.crate
Source1: %{crate}-%{version}-vendor.tar.gz Source1: %{crate}-%{version}-vendor.tar.gz
@ -27,7 +25,7 @@ Simple cloud provider agent.}
%package -n %{crate} %package -n %{crate}
Summary: %{summary} Summary: %{summary}
License: ASL 2.0 and MIT and BSD and zlib License: ASL 2.0 and MIT and BSD and 0BSD
%{?systemd_requires} %{?systemd_requires}
%description -n %{crate} %{_description} %description -n %{crate} %{_description}
@ -76,15 +74,9 @@ to run in the initramfs on boot.
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
# afterburn-sshkeys@.service is by default enabled for the 'core' user in NestOS
tar xvf %{SOURCE1} tar xvf %{SOURCE1}
sed -e 's,@DEFAULT_INSTANCE@,core,' < \
systemd/afterburn-sshkeys@.service.in > \
systemd/afterburn-sshkeys@.service
%cargo_prep
mkdir -p .cargo mkdir -p .cargo
cat >.cargo/config << EOF cat >.cargo/config << EOF
@ -95,6 +87,12 @@ replace-with = "vendored-sources"
directory = "vendor" directory = "vendor"
EOF 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 %build
%cargo_build %cargo_build
@ -105,8 +103,17 @@ install -Dpm0644 -t %{buildroot}%{_unitdir} \
mkdir -p %{buildroot}%{dracutmodulesdir} mkdir -p %{buildroot}%{dracutmodulesdir}
cp -a dracut/* %{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 %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 * Fri Dec 24 2021 duyiwei <duyiwei@kylinos.cn> - 5.1.0-1
- Package init - Package init