Katello 3.3/foreman 1.14

Can anyone tell me what software/agent/code is used to to inform
katello/foreman that a system is either up to date or needs patches (aka
erratas that apply to host) and what executes it? From what I've come up
with thus far, I perform the following task on a host and then everything
is good. But this is because puppet agent does a puppet run every 35'is
minutes. At least that's what my understanding is.

  1. So first I create a host in foreman with the specifics/details needed to
    define a specific host.

  2. On a existing system I run these task. Rough draft of the steps I
    follow to set up an existing host.

– install subscription manager
wget
https://copr.fedoraproject.org/coprs/dgoodwin/subscription-manager/repo/epel-6/dgoodwin-subscription-manager-epel-6.repo
-O /etc/yum.repos.d/dgoodwin-subscription-manager-epel-6.repo
– install katello client
yum install -y
http://fedorapeople.org/groups/katello/releases/yum/3.2/client/el6/x86_64/katello-client-repos-latest.rpm
yum -y install katello-agent
wget --no-check-certificate
https://foreman.domain.com/pub/katello-ca-consumer-latest.noarch.rpm
rpm -ihv ./katello-ca-consumer-latest.noarch.rpm
subscription-manager register --org="myOrg" --activationkey="COS6"

– Install puppet
rpm -ihv https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm
yum -y install puppet
add the following two lines just under [main]
server = foreman.domain.com
environment = production
– puppet agent -t
– service puppet start
– chkconfig puppet on

So after doing these steps i'm able to login to foreman and see weather or
not a system has outstanding erratas that need to be applied and I can
apply them.

The service you are looking for is when you installed katello-agent. This
package includes utilities that upload the hosts package profile and
enabled repositories to Katello which allow errata to be calculated.

Eric

··· On Tue, May 30, 2017 at 6:46 PM, Edward Clay wrote:

Can anyone tell me what software/agent/code is used to to inform
katello/foreman that a system is either up to date or needs patches (aka
erratas that apply to host) and what executes it? From what I’ve come up
with thus far, I perform the following task on a host and then everything
is good. But this is because puppet agent does a puppet run every 35’is
minutes. At least that’s what my understanding is.

  1. So first I create a host in foreman with the specifics/details needed
    to define a specific host.

  2. On a existing system I run these task. Rough draft of the steps I
    follow to set up an existing host.

– install subscription manager
wget https://copr.fedoraproject.org/coprs/dgoodwin/
subscription-manager/repo/epel-6/dgoodwin-subscription-manager-epel-6.repo
-O /etc/yum.repos.d/dgoodwin-subscription-manager-epel-6.repo
– install katello client
yum install -y http://fedorapeople.org/groups/katello/releases/yum/3.
2/client/el6/x86_64/katello-client-repos-latest.rpm
yum -y install katello-agent
wget --no-check-certificate https://foreman.domain.com/
pub/katello-ca-consumer-latest.noarch.rpm
rpm -ihv ./katello-ca-consumer-latest.noarch.rpm
subscription-manager register --org=“myOrg” --activationkey=“COS6”

– Install puppet
rpm -ihv https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm
yum -y install puppet
add the following two lines just under [main]
server = foreman.domain.com
environment = production
– puppet agent -t
– service puppet start
– chkconfig puppet on

So after doing these steps i’m able to login to foreman and see weather or
not a system has outstanding erratas that need to be applied and I can
apply them.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Eric D. Helms
Red Hat Engineering

Thanks Eric for the quick response. is there some service that runs on
the system or is it called by something? Just trying to figure out how
this works without enabling the puppet service, which doesn't seem to
be related.

