Trouble Adding CentOS 7 Operating System and Media

Hi,

I had a request today to setup both Oracle Linux 7 and CentOS 7 for
provisioning in Foreman. In doing so I also setup the foreman-templates
plugin and sync'd the provisioning templates. It appears I have trouble
changing an existing Host's OS from Oracle Linux 6 to CentOS 7. I've
posted some screens to Google+ -
https://plus.google.com/105327828729026800537/posts/R7m1LyHhZYa

Is this a bug? After changing the OS to a different platform with
different install media, the install media menu is empty. If I create a
new host using CentOS 7 this is not an issue. Am I missing something?

Thanks!

So as a followup, the CentOS 7 machine I created as a new host will not
provision it pxe boots, beings to load from the media and bombs out on the
puppet install citing an issue that appears to be only related to RHEL7?
Anaconda ends with:

> puppet-3.6.2-3.el7.noarch requires ruby(selinux)
>

Screen here:
https://plus.google.com/105327828729026800537/posts/KumgGPDJUeD

Which in all my searching just comes up with a Bug filing with PuppetLabs
about updating the requirements to add a RHN server-optional repo…doesn't
seem like that should be required for CentOS. Am I missing something here,
shouldn't this work kind of out of the box?

··· On Monday, February 23, 2015 at 4:29:00 PM UTC-5, Sean Alderman wrote: > > Hi, > > I had a request today to setup both Oracle Linux 7 and CentOS 7 for > provisioning in Foreman. In doing so I also setup the foreman-templates > plugin and sync'd the provisioning templates. It appears I have trouble > changing an existing Host's OS from Oracle Linux 6 to CentOS 7. I've > posted some screens to Google+ - > https://plus.google.com/105327828729026800537/posts/R7m1LyHhZYa > > Is this a bug? After changing the OS to a different platform with > different install media, the install media menu is empty. If I create a > new host using CentOS 7 this is not an issue. Am I missing something? > > Thanks! >

Sorry, bad link…
https://plus.google.com/105327828729026800537/posts/2ZVHocdiPMY

··· On Monday, February 23, 2015 at 5:04:49 PM UTC-5, Sean Alderman wrote: > > So as a followup, the CentOS 7 machine I created as a new host will not > provision it pxe boots, beings to load from the media and bombs out on the > puppet install citing an issue that appears to be only related to RHEL7? > Anaconda ends with: > >> puppet-3.6.2-3.el7.noarch requires ruby(selinux) >> > > Screen here: > https://plus.google.com/105327828729026800537/posts/KumgGPDJUeD > > Which in all my searching just comes up with a Bug filing with PuppetLabs > about updating the requirements to add a RHN server-optional repo...doesn't > seem like that should be required for CentOS. Am I missing something here, > shouldn't this work kind of out of the box? > > > On Monday, February 23, 2015 at 4:29:00 PM UTC-5, Sean Alderman wrote: >> >> Hi, >> >> I had a request today to setup both Oracle Linux 7 and CentOS 7 for >> provisioning in Foreman. In doing so I also setup the foreman-templates >> plugin and sync'd the provisioning templates. It appears I have trouble >> changing an existing Host's OS from Oracle Linux 6 to CentOS 7. I've >> posted some screens to Google+ - >> https://plus.google.com/105327828729026800537/posts/R7m1LyHhZYa >> >> Is this a bug? After changing the OS to a different platform with >> different install media, the install media menu is empty. If I create a >> new host using CentOS 7 this is not an issue. Am I missing something? >> >> Thanks! >> >

Looks like anaconda is not finding libselinux-ruby in your package set. Are
you sure your install media has that rpm?

http://mirror.centos.org/centos/7/os/x86_64/Packages/

··· On Monday, February 23, 2015 at 5:11:04 PM UTC-5, Sean Alderman wrote: > > Sorry, bad link... > https://plus.google.com/105327828729026800537/posts/2ZVHocdiPMY > > On Monday, February 23, 2015 at 5:04:49 PM UTC-5, Sean Alderman wrote: >> >> So as a followup, the CentOS 7 machine I created as a new host will not >> provision it pxe boots, beings to load from the media and bombs out on the >> puppet install citing an issue that appears to be only related to RHEL7? >> Anaconda ends with: >> >>> puppet-3.6.2-3.el7.noarch requires ruby(selinux) >>> >> >> Screen here: >> https://plus.google.com/105327828729026800537/posts/KumgGPDJUeD >> >> Which in all my searching just comes up with a Bug filing with PuppetLabs >> about updating the requirements to add a RHN server-optional repo...doesn't >> seem like that should be required for CentOS. Am I missing something here, >> shouldn't this work kind of out of the box? >> >> >> On Monday, February 23, 2015 at 4:29:00 PM UTC-5, Sean Alderman wrote: >>> >>> Hi, >>> >>> I had a request today to setup both Oracle Linux 7 and CentOS 7 for >>> provisioning in Foreman. In doing so I also setup the foreman-templates >>> plugin and sync'd the provisioning templates. It appears I have trouble >>> changing an existing Host's OS from Oracle Linux 6 to CentOS 7. I've >>> posted some screens to Google+ - >>> https://plus.google.com/105327828729026800537/posts/R7m1LyHhZYa >>> >>> Is this a bug? After changing the OS to a different platform with >>> different install media, the install media menu is empty. If I create a >>> new host using CentOS 7 this is not an issue. Am I missing something? >>> >>> Thanks! >>> >>

