foreman的安装配置方法
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-04-09
og: " daemon --user ${FOREMAN_USER} /usr/bin/ruby ${FOREMAN_HOME}/script/server -p ${FOREMAN_PORT} -e ${FOREMAN_ENV} -d > /dev/null # daemon /usr/bin/ruby ${FOREMAN_HOME}/script/server -p 80 -e ${FOREMAN_ENV} -d >/dev/null RETVAL=$? if [ $RETVAL = 0 ] then echo_success else echo_failure fi echo return $RETVAL } stop() { echo -n $"Stopping $prog: " if [ -f ${FOREMAN_PID} ]; then killproc -p ${FOREMAN_PID} RETVAL=$? else echo -n $"Foreman was not running."; failure $"Foreman was not running."; echo return 1 fi echo return $RETVAL } # See how we were called. case "$1" in start) start ;; stop) stop ;; status) echo -n "Foreman" status -p $FOREMAN_PID RETVAL=$? ;; restart) stop start 拥有帝国一切,皆有可能。欢迎访问phome.net ;; *) echo $"Usage: $prog {start|stop|restart}" exit 1 esac exit $RETVALchmod 755 /etc/init.d/foreman 修改puppetmaster的puppet.confreports=log, foreman 配置邮件报警 config/email.yaml# Outgoing email settings # config/email.yaml production: delivery_method: :smtp smtp_settings: address: mail.example.com port: 25 domain: example.com authentication: :none 修改基本配置 config/settings.yaml:modulepath: /etc/puppet/modules/ :tftppath: tftp/ :rrd_report_url: report/ #:ldap: true #your default puppet server - can be overridden in the host level #if none specified, plain "puppet" will be used. :puppet_server: puppet :unattended: false #use the following setting to override the default 30 minutes puppet run interval - value must be in minutes :puppet_interval: 10 :document_root: /var/www #:puppetrun: true :administrator: admin@example.com :failed_report_email_notification: true 启动服务service foreman start使用firefox、chrome浏览http://localhost:3000 本文出自 “智弘” 博客,请务必保留此出处http://dywer.blog.51cto.com/678776/415839 拥有帝国一切,皆有可能。欢迎访问phome.net |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
上一篇: Linux磁盘Block Size研究备忘下一篇: Linux最多支持的磁盘数目
关于foreman的安装配置方法的所有评论