··· On Tue, 2017-05-30 at 20:08 -0400, Eric D Helms wrote: > The service you are looking for is when you installed katello-agent. > This package includes utilities that upload the hosts package profile > and enabled repositories to Katello which allow errata to be > calculated. > Eric > > On Tue, May 30, 2017 at 6:46 PM, Edward Clay > wrote: > > Can anyone tell me what software/agent/code is used to to inform > > katello/foreman that a system is either up to date or needs patches > > (aka erratas that apply to host) and what executes it? From what > > I've come up with thus far, I perform the following task on a host > > and then everything is good. But this is because puppet agent does > > a puppet run every 35'is minutes. At least that's what my > > understanding is. > > 1. So first I create a host in foreman with the specifics/details > > needed to define a specific host. > > > > 2. On a existing system I run these task. Rough draft of the steps > > I follow to set up an existing host. > > > > -- install subscription manager > > wget https://copr.fedoraproject.org/coprs/dgoodwin/subscription-man > > ager/repo/epel-6/dgoodwin-subscription-manager-epel-6.repo -O > > /etc/yum.repos.d/dgoodwin-subscription-manager-epel-6.repo > > -- install katello client > > yum install -y http://fedorapeople.org/groups/katello/releases/yum/ > > 3.2/client/el6/x86_64/katello-client-repos-latest.rpm > > yum -y install katello-agent > > wget --no-check-certificate https://foreman.domain.com/pub/katello- > > ca-consumer-latest.noarch.rpm > > rpm -ihv ./katello-ca-consumer-latest.noarch.rpm > > subscription-manager register --org="myOrg" --activationkey="COS6" > > > > -- Install puppet > > rpm -ihv https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch. > > rpm > > yum -y install puppet > > add the following two lines just under [main] > > server = foreman.domain.com > > environment = production > > -- puppet agent -t > > -- service puppet start > > -- chkconfig puppet on > > > > So after doing these steps i'm able to login to foreman and see > > weather or not a system has outstanding erratas that need to be > > applied and I can apply them. > > > > > > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups "Foreman users" group. > > > > To unsubscribe from this group and stop receiving emails from it, > > send an email to foreman-users+unsubscribe@googlegroups.com. > > > > To post to this group, send email to foreman-users@googlegroups.com > > . > > > > Visit this group at https://groups.google.com/group/foreman-users. > > > > For more options, visit https://groups.google.com/d/optout. > > > > > -- Edward Clay Systems Adminstrator UK2 Group -- US Operations Phone: 1-800-222-2165 E-Mail: edward.clay@uk2group.com

Edward,

The katello-agent is actually running as 'goferd' on the system. When you
install this service gets started which triggers initial uploads for
package profiles and enabled repositories. Subsequent actions on the host
will re-trigger these events (e.g. yum update will re-trigger package
upload) to keep the data up to date in Katello and applicability current.

Eric

··· On Wed, May 31, 2017 at 10:59 AM, Edward Clay wrote:

Thanks Eric for the quick response. is there some service that runs on the
system or is it called by something? Just trying to figure out how this
works without enabling the puppet service, which doesn’t seem to be related.

On Tue, 2017-05-30 at 20:08 -0400, Eric D Helms wrote:

The service you are looking for is when you installed katello-agent. This
package includes utilities that upload the hosts package profile and
enabled repositories to Katello which allow errata to be calculated.

Eric

On Tue, May 30, 2017 at 6:46 PM, Edward Clay Edward.Clay@uk2group.com > wrote:

Can anyone tell me what software/agent/code is used to to inform
katello/foreman that a system is either up to date or needs patches (aka
erratas that apply to host) and what executes it? From what I’ve come up
with thus far, I perform the following task on a host and then everything
is good. But this is because puppet agent does a puppet run every 35’is
minutes. At least that’s what my understanding is.

  1. So first I create a host in foreman with the specifics/details needed
    to define a specific host.

  2. On a existing system I run these task. Rough draft of the steps I
    follow to set up an existing host.

– install subscription manager
wget https://copr.fedoraproject.org/coprs/dgoodwin/subscription-
manager/repo/epel-6/dgoodwin-subscription-manager-epel-6.repo -O
/etc/yum.repos.d/dgoodwin-subscription-manager-epel-6.repo
– install katello client
yum install -y http://fedorapeople.org/groups/katello/releases/yum/3.2/
client/el6/x86_64/katello-client-repos-latest.rpm
yum -y install katello-agent
wget --no-check-certificate https://foreman.domain.com/pub
/katello-ca-consumer-latest.noarch.rpm
rpm -ihv ./katello-ca-consumer-latest.noarch.rpm
subscription-manager register --org=“myOrg” --activationkey=“COS6”

– Install puppet
rpm -ihv https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm
yum -y install puppet
add the following two lines just under [main]
server = foreman.domain.com
environment = production
– puppet agent -t
– service puppet start
– chkconfig puppet on

So after doing these steps i’m able to login to foreman and see weather or
not a system has outstanding erratas that need to be applied and I can
apply them.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Edward Clay
Systems Adminstrator
UK2 Group – US Operations
Phone: 1-800-222-2165 <(800)%20222-2165>
E-Mail: edward.clay@uk2group.com


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Eric D. Helms
Red Hat Engineering