Well, I'm almost certain you're correct, except that it doesn't fix my
issue with Oracle Linux.

Here's what I've just discovered this morning… the CentOS 7 4GB ISO does
not have what's required, so I downloaded and rebuilt my install repo from
the CentOS 7 "Everything" ISO which seems to work so far.

Oracle Linux only seems to distribute a 4GB ISO, so I'm going to have to
setup a repo for the OL7 Optional packages :
http://public-yum.oracle.com/repo/OracleLinux/OL7/optional/latest/x86_64/

I'll post another update when I get it worked out.

··· On Wednesday, February 25, 2015 at 9:57:41 AM UTC-5, Greg Etling wrote: > > Looks like anaconda is not finding libselinux-ruby in your package set. > Are you sure your install media has that rpm? > > http://mirror.centos.org/centos/7/os/x86_64/Packages/ > > > On Monday, February 23, 2015 at 5:11:04 PM UTC-5, Sean Alderman wrote: >> >> Sorry, bad link... >> https://plus.google.com/105327828729026800537/posts/2ZVHocdiPMY >> >> On Monday, February 23, 2015 at 5:04:49 PM UTC-5, Sean Alderman wrote: >>> >>> So as a followup, the CentOS 7 machine I created as a new host will not >>> provision it pxe boots, beings to load from the media and bombs out on the >>> puppet install citing an issue that appears to be only related to RHEL7? >>> Anaconda ends with: >>> >>>> puppet-3.6.2-3.el7.noarch requires ruby(selinux) >>>> >>> >>> Screen here: >>> https://plus.google.com/105327828729026800537/posts/KumgGPDJUeD >>> >>> Which in all my searching just comes up with a Bug filing with >>> PuppetLabs about updating the requirements to add a RHN server-optional >>> repo...doesn't seem like that should be required for CentOS. Am I missing >>> something here, shouldn't this work kind of out of the box? >>> >>> >>> On Monday, February 23, 2015 at 4:29:00 PM UTC-5, Sean Alderman wrote: >>>> >>>> Hi, >>>> >>>> I had a request today to setup both Oracle Linux 7 and CentOS 7 for >>>> provisioning in Foreman. In doing so I also setup the foreman-templates >>>> plugin and sync'd the provisioning templates. It appears I have trouble >>>> changing an existing Host's OS from Oracle Linux 6 to CentOS 7. I've >>>> posted some screens to Google+ - >>>> https://plus.google.com/105327828729026800537/posts/R7m1LyHhZYa >>>> >>>> Is this a bug? After changing the OS to a different platform with >>>> different install media, the install media menu is empty. If I create a >>>> new host using CentOS 7 this is not an issue. Am I missing something? >>>> >>>> Thanks! >>>> >>>

Yep, looks like Oracle Linux maintains it in the same way as RHEL in an
'optional' repo. Though since that is a public repo, you should be able to
set up a 'repo' line in your kickstart to point directly at OL-optional to
get your OL machine going for now, and replicate the repo in parallel for
your release management going forward.

··· On Wednesday, February 25, 2015 at 10:47:25 AM UTC-5, Sean Alderman wrote: > > Well, I'm almost certain you're correct, except that it doesn't fix my > issue with Oracle Linux. > > Here's what I've just discovered this morning... the CentOS 7 4GB ISO does > not have what's required, so I downloaded and rebuilt my install repo from > the CentOS 7 "Everything" ISO which seems to work so far. > > Oracle Linux only seems to distribute a 4GB ISO, so I'm going to have to > setup a repo for the OL7 Optional packages : > http://public-yum.oracle.com/repo/OracleLinux/OL7/optional/latest/x86_64/ > > I'll post another update when I get it worked out. > > On Wednesday, February 25, 2015 at 9:57:41 AM UTC-5, Greg Etling wrote: >> >> Looks like anaconda is not finding libselinux-ruby in your package set. >> Are you sure your install media has that rpm? >> >> http://mirror.centos.org/centos/7/os/x86_64/Packages/ >> >> >> On Monday, February 23, 2015 at 5:11:04 PM UTC-5, Sean Alderman wrote: >>> >>> Sorry, bad link... >>> https://plus.google.com/105327828729026800537/posts/2ZVHocdiPMY >>> >>> On Monday, February 23, 2015 at 5:04:49 PM UTC-5, Sean Alderman wrote: >>>> >>>> So as a followup, the CentOS 7 machine I created as a new host will not >>>> provision it pxe boots, beings to load from the media and bombs out on the >>>> puppet install citing an issue that appears to be only related to RHEL7? >>>> Anaconda ends with: >>>> >>>>> puppet-3.6.2-3.el7.noarch requires ruby(selinux) >>>>> >>>> >>>> Screen here: >>>> https://plus.google.com/105327828729026800537/posts/KumgGPDJUeD >>>> >>>> Which in all my searching just comes up with a Bug filing with >>>> PuppetLabs about updating the requirements to add a RHN server-optional >>>> repo...doesn't seem like that should be required for CentOS. Am I missing >>>> something here, shouldn't this work kind of out of the box? >>>> >>>> >>>> On Monday, February 23, 2015 at 4:29:00 PM UTC-5, Sean Alderman wrote: >>>>> >>>>> Hi, >>>>> >>>>> I had a request today to setup both Oracle Linux 7 and CentOS 7 for >>>>> provisioning in Foreman. In doing so I also setup the foreman-templates >>>>> plugin and sync'd the provisioning templates. It appears I have trouble >>>>> changing an existing Host's OS from Oracle Linux 6 to CentOS 7. I've >>>>> posted some screens to Google+ - >>>>> https://plus.google.com/105327828729026800537/posts/R7m1LyHhZYa >>>>> >>>>> Is this a bug? After changing the OS to a different platform with >>>>> different install media, the install media menu is empty. If I create a >>>>> new host using CentOS 7 this is not an issue. Am I missing something? >>>>> >>>>> Thanks! >>>>> >>>>

