Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
metadata-collect-agent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
metadata-collect-agent
Commits
5bd12759
Commit
5bd12759
authored
May 26, 2021
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
a3e43caf
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
3 deletions
+5
-3
dracut.module/90metadata-collect/flb.conf
dracut.module/90metadata-collect/flb.conf
+1
-1
dracut.module/90metadata-collect/module-setup.sh
dracut.module/90metadata-collect/module-setup.sh
+1
-0
dracut.module/Makefile
dracut.module/Makefile
+1
-1
dracut.module/collect-sh-template.mk
dracut.module/collect-sh-template.mk
+1
-1
src/go_plugin/install.sh
src/go_plugin/install.sh
+1
-0
No files found.
dracut.module/90metadata-collect/flb.conf
View file @
5bd12759
...
...
@@ -6,7 +6,7 @@
Name
cpu
[
output
]
Name
http
Name
gstdout
Match
*
Host
softinst143538
.
host
.
vifib
.
net
URI
/
erp5
/
fluentbit_upload_test
dracut.module/90metadata-collect/module-setup.sh
View file @
5bd12759
...
...
@@ -14,5 +14,6 @@ install() {
inst
"
$moddir
"
/metadata-collect-agent
"/sbin/metadata-collect-agent"
inst
"
$moddir
"
/fluent-bit
"/sbin/fluent-bit"
inst
"
$moddir
"
/flb.conf
"/etc/flb.conf"
inst
"
$moddir
"
/out_gstdout.so
"/etc/out_gstdout.so"
inst_hook pre-pivot 10
"
$moddir
"
/collect.sh
}
dracut.module/Makefile
View file @
5bd12759
...
...
@@ -18,7 +18,7 @@ include collect-sh-template.mk
echo
"$${collect_sh}"
>>
90metadata-collect/collect.sh
90metadata-collect/metadata-collect-agent
:
cd
../
&&
./rust-build-static.bash
&&
./fluent-bit-install.sh
cd
../
&&
./rust-build-static.bash
&&
./fluent-bit-install.sh
&&
./src/go_plugin/install.sh
.PHONY
:
clean
clean
:
...
...
dracut.module/collect-sh-template.mk
View file @
5bd12759
...
...
@@ -13,7 +13,7 @@ ERP5_PASS="$(ERP5_PASS)"
REFERENCE
=
"COMP-MAC-
$$
(echo "
$$
DEFAULT_IF_MAC
" | sed s/:/-/g).Metadata.Snapshot"
/sbin/metadata-collect-agent
"$$NEWROOT"
"$$ERP5_USER"
"$$ERP5_PASS"
"$$REFERENCE"
"$$ERP5_BASE_URL"
/sbin/fluent-bit
-c
/etc/flb.conf
/sbin/fluent-bit
-
e
/etc/out_gstdout.so
-
c
/etc/flb.conf
endef
export
collect_sh
src/go_plugin/install.sh
View file @
5bd12759
rm
-rf
*
.so
*
.h
*
~ fluent-bit-go
git clone https://github.com/fluent/fluent-bit-go.git
go build
-buildmode
=
c-shared
-o
out_gstdout.so
cp
out_gstdout.so dracut.module/90metadata-collect
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment