Skip to content

Commit

Permalink
WIP - Netdata v2 (netdata#18125)
Browse files Browse the repository at this point in the history
* split claiming into multiple files; WIP claiming with api

* pidfile is now dynamically allocated

* netdata_exe_path is now dynamically allocated

* remove ENABLE_CLOUD and ENABLE_ACLK

* fix compilation

* remove ENABLE_HTTPS and ENABLE_OPENSSL

* remove the ability to disable cloud

* remove netdata_cloud_enabled variable; split rooms into a json array

* global libcurl initialization

* detect common claiming errors

* more common claiming errors

* finished claiming via API

* same as before

* same as before

* remove the old claiming logic that runs the claim script

* working claim.conf

* cleanup

* fix log message; default proxy is env

* fix log message

* remove netdata-claim.sh from run.sh

* remove netdata-claim.sh from everywhere, except kickstart scripts

* create cloud.d if it does not exist.

* better error handling and logging

* handle proxy disable

* merged master

* fix cmakelists for new files

* left-overs removal

* Include libcurl in required dependencies.

* Fix typo in dependency script.

* Use pkg-config for finding cURL.

This properly handles transitive dependencies, unlike the FindCURL
module.

* netdata installer writes claiming info to /etc/netdata/claim.conf

* remove claim from netdata

* add libcurl to windows packages

* add libcurl to windows packages

* compile-on-windows.sh installs too

* add NODE_ID streaming back to child and INDIRECT cloud status

* log child kill on windows

* fixes for spawn server on windows to ensure we have a valid pid and the process is properly terminated

* better handling to windows processes exit code

* pass the cloud url from parents to children

* add retries and timeout to claiming curl request

* remove FILE * from plugins.d

* spawn-tester to unittest spawning processes communication

* spawn-tester now tests FILE pointer I/O

* external plugins run in posix mode

* set blocking I/O on all pipes

* working spawn server on windows

* latest changes in spawn_popen applied to linux tools

* push environment

* repeated tests of fds

* export variable CYGWIN_BASE_PATH

* renamed to NETDATA_CYGWIN_BASE_PATH

* added cmd and help to adapt the command and the information to be presented to users during claiming

* split spawn server versions into files

* restored spawn server libuv based

* working libuv based spawn server

* fixes in libuv for windows

* working spawn server based on posix_spawn()

* fix fd leads on all spawn servers

* fixed windows spawn server

* fix signal handling to ensure proper cooperation with libuv

* switched windows to posix_spawn() based spawn server

* improvement on libuv version

* callocz() event loop

* simplification of libuv spawn server

* minor fixes in libuv and spawn tester

* api split into parts and separated by version; introduced /api/v3; no changes to old /api/v1 and /api/v2

* completed APIs splitting

* function renames

* remove dead code

* split basic functions into a directory

* execute external plugins in nofork spawn server with posix_spawn() for improved performance

* reset signals when using posix_spawn()

* fix spawn server logs and log cmdline in posix server

* bearer_get_token() implemented as function

* agent cloud status now exposes parent claim_id in indirect mode

* fixes for node id streaming from parent to children

* extract claimed id to separate file

* claim_id is no longer in host structure; there is a global claim_id for this agent and there are parent and origin claim ids in host structure

* fix issue on older compilers

* implement /api/v3 using calls from v1 and v2

* prevent asan leaks on local-sockets callback

* codacy fixes

* moved claim web api to web/api/v2

* when the agent is offline, prefer indirect connection when available; log a warning when a node changes node id

* improve inheritance of claim id from parent

* claim_id for bearer token show match any of the claim ids known

* aclk_connected replaced with functions

* aclk api can now be limited to node information, implementing [cloud].scope = license manager

* comment out most options in stream.conf so that internal defaults will be applied

* respect negative matches for send charts matching

* hidden functions are not accessible via the API; bearer_get_token function checks the request is coming from Netdata Cloud

* /api/v3/settings API

* added error logs to settings api

* saving and loading of bearer tokens

* Fix parameter when calling send_to_plugin

* Prevent overflow

* expose struct parser and typedef PARSER to enforce strict type checking on send_to_plugin()

* ensure the parser will not go away randomly from the receiver - it is now cleared when the receiver lock is acquired; also ensure the output sockets are set in the parser as long as the parser runs

* Add newline

* Send parent claim id downstream

* do not send anything when nodeid is zero

* code re-organization and cleanup

* add aclk capabilities, nodes summary and api version and protection to /api/v2,3/info

* added /api/v3/me which returns information about the current user

* make /api/v3/info accessible always

* Partially revert "remove netdata-claim.sh from everywhere, except kickstart scripts"

Due to how we handle files in our static builds and local builds, we
actually need to continue installing `netdata-claim.sh` to enable a
seamless transition to the new claiming mechanims without breaking
compatibility with existing installs or existing automation tooling that
is directly invoking the claiming script.

The script itself will be rewritten in a subsequent commit to simply
wrap the new claiming methodology, together with some additional changes
to ensure that a warning is issued if the script is invoked by anything
other than the kickstart script.

* Rewrite claiming script to use new claiming method.

* Revert "netdata installer writes claiming info to /etc/netdata/claim.conf"

Same reasoning as for 2e27bedb3fbf9df523bff407f2e8c8428e350e38.

We need to keep the old claiming support code in the kickstart script
for the forseeable future so that existing installs can still be
claimed, since the kickstart script is _NOT_ versioned with the agent.

A later commit will add native support for the new claiming method and
use that in preference to the claiming script if it appears to be
available.

* Add support for new claiming method to kickstart.sh.

This adds native support to the kickstart script to use the new claiming
method without depending on the claiming script, as well as adding a few
extra tweaks to the claiming script to enable it to better handle the
transition.

Expected behavior is for the kickstart script to use the new claiming
code path if the claiming script is either not installed, or does not
contain the specific string `%%NEW_CLAIMING_METHOD%%`. This way we will
skip the claiming script on systems which have the updated copy that
uses the new claiming approach, which should keep kickstart behavior
consistent with what Netdata itself supports.

* Depend on JSON-C 0.14 as a minimum supported version.

Needed for uint64 functions.

* Fix claiming option validation in kickstart script.

* do not cache auth in web client

* reuse bearer tokens when the request to create one matches an existing

* dictionaries dfe loops now allow using return statement

* bearer token files are now fixed for specific agents by having the machine guid of the agent in them

* systemd journal now respects facets and disables the default facets when not given

* fixed commands.c

* restored log for not openning config file

* Fix Netdata group templating for claiming script.

* Warn on failed templating in claiming script.

* Make `--require-cloud` a slient no-op.

We don’t need to warn users that it does nothing, we should just have ti
do nothing.

* added debugging info to claiming

* log also the response

* do not send double / at the url

* properly remove keyword from parameters

* disable debug during claimming

* fix log messages

* Update packaging/installer/kickstart.sh

* Update packaging/installer/kickstart.sh

* implemented POST request payload parsing for systemd-journal

* added missing reset of facets in json parsing

* JSON payload does not need hashes any more. I can accept the raw values

---------

Co-authored-by: Ilya Mashchenko <[email protected]>
Co-authored-by: Austin S. Hemmelgarn <[email protected]>
Co-authored-by: Stelios Fragkakis <[email protected]>
Co-authored-by: Austin S. Hemmelgarn <[email protected]>
  • Loading branch information
5 people authored Aug 23, 2024
1 parent 4e18df9 commit 4c01220
Show file tree
Hide file tree
Showing 271 changed files with 12,740 additions and 9,305 deletions.
2 changes: 1 addition & 1 deletion .github/dockerfiles/Dockerfile.clang
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ WORKDIR /netdata
COPY . .

# Build Netdata
RUN ./netdata-installer.sh --dont-wait --dont-start-it --disable-go --require-cloud
RUN ./netdata-installer.sh --dont-wait --dont-start-it --disable-go
12 changes: 3 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -930,24 +930,18 @@ jobs:
id: load
if: needs.file-check.outputs.run == 'true'
run: docker load --input image.tar
- name: netdata-installer on ${{ matrix.distro }}, disable cloud
id: build-no-cloud
if: needs.file-check.outputs.run == 'true'
run: |
docker run --security-opt seccomp=unconfined -w /netdata test:${{ matrix.artifact_key }} \
/bin/sh -c './netdata-installer.sh --dont-wait --dont-start-it --disable-cloud --one-time-build ${{ needs.file-check.outputs.skip-go }}'
- name: netdata-installer on ${{ matrix.distro }}, require cloud
id: build-cloud
if: needs.file-check.outputs.run == 'true'
run: |
docker run --security-opt seccomp=unconfined -w /netdata test:${{ matrix.artifact_key }} \
/bin/sh -c './netdata-installer.sh --dont-wait --dont-start-it --require-cloud --one-time-build ${{ needs.file-check.outputs.skip-go }}'
/bin/sh -c './netdata-installer.sh --dont-wait --dont-start-it --one-time-build ${{ needs.file-check.outputs.skip-go }}'
- name: netdata-installer on ${{ matrix.distro }}, require cloud, no JSON-C
id: build-no-jsonc
if: matrix.jsonc_removal != '' && needs.file-check.outputs.run == 'true'
run: |
docker run --security-opt seccomp=unconfined -w /netdata test:${{ matrix.artifact_key }} \
/bin/sh -c '/rmjsonc.sh && ./netdata-installer.sh --dont-wait --dont-start-it --require-cloud --one-time-build ${{ needs.file-check.outputs.skip-go }}'
/bin/sh -c '/rmjsonc.sh && ./netdata-installer.sh --dont-wait --dont-start-it --one-time-build ${{ needs.file-check.outputs.skip-go }}'
- name: Failure Notification
uses: rtCamp/action-slack-notify@v2
env:
Expand Down Expand Up @@ -1015,7 +1009,7 @@ jobs:
id: build-source
if: needs.file-check.outputs.run == 'true'
run: |
sudo bash ./netdata-installer.sh --install-no-prefix /usr/local/netdata --dont-wait --dont-start-it --require-cloud --one-time-build
sudo bash ./netdata-installer.sh --install-no-prefix /usr/local/netdata --dont-wait --dont-start-it --one-time-build
- name: Test Agent start up
id: test-agent
if: needs.file-check.outputs.run == 'true'
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ system/systemd/netdata-updater.service
!system/systemd/netdata.service.*.in

src/health/notifications/alarm-notify.sh
claim/netdata-claim.sh
src/collectors/cgroups.plugin/cgroup-name.sh
src/collectors/cgroups.plugin/cgroup-network-helper.sh
src/collectors/tc.plugin/tc-qos-helper.sh
Expand Down
168 changes: 111 additions & 57 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ option(DEFAULT_FEATURE_STATE "Specify the default state for most optional featur
mark_as_advanced(DEFAULT_FEATURE_STATE)

# High-level features
option(ENABLE_ACLK "Enable Netdata Cloud support (ACLK)" ${DEFAULT_FEATURE_STATE})
option(ENABLE_CLOUD "Enable Netdata Cloud by default at runtime" ${DEFAULT_FEATURE_STATE})
option(ENABLE_ML "Enable machine learning features" ${DEFAULT_FEATURE_STATE})
option(ENABLE_DBENGINE "Enable dbengine metrics storage" True)

Expand Down Expand Up @@ -198,11 +196,7 @@ mark_as_advanced(BUILD_FOR_PACKAGING)
cmake_dependent_option(FORCE_LEGACY_LIBBPF "Force usage of libbpf 0.0.9 instead of the latest version." False "ENABLE_PLUGIN_EBPF" False)
mark_as_advanced(FORCE_LEGACY_LIBBPF)

if(ENABLE_ACLK OR ENABLE_EXPORTER_PROMETHEUS_REMOTE_WRITE)
set(NEED_PROTOBUF True)
else()
set(NEED_PROTOBUF False)
endif()
set(NEED_PROTOBUF True)

if(ENABLE_PLUGIN_GO)
include(NetdataGoTools)
Expand Down Expand Up @@ -261,6 +255,9 @@ if(ENABLE_PLUGIN_EBPF)
netdata_fetch_ebpf_co_re()
endif()

pkg_check_modules(CURL libcurl>=7.21 REQUIRED IMPORTED_TARGET)
set(HAVE_LIBCURL TRUE)

#
# Libm
#
Expand Down Expand Up @@ -524,7 +521,6 @@ if(OS_FREEBSD OR OS_MACOS)
endif()

# openssl/crypto
set(ENABLE_OPENSSL True)
pkg_check_modules(TLS IMPORTED_TARGET openssl)

if(NOT TARGET PkgConfig::TLS)
Expand Down Expand Up @@ -743,14 +739,23 @@ set(LIBNETDATA_FILES
src/libnetdata/os/setenv.h
src/libnetdata/os/strndup.c
src/libnetdata/os/strndup.h
src/libnetdata/spawn_server/spawn_server.c
src/libnetdata/spawn_server/spawn_server_nofork.c
src/libnetdata/spawn_server/spawn_server.h
src/libnetdata/spawn_server/spawn_popen.c
src/libnetdata/spawn_server/spawn_popen.h
src/libnetdata/spawn_server/spawn_server_windows.c
src/libnetdata/spawn_server/spawn_server_internals.h
src/libnetdata/spawn_server/spawn_server_libuv.c
src/libnetdata/spawn_server/spawn_server_posix.c
src/libnetdata/spawn_server/spawn_library.c
src/libnetdata/spawn_server/spawn_library.h
src/libnetdata/os/close_range.c
src/libnetdata/os/close_range.h
src/libnetdata/os/setproctitle.c
src/libnetdata/os/setproctitle.h
src/libnetdata/paths/paths.c
src/libnetdata/paths/paths.h
src/libnetdata/json/json-c-parser-inline.c
)

if(ENABLE_PLUGIN_EBPF)
Expand Down Expand Up @@ -849,14 +854,15 @@ set(DAEMON_FILES
src/daemon/common.h
src/daemon/daemon.c
src/daemon/daemon.h
src/daemon/event_loop.c
src/daemon/event_loop.h
src/daemon/libuv_workers.c
src/daemon/libuv_workers.h
src/daemon/global_statistics.c
src/daemon/global_statistics.h
src/daemon/analytics.c
src/daemon/analytics.h
src/daemon/main.c
src/daemon/main.h
src/daemon/environment.c
src/daemon/win_system-info.c
src/daemon/win_system-info.h
src/daemon/signals.c
Expand Down Expand Up @@ -905,16 +911,65 @@ set(API_PLUGIN_FILES
src/web/api/web_api_v1.h
src/web/api/web_api_v2.c
src/web/api/web_api_v2.h
src/web/api/web_api_v3.c
src/web/api/web_api_v3.h
src/web/api/http_auth.c
src/web/api/http_auth.h
src/web/api/http_header.c
src/web/api/http_header.h
src/web/api/badges/web_buffer_svg.c
src/web/api/badges/web_buffer_svg.h
src/web/api/exporters/allmetrics.c
src/web/api/exporters/allmetrics.h
src/web/api/exporters/shell/allmetrics_shell.c
src/web/api/exporters/shell/allmetrics_shell.h
src/web/api/maps/rrdr_options.c
src/web/api/maps/rrdr_options.h
src/web/api/maps/contexts_options.c
src/web/api/maps/contexts_options.h
src/web/api/maps/datasource_formats.c
src/web/api/maps/datasource_formats.h
src/web/api/maps/maps.h
src/web/api/maps/contexts_alert_statuses.c
src/web/api/maps/contexts_alert_statuses.h
src/web/api/v1/api_v1_allmetrics.c
src/web/api/v1/api_v1_badge/web_buffer_svg.c
src/web/api/v1/api_v1_function.c
src/web/api/v1/api_v1_manage.c
src/web/api/v1/api_v1_calls.h
src/web/api/v1/api_v1_dbengine.c
src/web/api/v1/api_v1_config.c
src/web/api/v1/api_v1_functions.c
src/web/api/v1/api_v1_weights.c
src/web/api/v1/api_v1_info.c
src/web/api/v1/api_v1_registry.c
src/web/api/v1/api_v1_data.c
src/web/api/v1/api_v1_contexts.c
src/web/api/v1/api_v1_ml_info.c
src/web/api/v1/api_v1_aclk.c
src/web/api/v1/api_v1_context.c
src/web/api/v1/api_v1_alarms.c
src/web/api/v1/api_v1_charts.c
src/web/api/v2/api_v2_info.c
src/web/api/v2/api_v2_nodes.c
src/web/api/v2/api_v2_node_instances.c
src/web/api/v2/api_v2_q.c
src/web/api/v2/api_v2_versions.c
src/web/api/v2/api_v2_functions.c
src/web/api/v2/api_v2_alerts.c
src/web/api/v2/api_v2_alert_transitions.c
src/web/api/v2/api_v2_ilove/ilove.c
src/web/api/v2/api_v2_bearer.c
src/web/api/v2/api_v2_calls.h
src/web/api/v2/api_v2_data.c
src/web/api/v2/api_v2_progress.c
src/web/api/v2/api_v2_weights.c
src/web/api/v2/api_v2_alert_config.c
src/web/api/v2/api_v2_contexts.c
src/web/api/v2/api_v2_claim.c
src/web/api/v2/api_v2_webrtc.c
src/web/api/v3/api_v3_calls.h
src/web/api/v3/api_v3_settings.c
src/web/api/functions/functions.c
src/web/api/functions/functions.h
src/web/api/functions/function-progress.c
src/web/api/functions/function-progress.h
src/web/api/functions/function-streaming.c
src/web/api/functions/function-streaming.h
src/web/api/queries/rrdr.c
src/web/api/queries/rrdr.h
src/web/api/queries/query.c
Expand Down Expand Up @@ -961,10 +1016,11 @@ set(API_PLUGIN_FILES
src/web/api/formatters/charts2json.h
src/web/api/formatters/rrdset2json.c
src/web/api/formatters/rrdset2json.h
src/web/api/ilove/ilove.c
src/web/api/ilove/ilove.h
src/web/rtc/webrtc.c
src/web/rtc/webrtc.h
src/web/api/functions/function-bearer_get_token.c
src/web/api/functions/function-bearer_get_token.h
src/web/api/v3/api_v3_me.c
)

set(EXPORTING_ENGINE_FILES
Expand Down Expand Up @@ -1055,8 +1111,14 @@ set(PLUGINSD_PLUGIN_FILES
)

set(RRD_PLUGIN_FILES
src/database/contexts/api_v1.c
src/database/contexts/api_v2.c
src/database/contexts/api_v1_contexts.c
src/database/contexts/api_v2_contexts.c
src/database/contexts/api_v2_contexts.h
src/database/contexts/api_v2_contexts_agents.c
src/database/contexts/api_v2_contexts_alerts.c
src/database/contexts/api_v2_contexts_alerts.h
src/database/contexts/api_v2_contexts_alert_transitions.c
src/database/contexts/api_v2_contexts_alert_config.c
src/database/contexts/context.c
src/database/contexts/instance.c
src/database/contexts/internal.h
Expand All @@ -1073,10 +1135,6 @@ set(RRD_PLUGIN_FILES
src/database/rrdfunctions.h
src/database/rrdfunctions-inline.c
src/database/rrdfunctions-inline.h
src/database/rrdfunctions-progress.c
src/database/rrdfunctions-progress.h
src/database/rrdfunctions-streaming.c
src/database/rrdfunctions-streaming.h
src/database/rrdhost.c
src/database/rrdlabels.c
src/database/rrd.c
Expand Down Expand Up @@ -1200,6 +1258,10 @@ set(STREAMING_PLUGIN_FILES
src/streaming/replication.c
src/streaming/replication.h
src/streaming/common.h
src/streaming/protocol/command-nodeid.c
src/streaming/protocol/commands.c
src/streaming/protocol/commands.h
src/streaming/protocol/command-claimed_id.c
)

set(WEB_PLUGIN_FILES
Expand All @@ -1216,6 +1278,12 @@ set(WEB_PLUGIN_FILES
set(CLAIM_PLUGIN_FILES
src/claim/claim.c
src/claim/claim.h
src/claim/claim_id.c
src/claim/claim_id.h
src/claim/cloud-conf.c
src/claim/claim-with-api.c
src/claim/cloud-status.c
src/claim/cloud-status.h
)

set(ACLK_ALWAYS_BUILD
Expand Down Expand Up @@ -1677,10 +1745,7 @@ endif()
#
# mqtt library
#
if (ENABLE_H2O OR ENABLE_ACLK)
set(ENABLE_MQTTWEBSOCKETS True)
endif()

set(ENABLE_MQTTWEBSOCKETS True)
if(ENABLE_MQTTWEBSOCKETS)
add_library(mqttwebsockets STATIC ${MQTT_WEBSOCKETS_FILES})

Expand All @@ -1695,20 +1760,17 @@ if(ENABLE_MQTTWEBSOCKETS)

endif()

if(ENABLE_ACLK)
#
# proto definitions
#
netdata_protoc_generate_cpp("${CMAKE_SOURCE_DIR}/src/aclk/aclk-schemas"
"${CMAKE_SOURCE_DIR}/src/aclk/aclk-schemas"
ACLK_PROTO_BUILT_SRCS
ACLK_PROTO_BUILT_HDRS
${ACLK_PROTO_DEFS})

list(APPEND ACLK_FILES ${ACLK_PROTO_BUILT_SRCS}
${ACLK_PROTO_BUILT_HDRS})
#
# proto definitions
#
netdata_protoc_generate_cpp("${CMAKE_SOURCE_DIR}/src/aclk/aclk-schemas"
"${CMAKE_SOURCE_DIR}/src/aclk/aclk-schemas"
ACLK_PROTO_BUILT_SRCS
ACLK_PROTO_BUILT_HDRS
${ACLK_PROTO_DEFS})

endif()
list(APPEND ACLK_FILES ${ACLK_PROTO_BUILT_SRCS}
${ACLK_PROTO_BUILT_HDRS})

#
# build plugins
Expand Down Expand Up @@ -1740,6 +1802,9 @@ if(ENABLE_PLUGIN_DEBUGFS)
endif()
endif()

add_executable(spawn-tester src/libnetdata/spawn_server/spawn-tester.c)
target_link_libraries(spawn-tester libnetdata)

if(ENABLE_PLUGIN_APPS)
pkg_check_modules(CAP QUIET libcap)

Expand Down Expand Up @@ -2164,7 +2229,7 @@ endif()

add_executable(netdata
${NETDATA_FILES}
"$<$<BOOL:${ENABLE_ACLK}>:${ACLK_FILES}>"
"${ACLK_FILES}"
"$<$<BOOL:${ENABLE_H2O}>:${H2O_FILES}>"
"$<$<BOOL:${ENABLE_EXPORTER_MONGODB}>:${MONGODB_EXPORTING_FILES}>"
"$<$<BOOL:${ENABLE_EXPORTER_PROMETHEUS_REMOTE_WRITE}>:${PROMETHEUS_REMOTE_WRITE_EXPORTING_FILES}>"
Expand All @@ -2180,7 +2245,7 @@ target_compile_options(netdata PRIVATE
)

target_include_directories(netdata PRIVATE
"$<$<BOOL:${ENABLE_ACLK}>:${CMAKE_SOURCE_DIR}/src/aclk/aclk-schemas>"
"${CMAKE_SOURCE_DIR}/src/aclk/aclk-schemas"
"$<$<BOOL:${ENABLE_EXPORTER_MONGODB}>:${MONGOC_INCLUDE_DIRS}>"
"$<$<BOOL:${ENABLE_EXPORTER_PROMETHEUS_REMOTE_WRITE}>:${SNAPPY_INCLUDE_DIRS}>"
)
Expand All @@ -2196,6 +2261,7 @@ target_link_libraries(netdata PRIVATE
"$<$<BOOL:${ENABLE_SENTRY}>:sentry>"
"$<$<BOOL:${ENABLE_WEBRTC}>:LibDataChannel::LibDataChannelStatic>"
"$<$<BOOL:${ENABLE_H2O}>:h2o>"
"$<$<BOOL:${CURL_FOUND}>:PkgConfig::CURL>"
)

if(NEED_PROTOBUF)
Expand Down Expand Up @@ -2349,19 +2415,7 @@ set(cachedir_POST "${NETDATA_RUNTIME_PREFIX}/var/cache/netdata")
set(registrydir_POST "${NETDATA_RUNTIME_PREFIX}/var/lib/netdata/registry")
set(varlibdir_POST "${NETDATA_RUNTIME_PREFIX}/var/lib/netdata")
set(netdata_user_POST "${NETDATA_USER}")

# netdata-claim.sh
if(ENABLE_CLOUD)
set(enable_cloud_POST "yes")
else()
set(enable_cloud_POST "no")
endif()

if(ENABLE_ACLK)
set(enable_aclk_POST "yes")
else()
set(enable_aclk_POST "no")
endif()
set(netdata_group_POST "${NETDATA_USER}")

configure_file(src/claim/netdata-claim.sh.in src/claim/netdata-claim.sh @ONLY)
install(PROGRAMS
Expand Down
Loading

0 comments on commit 4c01220

Please sign in to comment.