In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to install CentOS puppet foreman, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Puppet is a centralized configuration management system for Linux and Unix platform, which can manage configuration files, users, cron tasks, software packages, system services and so on. Puppet is designed to simplify the management of these resources and properly handle dependencies between resources.
Foreman is a puppet lifecycle management system, similar to puppet-dashboard, through which you can intuitively view the synchronization status and facter parameters of all puppet clients. The following is a specific introduction to the installation method of CentOS puppet foreman.
Foreman is the same as dashboard. You can visually view the puppet client synchronization status and so on. For details, see the official screenshot:
Http://theforeman.org/projects/foreman/wiki/Screenshots
Briefly describe the order of installation:
1. Install puppet
two。 Upgrade ruby to 1.8.6
3. Installation related dependencies on gem rake rails i18n
4. Create libraries and users and authorize
5. Install foreman
6. Modify database.yml
7. Create a foreman table
8. Configure the foreman.rb file and put it in the puppet reports directory
9. Configure puppet server client Profil
10. Start
Pay attention to the requirements of the version. In particular, ruby can only be 1.8 upgrade ruby reference: http://bubbyroom.com/2011/01/centos-yum-update-ruby/
Ruby 1.9 is not supported yet. You have to use Ruby 1.8.x as stated above.
RubyGems 1.3.1 or higher is requiredRake 0.8.3 or higher is requiredRack 1.0.1 is required.
If you don't have this exact version, database migration would fail.I18n 0.4.2 is required for Redmine > = 1.0.5
Rpm-Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpmyum install-y mysql mysql-devel mysql-server ruby ruby-devel ruby-irb ruby-mysql ruby-rdoc ruby-ri
If MYSQL is a source package installation, then:
Yum install-y ruby ruby-devel ruby-irb ruby-mysql ruby-rdoc ruby-ri
Install rubygem 1.3.5
Http://production.cf.rubygems.org/rubygems/rubygems-1.3.5.tgztar xfz rubygems-1.3.5.tgzcd rubygems-1.3.5ruby setup.rb
Install rails and rack
Gem install rails-v=2.3.5gem install rack-v=1.0.1gem install-vault 0.4.2 i18n
Download foreman
Address: http://www.redmine.org/projects/redmine/wiki/Download
I like to use GIT to download:
Someone asked me how to install git:
Yum-y install gitgit clone git://github.com/edavis10/redmine.git
Source packet address:
Wget http://rubyforge.org/frs/download.php/73900/redmine-1.1.0.tar.gz
Decompress it after download. You can put it in the / usr/local/redmine directory
Mysql configuration: creating libraries and users
Create database redmine character set utf8;create user 'redmine'@'localhost' identified by' my_password';grant all privileges on redmine.* to 'redmine'@'localhost'
Mysql 5 or above
Grant all privileges on redmine.* to 'redmine'@'localhost' identified by' my_password'
Go to foreman and configure database.yml
Config/database.yml
Production:adapter: mysqldatabase: redminehost: localhostusername: redminepassword: my_password
Build a table:
RAILS_ENV=production rake db:migrate
Start:
Ruby script/server webrick-e production
Library backup:
/ usr/bin/mysqldump-u-p | gzip > / path/to/backup/db/redmine_ `date +% yearly% masked% d`.gz
Puppet master configuration
Reports=log, foreman
Puppet client configuration
Report = true
Configure puppet to submit to foreman
# cp extras/puppet/foreman/files/foreman-report.rb / usr/lib/ruby/site_ruby/1.8/puppet/reports/foreman.rb# chmod 644 / usr/lib/ruby/site_ruby/1.8/puppet/reports/foreman.rb# vim / usr/lib/ruby/site_ruby/1.8/puppet/reports/foreman.rb# URL of your Foreman installation$foreman_url= "http://" + `hostname`.strip +": 8000 "
Cron clears data:
Rake reports:expire days=7 RAILS_ENV= "production"
# # #
Foreman can be installed with yum
Configuration Source:
Cat > / etc/yum.repos.d/foreman.repo
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.