Atomic Host and Satellite 6.1

Latest response

Hello,

If we have some Atomic Host instances that are created outside of Satellite 6's provisioning how do we bring them under "control" of Satellite 6 for ostree updates, and potentially for Docker provisioning which is now included in 6.1 ?

Any ideas ?

Currently I have a few subscription-manager commands that I run and they show up as content hosts but mostly with warnings and there is little I can do when they are in there.

Thanks
Paul

Responses

Not a definite answer, but I've been deploying Atomic Hosts outside of Satellite's (version 6.0.8) provisioning and then registering them.

I'm running the following on newly created AH, and it allows Satellite to see those hosts and also provides repositories for RHEL-based containers.

curl -O http://satellite-host/pub/katello-ca-consumer-latest.noarch.rpm
rpm2cpio katello-ca-consumer-latest.noarch.rpm | cpio -idmv
cp etc/rhsm/ca/* /etc/rhsm/ca/
rpm -qp katello-ca-consumer-latest.noarch.rpm --scripts | sed '1d' > katello_conf.sh
chmod +x katello_conf.sh
./katello_conf.sh
subscription-manager register --org="MYORG" --activationkey="MYKEY"

I'm not sure about the OSTree updates though.

Thanks I was doing this:-

#!/bin/bash
echo "Registering the system"
subscription-manager clean
subscription-manager config --server.hostname=satellite-host.my.domain
subscription-manager config --server.prefix=/rhsm
subscription-manager config --server.insecure=1
subscription-manager register --org="MYORG" --activationkey="MYKEY"
subscription-manager attach --auto

So without the cert I had to disable it. Your way seems better to me so I will put that in.

Below, it works me also; (satellite 6.2, atomic 7.3) I got the error on satellite 6.1 mentioned here https://access.redhat.com/solutions/2037783 So, I tried on 6.2


curl -O http://satellite-host/pub/katello-ca-consumer-latest.noarch.rpm rpm2cpio katello-ca-consumer-latest.noarch.rpm | cpio -idmv cp etc/rhsm/ca/* /etc/rhsm/ca/ rpm -qp katello-ca-consumer-latest.noarch.rpm --scripts | sed '1d' > katello_conf.sh chmod +x katello_conf.sh ./katello_conf.sh subscription-manager register --org="MYORG" --activationkey="MYKEY"