puppetmodule icon indicating copy to clipboard operation
puppetmodule copied to clipboard

RHEL7/CentOS7 support

Open nickjenkin opened this issue 10 years ago • 7 comments

Hi

I am not able to get a puppet master setup using the default puppet::master.

There are several changes in CentOS7 that break puppet::master:

  • No more mod_passenger

Have to use gem install passenger/passenger-install-apache2-module to compile the module.

  • The SSL client authentication configuration does not work:

Remove puppetmastersslclient/puppetmastersslclientverify configs from passenger.pp, add vhost config: request_headers => ["set X-SSL-Subject %{SSL_CLIENT_S_DN}e", "set X-Client-Verify %{SSL_CLIENT_VERIFY}e", "set X-Client-DN %{SSL_CLIENT_S_DN}e"]

Cheers -Nick

nickjenkin avatar Mar 12 '15 01:03 nickjenkin

@nickjenkin Do you have a working mod_passenger rpm anywhere?

I've been looking and have not tracked one down as yet.

lmorfitt avatar Apr 22 '15 14:04 lmorfitt

No, I had to compile myself using:

gem install passenger passenger-install-apache2-module

I seem to remember reading somewhere that passenger no longer want to make rpm's for mod_passenger because they feel special and different.

nickjenkin avatar Apr 24 '15 07:04 nickjenkin

@nickjenkin Thanks for the info. Thats rather annoying. Guess i will package it myself.

cheers

lmorfitt avatar May 05 '15 13:05 lmorfitt

Great module, been using it in production for over 6 months. However now we're upgrading to Centos 7 and I'm also stuck with this issue. There is no way to install Passenger other than gem. The module advertises support for Centos 7, am I missing something? Is there some way to disable the management of passenger temporarily?

chihoko avatar May 28 '15 10:05 chihoko

Passenger is available as a gem on RedHat variants.

gem install passenger

This module needs a case statement for RedHat OS's were it installs from gem instead of yum. I've not look through the code to understand if is is going to be easy to implement.

cheers.

lmorfitt avatar Jun 03 '15 06:06 lmorfitt

just in case anybody is interested, below is what I had to do to get this to work on a fresh install of CentOS 7:

yum update -y vi /etc/sysconfig/selinux #disable selinux rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm yum install -y puppetmaster puppet epel-release curl sudo curl --fail -sSLo /etc/yum.repos.d/passenger.repo https://oss-binaries.phusionpassenger.com/yum/definitions/el-passenger.repo yum install mod_passenger mv /etc/hiera.yaml /etc/puppet/ ln -s /etc/puppet/hiera.yaml /etc/hiera.yaml puppet module install stephenrjohnson-puppet puppet apply -e "class{'puppet::repo::puppetlabs': } Class['puppet::repo::puppetlabs'] -> Package <| |> class { 'puppetdb': } class { 'puppet::master': storeconfigs => true }"

claflico avatar Jun 03 '15 17:06 claflico

@claflico Thank you. Will look at this when I get time.

lmorfitt avatar Jun 04 '15 07:06 lmorfitt