stephenrjohnson / puppetmodule

A Puppet configuration manager for puppet agent, master, and puppetdb
http://forge.puppetlabs.com/stephenrjohnson/puppet
30 stars 62 forks source link

RHEL7/CentOS7 support #101

Open nickjenkin opened 9 years ago

nickjenkin commented 9 years ago

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:

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

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

lmorfitt commented 9 years ago

@nickjenkin Do you have a working mod_passenger rpm anywhere?

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

nickjenkin commented 9 years ago

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.

lmorfitt commented 9 years ago

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

cheers

chihoko commented 9 years ago

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?

lmorfitt commented 9 years ago

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.

claflico commented 9 years ago

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 }"

lmorfitt commented 9 years ago

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