Run agent instead of introspector
@@ -52,7 +52,7 @@ const (
type Config struct {
ImageBuilder string `envconfig:"IMAGE_BUILDER" default:"quay.io/oscohen/installer-image-build"`
ImageBuilderCmd string `envconfig:"IMAGE_BUILDER_CMD" default:"echo hello"`
- AgentDockerImg string `envconfig:"AGENT_DOCKER_IMAGE" default:"quay.io/oamizur/introspector:latest"`
+ AgentDockerImg string `envconfig:"AGENT_DOCKER_IMAGE" default:"quay.io/oamizur/agent:latest"`
KubeconfigGenerator string `envconfig:"KUBECONFIG_GENERATE_IMAGE" default:"quay.io/oscohen/ignition-manifests-and-kubeconfig-generate"`
InventoryURL string `envconfig:"INVENTORY_URL" default:"10.35.59.36"`
InventoryPort string `envconfig:"INVENTORY_PORT" default:"30485"`
@@ -79,9 +79,9 @@ const ignitionConfigFormat = `{
},
"systemd": {
"units": [{
-"name": "introspector.service",
+"name": "agent.service",
"enabled": true,
-"contents": "[Service]\nType=simple\nExecStartPre=docker run --privileged --rm -v /usr/local/bin:/hostbin %s cp /usr/bin/introspector /usr/sbin/dmidecode /hostbin\nExecStart=/usr/local/bin/introspector --host %s --port %s --cluster-id %s\n\n[Install]\nWantedBy=multi-user.target"
+"contents": "[Service]\nType=simple\nExecStartPre=docker run --privileged --rm -v /usr/local/bin:/hostbin %s cp /usr/bin/agent /hostbin\nExecStart=/usr/local/bin/agent --host %s --port %s --cluster-id %s\n\n[Install]\nWantedBy=multi-user.target"
}]
}
}`
