Overview

Support for CoreOS is available starting with RightLink 10.3.1 under the following use-cases: Enable-running, Install-at-boot, and Install-on-image.

Please note that the installation of RightLink 10 is done to the CoreOS operating system and has no reference to containers.

Changes Specific to CoreOS

Due to the unique properties of CoreOS compared to other Linux flavors, some updates where made to accommodate the installation.

Since the /usr directory is frozen, binaries are placed in /opt/bin.

cloud-config liquid user-data

CoreOS uses the cloud-config syntax to provide user-data. As a result, we provide user-data conforming to this syntax on images in the CoreOS MCI, available with the Linux Base ServerTemplate. Also, in order to provide RightScale information from the core, the user-data is treated as a Liquid Template. To pass this as a Liquid Template to RightScale, the rs_agent:userdata=liquid tag must be set as it is on the CoreOS MCI images (see next section). (See Liquid User-data for more details)

#cloud-config

write_files:
  - path: /var/lib/rightscale-identity
    permissions: '0600'
    content: |
      {% for pair in rs_agent %}{{pair[0]}}={{pair[1]}}
      {% endfor %}
coreos:
  units:
    - name: rightlink-install.service
      command: start
      content: |
        [Unit]
        Description=Installs RightLink 10 at boot

        [Service]
        Type=oneshot
        RemainAfterExit=yes
        Environment="https_proxy={{ rs_agent.http_proxy }}"
        ExecStart=/usr/bin/bash -c "/usr/bin/curl -s https://rightlink.rightscale.com/rll/10.6.4/rightlink.boot.sh | /usr/bin/bash"

Dealing with Reboot Strategies

Although it is not strictly specific to RightLink, by default CoreOS has automatic updates which can sometimes trigger reboots. Be sure to read about CoreOS: Reboot strategies on update so you can configure CoreOS with settings that suit your needs. The settings are configured through the cloud-config user-data so you will need to use Liquid user-data as above.

MCI tags

If the CoreOS MCI provided with the Linux Base Server Template is not being used, the following tags must be added to the MCI in addition to the user-data described above:

rs_agent:type=right_link_lite
rs_agent:userdata=liquid

Other Linux flavors supported by RightLink can install and configure collectd to pass monitoring information to RightScale. RightLink has the ability to pass the same monitoring information as the default installation of collectd. By default, because CoreOS does not support installation of collectd packages, the RightScript to enable monitoring uses RightLink to monitor on CoreOS. (see Alternative Linux Monitoring Setup for more details)