DevOps(2)Puppet with Tomcat
I find a very good website https://github.com/example42/puppet-modules. That may help a lot on working with Puppet.
And I also discuss with friends to using coreOS and Docker. But since our company is still using Puppet, so I will still spend some time here.
Install git
>sudo apt-get install git
Fetch and get the latest
>sudo git clone --recursive https://github.com/example42/puppet-modules.git
Search example42 on puppet
>puppet module search example42
Update and install my Puppet Module
>sudo mv puppet-modules /etc/puppet/
Change the conf to enable the modules
>sudo vi puppet.conf
modulepath = /etc/puppet/puppet-modules
Work with this https://github.com/example42/puppet-modules-nextgen
Checkout puppet nextgen
>sudo git clone --recursive git://github.com/example42/puppet-modules-nextgen.git
Follow the document to install tomcat
https://github.com/example42/puppet-tomcat
>cat puppet.conf
[main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter templatedir=$confdir/templates prerun_command=/etc/puppet/etckeeper-commit-pre postrun_command=/etc/puppet/etckeeper-commit-post [master] # These are needed when the puppetmaster is run by passenger # and can safely be removed if webrick is used. certname=ubuntu-master3 ssl_client_header = SSL_CLIENT_S_DN ssl_client_verify_header = SSL_CLIENT_VERIFY modulepath = /etc/puppet/puppet-modules-nextgen
Change the site.pp
>cat manifests/site.pp
node default { class { 'nginx': } }
Run on the slave
>sudo puppet agent --test
Add tomcat
>cat manifests/site.pp
node default { class { 'nginx': } class { "tomcat" : } }
Add java
https://github.com/puppetlabs/puppetlabs-java
>cat manifests/site.pp
node default { class { "java": } class { 'nginx': } class { "tomcat" : } }
Actually I get a lot of help from this blog http://junjiewen.com/blog/2013/01/11/puppet-install-module-example42/.
But I found that I install a lot of old version of tools. I may upgrade them later. But I will not spend too much time on puppet. I will go with docker and coreOS later.
References:
https://github.com/7terminals
http://www.puppetcookbook.com/posts/creating-a-directory.html
http://junjiewen.com/blog/2013/01/11/puppet-install-module-example42/
puppet tomcat
http://www.tomcatexpert.com/blog/2010/04/29/deploying-tomcat-applications-puppet
https://github.com/ogeisser/puppet-tomcat-demo
https://github.com/example42/puppet-tomcat
https://github.com/camptocamp/puppet-tomcat
http://www.vpsee.com/2012/05/using-puppet-modules-from-example42/
docker
http://www.oschina.net/translate/docker-git-for-deployment
http://zhuanlan.zhihu.com/prattle/19693311
http://www.infoq.com/cn/articles/docker-containers
http://www.infoq.com/cn/news/2013/04/Docker
http://tech.uc.cn/?p=2726
http://www.blogjava.net/yongboy/archive/2013/12/12/407498.html
http://docs.docker.com/installation/ubuntulinux/#ubuntu-trusty-1404-lts-64-bit
https://www.docker.com/
https://github.com/docker/docker
- 浏览: 2551939 次
- 性别:
- 来自: 成都
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
相关推荐
Puppet获取的DevOps 2017年薪报告,供想从事DevOps工作的朋友一个参考 Are you curious about how your job, salary, and working conditions stack up against other professionals in your field? Yep, we are too...
DevOps with Kubernetes_Code 源码 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
《DevOps with Kubernetes, 2nd Edition》是2019年出版的一本关于使用Kubernetes进行DevOps实践的专业书籍,旨在帮助运维人员和运维开发者掌握如何利用Kubernetes这一强大的容器编排工具来优化和自动化软件开发流程...
2. **OpenShift架构**:详细讲解OpenShift的组件结构,如Master节点、Worker节点、Pods、Services、Deployments等,以及它们在容器化环境中的作用。 3. **OpenShift的DevOps工具链**:讨论OpenShift集成的DevOps...
Chapter 2, DevOps with Container, helps you learn the fundamentals and container orchestration. With the trend of microservices, container has been a handy and essential tool for every DevOps because ...
根据提供的文件信息,我们可以深入探讨《DevOps with OpenShift》这一主题所涵盖的关键知识点。本书由Stefano Picozzi、Mike Hepburn与Noel O’Connor共同编写,旨在帮助读者理解如何利用OpenShift来简化云部署过程...
Chapter 2, DevOps with Container, helps you learn the fundamentals and container orchestration. With the trend of microservices, container has been a handy and essential tool for every DevOps because ...
本文以“DevOps with Kubernetes and Helm”为标题,围绕DevOps理念与Kubernetes、Helm这两个工具的结合使用展开了讨论。DevOps是一种融合了人员、流程和技术的实践,以实现持续地向最终用户交付价值。在描述中,...
标题"DevOps with Kubernetes"表明这本PDF文档将深入探讨如何在DevOps实践中应用Kubernetes,以实现高效的持续集成、持续交付(CI/CD)流程。Kubernetes提供了强大的自动化功能,可以自动扩展应用、管理服务发现、...
Title: Hands-On DevOps with Vagrant Author: Alex Braunton Length: 232 pages Edition: 1 Language: English Publisher: Packt Publishing Publication Date: 2018-10-17 ISBN-10: 1789138051 ISBN-13: ...
If you are familiar with the origin of the DevOps term, and can’t wait to start facilitating the game, feel free to skip this chapter. Otherwise, read on to learn about people and ideas that brought ...
DevOps with Kubernetes 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
DevOps 五大理念及其落地实践 研发运维一体化(DevOps)成熟度模型 中国DevOps现状调查报告及解读 构建企业DevOps的度量体系 DevOps实践指南精要 分布式敏捷和DevOps实践案例 AWS DevOps 助力爱乐奇大规模业务扩展 ...
Finally, you will learn about the wider Kubernetes ecosystem with OCP, CoreOS, and Tectonic and explore the third-party extensions and tools that can be used with Kubernetes. By the end of the book,...
本书名为《DevOps with Kubernetes》,是一本专注于介绍如何将DevOps实践与Kubernetes容器编排系统结合起来,以加速软件交付过程的技术书籍。这本书主要面向DevOps从业者,旨在帮助他们理解和掌握在Kubernetes环境下...