Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
public class IntegratedToolAgentInitializer implements ApplicationRunner {

private static final String OSQUERY_ASSET_ID = "osqueryd";
private static final String MESHCENTRAL_CORE_MODULE_ASSET_ID = "meshcentral-core-module";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not approach we discussed before?
Mesh have native way for the core module management.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old pr, working on discussed solution atm; Closing this👌


private final ObjectMapper objectMapper;
private final IntegratedToolAgentService integratedToolAgentService;
Expand Down Expand Up @@ -103,6 +104,7 @@ private enum AgentVersionOverride {
@Override
void apply(IntegratedToolAgentConfiguration configuration, ClientVersionsProperties versions) {
configuration.setVersion(versions.getMesh());
applyAssetVersion(configuration, MESHCENTRAL_CORE_MODULE_ASSET_ID, versions.getMesh());
}
},
FLEETMDM("fleetmdm-agent") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,21 @@
"assets": [
{
"id": "meshcentral-core-module",
"source": "GITHUB",
"downloadConfigurations": [
{
"os": "windows",
"linkTemplate": "https://github.com/flamingo-stack/meshagent/releases/download/{version}/meshagent-windows-amd64.zip",
"fileName": "meshagent-windows-amd64.zip",
"targetFileName": "CoreModule.js"
},
{
"os": "macos",
"linkTemplate": "https://github.com/flamingo-stack/meshagent/releases/download/{version}/meshagent-macos-universal.tar.gz",
"fileName": "meshagent-macos-universal.tar.gz",
"targetFileName": "CoreModule.js"
}
],
"localFilenameConfiguration": [
{
"filename": "CoreModule.js",
Expand All @@ -50,7 +65,6 @@
"os": "macos"
}
],
"source": "ARTIFACTORY",
"executable": false
},
{
Expand Down
Loading