Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename rancher agent to elemental agent #206

Merged
merged 2 commits into from
Jul 25, 2022
Merged
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
7 changes: 3 additions & 4 deletions Dockerfile.image
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ARGS go first if used on FROM
ARG OPERATOR_IMAGE=quay.io/costoolkit/elemental-operator:v0.3.0
ARG OPERATOR_IMAGE=quay.io/costoolkit/elemental-operator:latest
ARG SYSTEM_AGENT_IMAGE=rancher/system-agent:v0.2.9
# Binaries and files needed from elemental-toolkit repository
ARG LUET_VERSION=0.32.5
Expand All @@ -10,7 +10,6 @@ SHELL ["/usr/bin/luet", "install", "-y", "--system-target", "/framework"]

RUN utils/k9s
RUN utils/nerdctl
RUN utils/rancherd
RUN toolchain/elemental-cli
RUN toolchain/cosign
RUN selinux/rancher
Expand All @@ -30,8 +29,8 @@ FROM registry.suse.com/suse/sle-micro-rancher/5.2:latest as default
COPY --from=framework-build /framework /
# Copy elemental-operator
COPY --from=elemental-operator /usr/sbin/elemental-operator /usr/sbin/elemental-operator
# Copy rancher-system-agent
COPY --from=system-agent /usr/bin/rancher-system-agent /usr/sbin/rancher-system-agent
# Copy rancher-system-agent as elemental-system-agent to avoid clashes
COPY --from=system-agent /usr/bin/rancher-system-agent /usr/sbin/elemental-system-agent

# Copy local framework files
COPY framework/cos/ /
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SUDO?=sudo
FRAMEWORK_PACKAGES?=meta/cos-light
CLOUD_CONFIG_FILE?="iso/config"
# This are the default images already in the dockerfile but we want to be able to override them
OPERATOR_IMAGE?=quay.io/costoolkit/elemental-operator:v0.3.0
OPERATOR_IMAGE?=quay.io/costoolkit/elemental-operator:latest
SYSTEM_AGENT_IMAGE?=rancher/system-agent:v0.2.9
TOOL_IMAGE?=quay.io/costoolkit/elemental-cli:v0.0.15-f1fabd4
# Used to know if this is a release or just a normal dev build
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
[Unit]
Description=Rancher System Agent
Description=Elemental System Agent
Documentation=https://github.com/rancher/system-agent
Wants=network-online.target
After=network-online.target
ConditionPathExists=!/run/cos/live_mode
ConditionPathExists=!/opt/rancher-system-agent
ConditionPathExists=!/etc/systemd/system/rancher-system-agent.service

[Install]
WantedBy=multi-user.target

[Service]
Type=simple
Restart=always
RestartSec=5s
Type=oneshot
StandardOutput=journal+console
StandardError=journal+console
Environment="CATTLE_AGENT_CONFIG=/etc/rancher/agent/config.yaml"
ExecStart=/usr/sbin/rancher-system-agent sentinel
Environment="CATTLE_AGENT_CONFIG=/etc/elemental/agent/config.yaml"
ExecStart=/usr/sbin/elemental-system-agent sentinel
23 changes: 0 additions & 23 deletions framework/files/usr/lib/systemd/system/rancherd.service

This file was deleted.