Puppet - passenger: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Mernits (talk | contribs)
No edit summary
Mernits (talk | contribs)
Line 17: Line 17:
sudo mkdir /usr/share/puppet/rack/puppetmasterd/public /usr/share/puppet/rack/puppetmasterd/tmp
sudo mkdir /usr/share/puppet/rack/puppetmasterd/public /usr/share/puppet/rack/puppetmasterd/tmp
sudo cp /usr/share/puppet/ext/rack/files/config.ru /usr/share/puppet/rack/puppetmasterd/
sudo cp /usr/share/puppet/ext/rack/files/config.ru /usr/share/puppet/rack/puppetmasterd/
</source>


service apache2 restart


</source>


=Apache konfigureerimine=
=Apache konfigureerimine=

Revision as of 11:16, 18 December 2013

Tarkvara paigaldamine

sudo apt-get install apache2 ruby1.8-dev rubygems
sudo a2enmod ssl
sudo a2enmod headers
sudo service apache2 restart
sudo gem install rack passenger
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install apache2-threaded-dev
sudo apt-get install zlib1g-dev
sudo apt-get install libapr1-dev
sudo apt-get install libaprutil1-dev
sudo apt-get install apache2-threaded-dev
sudo passenger-install-apache2-module
sudo mkdir -p /usr/share/puppet/rack/puppetmasterd
sudo mkdir /usr/share/puppet/rack/puppetmasterd/public /usr/share/puppet/rack/puppetmasterd/tmp
sudo cp /usr/share/puppet/ext/rack/files/config.ru /usr/share/puppet/rack/puppetmasterd/

service apache2 restart

Apache konfigureerimine

LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-4.0.29/buildout/apache2/mod_passenger.so
PassengerRoot /var/lib/gems/1.8/gems/passenger-4.0.29
PassengerDefaultRuby /usr/bin/ruby1.8


Võtmed

ssh-keygen

Salvestage privaatvõti faili /etc/ssl/private/puppet.planet.zz.key ja genereerige sertifikaadipäring

openssl req -new -key /etc/ssl/private/puppet.planet.zz.key -out /root/puppet.planet.zz.req

Allkirjastage sertifikaadipäring

sudo openssl x509 -req -days 3650 -in /root/puppet.planet.zz.req -signkey /etc/ssl/private/puppet.planet.zz.key -out /etc/ssl/certs/puppet.planet.zz.pem