Ok, so, what does RedHat call the optional repo in the yum.repos.d file?

I ask because I don't have an active RHEL subscription, and Oracle is
calling their's [ol7_optional_latest]

I stumbled upon the RHEL specific kickstart template
(https://github.com/theforeman/community-templates/blob/master/kickstart/provision_rhel.erb)
and was wondering how it gets puppet installed on RHEL7, with out
specifically doing anything with the optional repo. Perhaps RHEL7's repo
files have the optional stuff enabled by default?

My thought here is that I would submit a PR to the templates such that
yum-utils is installed and in the %post% are there's a section that enables
the optional repo using yum-config-manager --enable <repo> as needed prior
to installing puppet.

··· On Wednesday, February 25, 2015 at 11:13:34 AM UTC-5, Greg Etling wrote: > > Yep, looks like Oracle Linux maintains it in the same way as RHEL in an > 'optional' repo. Though since that is a public repo, you should be able to > set up a 'repo' line in your kickstart to point directly at OL-optional to > get your OL machine going for now, and replicate the repo in parallel for > your release management going forward. > > On Wednesday, February 25, 2015 at 10:47:25 AM UTC-5, Sean Alderman wrote: >> >> Well, I'm almost certain you're correct, except that it doesn't fix my >> issue with Oracle Linux. >> >> Here's what I've just discovered this morning... the CentOS 7 4GB ISO >> does not have what's required, so I downloaded and rebuilt my install repo >> from the CentOS 7 "Everything" ISO which seems to work so far. >> >> Oracle Linux only seems to distribute a 4GB ISO, so I'm going to have to >> setup a repo for the OL7 Optional packages : >> http://public-yum.oracle.com/repo/OracleLinux/OL7/optional/latest/x86_64/ >> >> I'll post another update when I get it worked out. >> >> On Wednesday, February 25, 2015 at 9:57:41 AM UTC-5, Greg Etling wrote: >>> >>> Looks like anaconda is not finding libselinux-ruby in your package set. >>> Are you sure your install media has that rpm? >>> >>> http://mirror.centos.org/centos/7/os/x86_64/Packages/ >>> >>> >>> On Monday, February 23, 2015 at 5:11:04 PM UTC-5, Sean Alderman wrote: >>>> >>>> Sorry, bad link... >>>> https://plus.google.com/105327828729026800537/posts/2ZVHocdiPMY >>>> >>>> On Monday, February 23, 2015 at 5:04:49 PM UTC-5, Sean Alderman wrote: >>>>> >>>>> So as a followup, the CentOS 7 machine I created as a new host will >>>>> not provision it pxe boots, beings to load from the media and bombs out on >>>>> the puppet install citing an issue that appears to be only related to >>>>> RHEL7? Anaconda ends with: >>>>> >>>>>> puppet-3.6.2-3.el7.noarch requires ruby(selinux) >>>>>> >>>>> >>>>> Screen here: >>>>> https://plus.google.com/105327828729026800537/posts/KumgGPDJUeD >>>>> >>>>> Which in all my searching just comes up with a Bug filing with >>>>> PuppetLabs about updating the requirements to add a RHN server-optional >>>>> repo...doesn't seem like that should be required for CentOS. Am I missing >>>>> something here, shouldn't this work kind of out of the box? >>>>> >>>>> >>>>> On Monday, February 23, 2015 at 4:29:00 PM UTC-5, Sean Alderman wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>> I had a request today to setup both Oracle Linux 7 and CentOS 7 for >>>>>> provisioning in Foreman. In doing so I also setup the foreman-templates >>>>>> plugin and sync'd the provisioning templates. It appears I have trouble >>>>>> changing an existing Host's OS from Oracle Linux 6 to CentOS 7. I've >>>>>> posted some screens to Google+ - >>>>>> https://plus.google.com/105327828729026800537/posts/R7m1LyHhZYa >>>>>> >>>>>> Is this a bug? After changing the OS to a different platform with >>>>>> different install media, the install media menu is empty. If I create a >>>>>> new host using CentOS 7 this is not an issue. Am I missing something? >>>>>> >>>>>> Thanks! >>>>>> >>>>>

Alright, so I've got the provisioning working for both platforms. CentOS7
required that I setup my media repo from the "Everything" ISO. Oracle
Linux 7 required using the Kickstart RHEL template with a patch as I
discussed in the previous post (thanks Greg!). Here's that patch if
anyone's interested. Unfortunately, I don't have any RHEL subscriptions at
the moment, so I'm not able to see what the repo is called for RHEL or know
whether it's enabled by default.

https://github.com/theforeman/community-templates/compare/master...salderma:master

I am still running into an issue with puppet runs after the provision of a
system with either of the OS's. I posted over on the puppet list, but no
replies yet.

After the reboot at the end of the provisioning, the puppet agent on both
systems produce this:

Failed to apply catalog: Could not retrieve local facts: undefined method
> `to_a' for "ens33":String
>
and

> Failed to apply catalog: Could not retrieve local facts: undefined method
> `to_a' for "ens192":String

Just curious if anyone has seen this? Thanks!

··· On Wednesday, February 25, 2015 at 1:14:51 PM UTC-5, Sean Alderman wrote: > > Ok, so, what does RedHat call the optional repo in the yum.repos.d file? > > I ask because I don't have an active RHEL subscription, and Oracle is > calling their's [ol7_optional_latest] > > I stumbled upon the RHEL specific kickstart template ( > https://github.com/theforeman/community-templates/blob/master/kickstart/provision_rhel.erb) > and was wondering how it gets puppet installed on RHEL7, with out > specifically doing anything with the optional repo. Perhaps RHEL7's repo > files have the optional stuff enabled by default? > > My thought here is that I would submit a PR to the templates such that > yum-utils is installed and in the %post% are there's a section that enables > the optional repo using yum-config-manager --enable as needed prior > to installing puppet. > > > On Wednesday, February 25, 2015 at 11:13:34 AM UTC-5, Greg Etling wrote: >> >> Yep, looks like Oracle Linux maintains it in the same way as RHEL in an >> 'optional' repo. Though since that is a public repo, you should be able to >> set up a 'repo' line in your kickstart to point directly at OL-optional to >> get your OL machine going for now, and replicate the repo in parallel for >> your release management going forward. >> >> On Wednesday, February 25, 2015 at 10:47:25 AM UTC-5, Sean Alderman wrote: >>> >>> Well, I'm almost certain you're correct, except that it doesn't fix my >>> issue with Oracle Linux. >>> >>> Here's what I've just discovered this morning... the CentOS 7 4GB ISO >>> does not have what's required, so I downloaded and rebuilt my install repo >>> from the CentOS 7 "Everything" ISO which seems to work so far. >>> >>> Oracle Linux only seems to distribute a 4GB ISO, so I'm going to have to >>> setup a repo for the OL7 Optional packages : >>> http://public-yum.oracle.com/repo/OracleLinux/OL7/optional/latest/x86_64/ >>> >>> I'll post another update when I get it worked out. >>> >>> On Wednesday, February 25, 2015 at 9:57:41 AM UTC-5, Greg Etling wrote: >>>> >>>> Looks like anaconda is not finding libselinux-ruby in your package set. >>>> Are you sure your install media has that rpm? >>>> >>>> http://mirror.centos.org/centos/7/os/x86_64/Packages/ >>>> >>>> >>>> On Monday, February 23, 2015 at 5:11:04 PM UTC-5, Sean Alderman wrote: >>>>> >>>>> Sorry, bad link... >>>>> https://plus.google.com/105327828729026800537/posts/2ZVHocdiPMY >>>>> >>>>> On Monday, February 23, 2015 at 5:04:49 PM UTC-5, Sean Alderman wrote: >>>>>> >>>>>> So as a followup, the CentOS 7 machine I created as a new host will >>>>>> not provision it pxe boots, beings to load from the media and bombs out on >>>>>> the puppet install citing an issue that appears to be only related to >>>>>> RHEL7? Anaconda ends with: >>>>>> >>>>>>> puppet-3.6.2-3.el7.noarch requires ruby(selinux) >>>>>>> >>>>>> >>>>>> Screen here: >>>>>> https://plus.google.com/105327828729026800537/posts/KumgGPDJUeD >>>>>> >>>>>> Which in all my searching just comes up with a Bug filing with >>>>>> PuppetLabs about updating the requirements to add a RHN server-optional >>>>>> repo...doesn't seem like that should be required for CentOS. Am I missing >>>>>> something here, shouldn't this work kind of out of the box? >>>>>> >>>>>> >>>>>> On Monday, February 23, 2015 at 4:29:00 PM UTC-5, Sean Alderman wrote: >>>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I had a request today to setup both Oracle Linux 7 and CentOS 7 for >>>>>>> provisioning in Foreman. In doing so I also setup the foreman-templates >>>>>>> plugin and sync'd the provisioning templates. It appears I have trouble >>>>>>> changing an existing Host's OS from Oracle Linux 6 to CentOS 7. I've >>>>>>> posted some screens to Google+ - >>>>>>> https://plus.google.com/105327828729026800537/posts/R7m1LyHhZYa >>>>>>> >>>>>>> Is this a bug? After changing the OS to a different platform with >>>>>>> different install media, the install media menu is empty. If I create a >>>>>>> new host using CentOS 7 this is not an issue. Am I missing something? >>>>>>> >>>>>>> Thanks! >>>>>>> >>>>>>

RHEL is more complicated, and depends on your package source.

If you are using subscription-manager authenticated sources (RHN, etc):

You actually can't do any of this through 'repo' lines and the %packages
stanza.

You would have to do it all in %post, after registering the system.

If you use RHN Classic style rhnreg_ks registration (still works against a
Satellite) or mirror your own repos (I don't have experience with pulp on
this point):

Then you can use 'repo' lines to point at your copy of the RHEL Optional
repo.

··· On Thursday, February 26, 2015 at 1:17:52 PM UTC-5, Sean Alderman wrote: > > Alright, so I've got the provisioning working for both platforms. CentOS7 > required that I setup my media repo from the "Everything" ISO. Oracle > Linux 7 required using the Kickstart RHEL template with a patch as I > discussed in the previous post (thanks Greg!). Here's that patch if > anyone's interested. Unfortunately, I don't have any RHEL subscriptions at > the moment, so I'm not able to see what the repo is called for RHEL or know > whether it's enabled by default. > > > https://github.com/theforeman/community-templates/compare/master...salderma:master > > I am still running into an issue with puppet runs after the provision of a > system with either of the OS's. I posted over on the puppet list, but no > replies yet. > > After the reboot at the end of the provisioning, the puppet agent on both > systems produce this: > > Failed to apply catalog: Could not retrieve local facts: undefined method >> `to_a' for "ens33":String >> > and > >> Failed to apply catalog: Could not retrieve local facts: undefined method >> `to_a' for "ens192":String > > > Just curious if anyone has seen this? Thanks! > > On Wednesday, February 25, 2015 at 1:14:51 PM UTC-5, Sean Alderman wrote: >> >> Ok, so, what does RedHat call the optional repo in the yum.repos.d file? >> >> I ask because I don't have an active RHEL subscription, and Oracle is >> calling their's [ol7_optional_latest] >> >> I stumbled upon the RHEL specific kickstart template ( >> https://github.com/theforeman/community-templates/blob/master/kickstart/provision_rhel.erb) >> and was wondering how it gets puppet installed on RHEL7, with out >> specifically doing anything with the optional repo. Perhaps RHEL7's repo >> files have the optional stuff enabled by default? >> >> My thought here is that I would submit a PR to the templates such that >> yum-utils is installed and in the %post% are there's a section that enables >> the optional repo using yum-config-manager --enable as needed prior >> to installing puppet. >> >> >> On Wednesday, February 25, 2015 at 11:13:34 AM UTC-5, Greg Etling wrote: >>> >>> Yep, looks like Oracle Linux maintains it in the same way as RHEL in an >>> 'optional' repo. Though since that is a public repo, you should be able to >>> set up a 'repo' line in your kickstart to point directly at OL-optional to >>> get your OL machine going for now, and replicate the repo in parallel for >>> your release management going forward. >>> >>> On Wednesday, February 25, 2015 at 10:47:25 AM UTC-5, Sean Alderman >>> wrote: >>>> >>>> Well, I'm almost certain you're correct, except that it doesn't fix my >>>> issue with Oracle Linux. >>>> >>>> Here's what I've just discovered this morning... the CentOS 7 4GB ISO >>>> does not have what's required, so I downloaded and rebuilt my install repo >>>> from the CentOS 7 "Everything" ISO which seems to work so far. >>>> >>>> Oracle Linux only seems to distribute a 4GB ISO, so I'm going to have >>>> to setup a repo for the OL7 Optional packages : >>>> http://public-yum.oracle.com/repo/OracleLinux/OL7/optional/latest/x86_64/ >>>> >>>> I'll post another update when I get it worked out. >>>> >>>> On Wednesday, February 25, 2015 at 9:57:41 AM UTC-5, Greg Etling wrote: >>>>> >>>>> Looks like anaconda is not finding libselinux-ruby in your package >>>>> set. Are you sure your install media has that rpm? >>>>> >>>>> http://mirror.centos.org/centos/7/os/x86_64/Packages/ >>>>> >>>>> >>>>> On Monday, February 23, 2015 at 5:11:04 PM UTC-5, Sean Alderman wrote: >>>>>> >>>>>> Sorry, bad link... >>>>>> https://plus.google.com/105327828729026800537/posts/2ZVHocdiPMY >>>>>> >>>>>> On Monday, February 23, 2015 at 5:04:49 PM UTC-5, Sean Alderman wrote: >>>>>>> >>>>>>> So as a followup, the CentOS 7 machine I created as a new host will >>>>>>> not provision it pxe boots, beings to load from the media and bombs out on >>>>>>> the puppet install citing an issue that appears to be only related to >>>>>>> RHEL7? Anaconda ends with: >>>>>>> >>>>>>>> puppet-3.6.2-3.el7.noarch requires ruby(selinux) >>>>>>>> >>>>>>> >>>>>>> Screen here: >>>>>>> https://plus.google.com/105327828729026800537/posts/KumgGPDJUeD >>>>>>> >>>>>>> Which in all my searching just comes up with a Bug filing with >>>>>>> PuppetLabs about updating the requirements to add a RHN server-optional >>>>>>> repo...doesn't seem like that should be required for CentOS. Am I missing >>>>>>> something here, shouldn't this work kind of out of the box? >>>>>>> >>>>>>> >>>>>>> On Monday, February 23, 2015 at 4:29:00 PM UTC-5, Sean Alderman >>>>>>> wrote: >>>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> I had a request today to setup both Oracle Linux 7 and CentOS 7 for >>>>>>>> provisioning in Foreman. In doing so I also setup the foreman-templates >>>>>>>> plugin and sync'd the provisioning templates. It appears I have trouble >>>>>>>> changing an existing Host's OS from Oracle Linux 6 to CentOS 7. I've >>>>>>>> posted some screens to Google+ - >>>>>>>> https://plus.google.com/105327828729026800537/posts/R7m1LyHhZYa >>>>>>>> >>>>>>>> Is this a bug? After changing the OS to a different platform with >>>>>>>> different install media, the install media menu is empty. If I create a >>>>>>>> new host using CentOS 7 this is not an issue. Am I missing something? >>>>>>>> >>>>>>>> Thanks! >>>>>>>> >>>>>>>

So given the current status of the community provisioning templates repo,
is it a correct statement to say that the "Kickstart RHEL" template is not
functional for RHEL7?

I don't see any code in there that points to configuring the optional repo
only for RHEL 7. The comments imply that RHEL7 is supported by the
template though…So I'm wondering if the template really works or not.
This template doesn't have the puppet install under the packages section,
it's in the post script area…

https://github.com/theforeman/community-templates/blob/master/kickstart/provision_rhel.erb

··· On Thursday, February 26, 2015 at 2:17:34 PM UTC-5, Greg Etling wrote: > > RHEL is more complicated, and depends on your package source. > > If you are using subscription-manager authenticated sources (RHN, etc): > > You actually can't do any of this through 'repo' lines and the %packages > stanza. > > You would have to do it all in %post, after registering the system. > > > If you use RHN Classic style rhnreg_ks registration (still works against a > Satellite) or mirror your own repos (I don't have experience with pulp on > this point): > > Then you can use 'repo' lines to point at your copy of the RHEL Optional > repo. > > > On Thursday, February 26, 2015 at 1:17:52 PM UTC-5, Sean Alderman wrote: >> >> Alright, so I've got the provisioning working for both platforms. >> CentOS7 required that I setup my media repo from the "Everything" ISO. >> Oracle Linux 7 required using the Kickstart RHEL template with a patch as I >> discussed in the previous post (thanks Greg!). Here's that patch if >> anyone's interested. Unfortunately, I don't have any RHEL subscriptions at >> the moment, so I'm not able to see what the repo is called for RHEL or know >> whether it's enabled by default. >> >> >> https://github.com/theforeman/community-templates/compare/master...salderma:master >> >> I am still running into an issue with puppet runs after the provision of >> a system with either of the OS's. I posted over on the puppet list, but no >> replies yet. >> >> After the reboot at the end of the provisioning, the puppet agent on both >> systems produce this: >> >> Failed to apply catalog: Could not retrieve local facts: undefined method >>> `to_a' for "ens33":String >>> >> and >> >>> Failed to apply catalog: Could not retrieve local facts: undefined >>> method `to_a' for "ens192":String >> >> >> Just curious if anyone has seen this? Thanks! >> >> On Wednesday, February 25, 2015 at 1:14:51 PM UTC-5, Sean Alderman wrote: >>> >>> Ok, so, what does RedHat call the optional repo in the yum.repos.d file? >>> >>> I ask because I don't have an active RHEL subscription, and Oracle is >>> calling their's [ol7_optional_latest] >>> >>> I stumbled upon the RHEL specific kickstart template ( >>> https://github.com/theforeman/community-templates/blob/master/kickstart/provision_rhel.erb) >>> and was wondering how it gets puppet installed on RHEL7, with out >>> specifically doing anything with the optional repo. Perhaps RHEL7's repo >>> files have the optional stuff enabled by default? >>> >>> My thought here is that I would submit a PR to the templates such that >>> yum-utils is installed and in the %post% are there's a section that enables >>> the optional repo using yum-config-manager --enable as needed prior >>> to installing puppet. >>> >>> >>> On Wednesday, February 25, 2015 at 11:13:34 AM UTC-5, Greg Etling wrote: >>>> >>>> Yep, looks like Oracle Linux maintains it in the same way as RHEL in an >>>> 'optional' repo. Though since that is a public repo, you should be able to >>>> set up a 'repo' line in your kickstart to point directly at OL-optional to >>>> get your OL machine going for now, and replicate the repo in parallel for >>>> your release management going forward. >>>> >>>> On Wednesday, February 25, 2015 at 10:47:25 AM UTC-5, Sean Alderman >>>> wrote: >>>>> >>>>> Well, I'm almost certain you're correct, except that it doesn't fix my >>>>> issue with Oracle Linux. >>>>> >>>>> Here's what I've just discovered this morning... the CentOS 7 4GB ISO >>>>> does not have what's required, so I downloaded and rebuilt my install repo >>>>> from the CentOS 7 "Everything" ISO which seems to work so far. >>>>> >>>>> Oracle Linux only seems to distribute a 4GB ISO, so I'm going to have >>>>> to setup a repo for the OL7 Optional packages : >>>>> http://public-yum.oracle.com/repo/OracleLinux/OL7/optional/latest/x86_64/ >>>>> >>>>> I'll post another update when I get it worked out. >>>>> >>>>> On Wednesday, February 25, 2015 at 9:57:41 AM UTC-5, Greg Etling wrote: >>>>>> >>>>>> Looks like anaconda is not finding libselinux-ruby in your package >>>>>> set. Are you sure your install media has that rpm? >>>>>> >>>>>> http://mirror.centos.org/centos/7/os/x86_64/Packages/ >>>>>> >>>>>> >>>>>> On Monday, February 23, 2015 at 5:11:04 PM UTC-5, Sean Alderman wrote: >>>>>>> >>>>>>> Sorry, bad link... >>>>>>> https://plus.google.com/105327828729026800537/posts/2ZVHocdiPMY >>>>>>> >>>>>>> On Monday, February 23, 2015 at 5:04:49 PM UTC-5, Sean Alderman >>>>>>> wrote: >>>>>>>> >>>>>>>> So as a followup, the CentOS 7 machine I created as a new host will >>>>>>>> not provision it pxe boots, beings to load from the media and bombs out on >>>>>>>> the puppet install citing an issue that appears to be only related to >>>>>>>> RHEL7? Anaconda ends with: >>>>>>>> >>>>>>>>> puppet-3.6.2-3.el7.noarch requires ruby(selinux) >>>>>>>>> >>>>>>>> >>>>>>>> Screen here: >>>>>>>> https://plus.google.com/105327828729026800537/posts/KumgGPDJUeD >>>>>>>> >>>>>>>> Which in all my searching just comes up with a Bug filing with >>>>>>>> PuppetLabs about updating the requirements to add a RHN server-optional >>>>>>>> repo...doesn't seem like that should be required for CentOS. Am I missing >>>>>>>> something here, shouldn't this work kind of out of the box? >>>>>>>> >>>>>>>> >>>>>>>> On Monday, February 23, 2015 at 4:29:00 PM UTC-5, Sean Alderman >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> I had a request today to setup both Oracle Linux 7 and CentOS 7 >>>>>>>>> for provisioning in Foreman. In doing so I also setup the >>>>>>>>> foreman-templates plugin and sync'd the provisioning templates. It appears >>>>>>>>> I have trouble changing an existing Host's OS from Oracle Linux 6 to CentOS >>>>>>>>> 7. I've posted some screens to Google+ - >>>>>>>>> https://plus.google.com/105327828729026800537/posts/R7m1LyHhZYa >>>>>>>>> >>>>>>>>> Is this a bug? After changing the OS to a different platform with >>>>>>>>> different install media, the install media menu is empty. If I create a >>>>>>>>> new host using CentOS 7 this is not an issue. Am I missing something? >>>>>>>>> >>>>>>>>> Thanks! >>>>>>>>> >>>>>>>>

I haven't worked with subscription-manager enough to say for sure, but I
think the template would be functional with RHEL7 if your activation key (
@host.params['activation_key']) is set up to authorize access to the
Optional repo. I haven't rebased my templates in a while so I still have
puppet installing in %packages, but the %post in the template you linked
should work as long as that repo is authorized to the client system,
assuming that this template is also functioning for
you: https://github.com/theforeman/community-templates/blob/master/snippets/redhat_register.erb

··· On Thursday, February 26, 2015 at 3:44:21 PM UTC-5, Sean Alderman wrote: > > So given the current status of the community provisioning templates repo, > is it a correct statement to say that the "Kickstart RHEL" template is not > functional for RHEL7? > > I don't see any code in there that points to configuring the optional repo > only for RHEL 7. The comments imply that RHEL7 is supported by the > template though...So I'm wondering if the template really works or not. > This template doesn't have the puppet install under the packages section, > it's in the post script area... > > > https://github.com/theforeman/community-templates/blob/master/kickstart/provision_rhel.erb > > On Thursday, February 26, 2015 at 2:17:34 PM UTC-5, Greg Etling wrote: >> >> RHEL is more complicated, and depends on your package source. >> >> If you are using subscription-manager authenticated sources (RHN, etc): >> >> You actually can't do any of this through 'repo' lines and the %packages >> stanza. >> >> You would have to do it all in %post, after registering the system. >> >> >> If you use RHN Classic style rhnreg_ks registration (still works against >> a Satellite) or mirror your own repos (I don't have experience with pulp on >> this point): >> >> Then you can use 'repo' lines to point at your copy of the RHEL Optional >> repo. >> >> >> On Thursday, February 26, 2015 at 1:17:52 PM UTC-5, Sean Alderman wrote: >>> >>> Alright, so I've got the provisioning working for both platforms. >>> CentOS7 required that I setup my media repo from the "Everything" ISO. >>> Oracle Linux 7 required using the Kickstart RHEL template with a patch as I >>> discussed in the previous post (thanks Greg!). Here's that patch if >>> anyone's interested. Unfortunately, I don't have any RHEL subscriptions at >>> the moment, so I'm not able to see what the repo is called for RHEL or know >>> whether it's enabled by default. >>> >>> >>> https://github.com/theforeman/community-templates/compare/master...salderma:master >>> >>> I am still running into an issue with puppet runs after the provision of >>> a system with either of the OS's. I posted over on the puppet list, but no >>> replies yet. >>> >>> After the reboot at the end of the provisioning, the puppet agent on >>> both systems produce this: >>> >>> Failed to apply catalog: Could not retrieve local facts: undefined >>>> method `to_a' for "ens33":String >>>> >>> and >>> >>>> Failed to apply catalog: Could not retrieve local facts: undefined >>>> method `to_a' for "ens192":String >>> >>> >>> Just curious if anyone has seen this? Thanks! >>> >>> On Wednesday, February 25, 2015 at 1:14:51 PM UTC-5, Sean Alderman wrote: >>>> >>>> Ok, so, what does RedHat call the optional repo in the yum.repos.d file? >>>> >>>> I ask because I don't have an active RHEL subscription, and Oracle is >>>> calling their's [ol7_optional_latest] >>>> >>>> I stumbled upon the RHEL specific kickstart template ( >>>> https://github.com/theforeman/community-templates/blob/master/kickstart/provision_rhel.erb) >>>> and was wondering how it gets puppet installed on RHEL7, with out >>>> specifically doing anything with the optional repo. Perhaps RHEL7's repo >>>> files have the optional stuff enabled by default? >>>> >>>> My thought here is that I would submit a PR to the templates such that >>>> yum-utils is installed and in the %post% are there's a section that enables >>>> the optional repo using yum-config-manager --enable as needed prior >>>> to installing puppet. >>>> >>>> >>>> On Wednesday, February 25, 2015 at 11:13:34 AM UTC-5, Greg Etling wrote: >>>>> >>>>> Yep, looks like Oracle Linux maintains it in the same way as RHEL in >>>>> an 'optional' repo. Though since that is a public repo, you should be able >>>>> to set up a 'repo' line in your kickstart to point directly at OL-optional >>>>> to get your OL machine going for now, and replicate the repo in parallel >>>>> for your release management going forward. >>>>> >>>>> On Wednesday, February 25, 2015 at 10:47:25 AM UTC-5, Sean Alderman >>>>> wrote: >>>>>> >>>>>> Well, I'm almost certain you're correct, except that it doesn't fix >>>>>> my issue with Oracle Linux. >>>>>> >>>>>> Here's what I've just discovered this morning... the CentOS 7 4GB ISO >>>>>> does not have what's required, so I downloaded and rebuilt my install repo >>>>>> from the CentOS 7 "Everything" ISO which seems to work so far. >>>>>> >>>>>> Oracle Linux only seems to distribute a 4GB ISO, so I'm going to have >>>>>> to setup a repo for the OL7 Optional packages : >>>>>> http://public-yum.oracle.com/repo/OracleLinux/OL7/optional/latest/x86_64/ >>>>>> >>>>>> I'll post another update when I get it worked out. >>>>>> >>>>>> On Wednesday, February 25, 2015 at 9:57:41 AM UTC-5, Greg Etling >>>>>> wrote: >>>>>>> >>>>>>> Looks like anaconda is not finding libselinux-ruby in your package >>>>>>> set. Are you sure your install media has that rpm? >>>>>>> >>>>>>> http://mirror.centos.org/centos/7/os/x86_64/Packages/ >>>>>>> >>>>>>> >>>>>>> On Monday, February 23, 2015 at 5:11:04 PM UTC-5, Sean Alderman >>>>>>> wrote: >>>>>>>> >>>>>>>> Sorry, bad link... >>>>>>>> https://plus.google.com/105327828729026800537/posts/2ZVHocdiPMY >>>>>>>> >>>>>>>> On Monday, February 23, 2015 at 5:04:49 PM UTC-5, Sean Alderman >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> So as a followup, the CentOS 7 machine I created as a new host >>>>>>>>> will not provision it pxe boots, beings to load from the media and bombs >>>>>>>>> out on the puppet install citing an issue that appears to be only related >>>>>>>>> to RHEL7? Anaconda ends with: >>>>>>>>> >>>>>>>>>> puppet-3.6.2-3.el7.noarch requires ruby(selinux) >>>>>>>>>> >>>>>>>>> >>>>>>>>> Screen here: >>>>>>>>> https://plus.google.com/105327828729026800537/posts/KumgGPDJUeD >>>>>>>>> >>>>>>>>> Which in all my searching just comes up with a Bug filing with >>>>>>>>> PuppetLabs about updating the requirements to add a RHN server-optional >>>>>>>>> repo...doesn't seem like that should be required for CentOS. Am I missing >>>>>>>>> something here, shouldn't this work kind of out of the box? >>>>>>>>> >>>>>>>>> >>>>>>>>> On Monday, February 23, 2015 at 4:29:00 PM UTC-5, Sean Alderman >>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>> Hi, >>>>>>>>>> >>>>>>>>>> I had a request today to setup both Oracle Linux 7 and CentOS 7 >>>>>>>>>> for provisioning in Foreman. In doing so I also setup the >>>>>>>>>> foreman-templates plugin and sync'd the provisioning templates. It appears >>>>>>>>>> I have trouble changing an existing Host's OS from Oracle Linux 6 to CentOS >>>>>>>>>> 7. I've posted some screens to Google+ - >>>>>>>>>> https://plus.google.com/105327828729026800537/posts/R7m1LyHhZYa >>>>>>>>>> >>>>>>>>>> Is this a bug? After changing the OS to a different platform >>>>>>>>>> with different install media, the install media menu is empty. If I create >>>>>>>>>> a new host using CentOS 7 this is not an issue. Am I missing something? >>>>>>>>>> >>>>>>>>>> Thanks! >>>>>>>>>> >>>>>>>>>